Skip to content
Snippets Groups Projects
Commit fec7883a authored by Cats's avatar Cats
Browse files

add runtime to scatterRegions

parent 38b1c5f1
No related branches found
No related tags found
1 merge request!8Run time settings and additional adjustments
...@@ -32,11 +32,14 @@ task ScatterRegions { ...@@ -32,11 +32,14 @@ task ScatterRegions {
Int? scatterSize Int? scatterSize
File? regions File? regions
Float? memory
Float? memoryMultiplier
command { command {
set -e -o pipefail set -e -o pipefail
${preCommand} ${preCommand}
mkdir -p ${outputDirPath} mkdir -p ${outputDirPath}
java -Xmx2G -jar ${tool_jar} \ java -Xmx${true=memory false="2" defined(memory)}G -jar ${tool_jar} \
-R ${ref_fasta} \ -R ${ref_fasta} \
-o ${outputDirPath} \ -o ${outputDirPath} \
${"-s " + scatterSize} \ ${"-s " + scatterSize} \
...@@ -46,6 +49,10 @@ task ScatterRegions { ...@@ -46,6 +49,10 @@ task ScatterRegions {
output { output {
Array[File] scatters = glob(outputDirPath + "/scatter-*.bed") Array[File] scatters = glob(outputDirPath + "/scatter-*.bed")
} }
runtime {
memory: ceil(select_first([memory, 2.0]) * select_first([memoryMultiplier, 2.0]))
}
} }
task SampleConfig { task SampleConfig {
......
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