Skip to content
Snippets Groups Projects
Commit 25cffcfa authored by pjvan_thof's avatar pjvan_thof
Browse files

Added back toolJar as optional

parent bb01f989
No related branches found
No related tags found
1 merge request!19Switched executable
...@@ -169,6 +169,7 @@ task FastqSync { ...@@ -169,6 +169,7 @@ task FastqSync {
} }
task SampleConfig { task SampleConfig {
File? toolJar
String? preCommand String? preCommand
Array[File]+ inputFiles Array[File]+ inputFiles
String keyFilePath String keyFilePath
...@@ -182,11 +183,15 @@ task SampleConfig { ...@@ -182,11 +183,15 @@ task SampleConfig {
Float? memoryMultiplier Float? memoryMultiplier
Int mem = ceil(select_first([memory, 4.0])) Int mem = ceil(select_first([memory, 4.0]))
String toolCommand = if defined(toolJar)
then "java -Xmx" + mem + "G -jar " +toolJar
else "biopet-extractadaptersfastqc -Xmx" + mem + "G"
command { command {
set -e -o pipefail set -e -o pipefail
${preCommand} ${preCommand}
mkdir -p . ${"$(dirname " + jsonOutputPath + ")"} ${"$(dirname " + tsvOutputPath + ")"} mkdir -p . ${"$(dirname " + jsonOutputPath + ")"} ${"$(dirname " + tsvOutputPath + ")"}
biopet-sampleconfig -Xmx${mem}G \ ${toolCommand} \
-i ${sep="-i " inputFiles} \ -i ${sep="-i " inputFiles} \
${"--sample " + sample} \ ${"--sample " + sample} \
${"--library " + library} \ ${"--library " + library} \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment