diff --git a/biopet.wdl b/biopet.wdl index b9969b83ef45ab7ca610a6fc8d4213ddb2f7c7a8..ea8d2ba4233d8a1373c701c33b3b052388d825dc 100644 --- a/biopet.wdl +++ b/biopet.wdl @@ -169,6 +169,7 @@ task FastqSync { } task SampleConfig { + File? toolJar String? preCommand Array[File]+ inputFiles String keyFilePath @@ -182,11 +183,15 @@ task SampleConfig { Float? memoryMultiplier 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 { set -e -o pipefail ${preCommand} mkdir -p . ${"$(dirname " + jsonOutputPath + ")"} ${"$(dirname " + tsvOutputPath + ")"} - biopet-sampleconfig -Xmx${mem}G \ + ${toolCommand} \ -i ${sep="-i " inputFiles} \ ${"--sample " + sample} \ ${"--library " + library} \