diff --git a/biopet/biopet.wdl b/biopet/biopet.wdl index 310d9c0b8330b0767e261f1123d788d9810c900c..8a66e4286c1882c0d5b1da92c4873caa9bfea0ae 100644 --- a/biopet/biopet.wdl +++ b/biopet/biopet.wdl @@ -235,27 +235,21 @@ task ReorderGlobbedScatters { task ScatterRegions { input { - String? preCommand Reference reference String outputDirPath - File? toolJar Int? scatterSize File? regions Boolean notSplitContigs = false Int memory = 4 Float memoryMultiplier = 3.0 + String dockerTag = "0.2--0" } - String toolCommand = if defined(toolJar) - then "java -Xmx" + memory + "G -jar " +toolJar - else "biopet-scatterregions -Xmx" + memory + "G" - command { set -e -o pipefail - ~{preCommand} mkdir -p ~{outputDirPath} - ~{toolCommand} \ + biopet-scatterregions -Xmx~{memory}G \ -R ~{reference.fasta} \ -o ~{outputDirPath} \ ~{"-s " + scatterSize} \ @@ -268,6 +262,7 @@ task ScatterRegions { } runtime { + docker: "quay.io/biopet-scatterregions/gatk:" + dockerTag memory: ceil(memory * memoryMultiplier) } }