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 {
Int? scatterSize
File? regions
Float? memory
Float? memoryMultiplier
command {
set -e -o pipefail
${preCommand}
mkdir -p ${outputDirPath}
java -Xmx2G -jar ${tool_jar} \
java -Xmx${true=memory false="2" defined(memory)}G -jar ${tool_jar} \
-R ${ref_fasta} \
-o ${outputDirPath} \
${"-s " + scatterSize} \
......@@ -46,6 +49,10 @@ task ScatterRegions {
output {
Array[File] scatters = glob(outputDirPath + "/scatter-*.bed")
}
runtime {
memory: ceil(select_first([memory, 2.0]) * select_first([memoryMultiplier, 2.0]))
}
}
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