Skip to content
Snippets Groups Projects
Commit c8af9b5d authored by Ruben Vorderman's avatar Ruben Vorderman
Browse files

dockerize scatterregions

parent 31551e41
No related branches found
No related tags found
1 merge request!92Dockerize GATK. Scattering now works with containers. Tabix another docker image.
...@@ -235,27 +235,21 @@ task ReorderGlobbedScatters { ...@@ -235,27 +235,21 @@ task ReorderGlobbedScatters {
task ScatterRegions { task ScatterRegions {
input { input {
String? preCommand
Reference reference Reference reference
String outputDirPath String outputDirPath
File? toolJar
Int? scatterSize Int? scatterSize
File? regions File? regions
Boolean notSplitContigs = false Boolean notSplitContigs = false
Int memory = 4 Int memory = 4
Float memoryMultiplier = 3.0 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 { command {
set -e -o pipefail set -e -o pipefail
~{preCommand}
mkdir -p ~{outputDirPath} mkdir -p ~{outputDirPath}
~{toolCommand} \ biopet-scatterregions -Xmx~{memory}G \
-R ~{reference.fasta} \ -R ~{reference.fasta} \
-o ~{outputDirPath} \ -o ~{outputDirPath} \
~{"-s " + scatterSize} \ ~{"-s " + scatterSize} \
...@@ -268,6 +262,7 @@ task ScatterRegions { ...@@ -268,6 +262,7 @@ task ScatterRegions {
} }
runtime { runtime {
docker: "quay.io/biopet-scatterregions/gatk:" + dockerTag
memory: ceil(memory * memoryMultiplier) memory: ceil(memory * memoryMultiplier)
} }
} }
......
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