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

runtime adjustments

parent 6b394c91
No related branches found
No related tags found
1 merge request!8Run time settings and additional adjustments
...@@ -58,11 +58,14 @@ task SampleConfig { ...@@ -58,11 +58,14 @@ task SampleConfig {
String? jsonOutputPath String? jsonOutputPath
String? tsvOutputPath String? tsvOutputPath
Float? memory
Float? memoryMultiplier
command { command {
set -e -o pipefail set -e -o pipefail
${preCommand} ${preCommand}
mkdir -p . ${"$(dirname " + jsonOutputPath + ")"} ${"$(dirname " + tsvOutputPath + ")"} mkdir -p . ${"$(dirname " + jsonOutputPath + ")"} ${"$(dirname " + tsvOutputPath + ")"}
java -Xmx3G -jar ${tool_jar} \ java -Xmx${default=3 memory}G -jar ${tool_jar} \
-i ${sep="-i " inputFiles} \ -i ${sep="-i " inputFiles} \
${"--sample " + sample} \ ${"--sample " + sample} \
${"--library " + library} \ ${"--library " + library} \
...@@ -79,7 +82,7 @@ task SampleConfig { ...@@ -79,7 +82,7 @@ task SampleConfig {
} }
runtime { runtime {
memory: 6 memory: selectFirst([memory, 3]) * selectFirst([memoryMultiplier, 1.5])
} }
} }
...@@ -91,11 +94,14 @@ task BaseCounter { ...@@ -91,11 +94,14 @@ task BaseCounter {
String outputDir String outputDir
String prefix String prefix
Float? memory
Float? memoryMultiplier
command { command {
set -e -o pipefail set -e -o pipefail
${preCommand} ${preCommand}
mkdir -p ${outputDir} mkdir -p ${outputDir}
java -jar ${tool_jar} \ java -Xmx${default=12 memory}-jar ${tool_jar} \
-b ${bam} \ -b ${bam} \
-r ${refFlat} \ -r ${refFlat} \
-o ${outputDir} \ -o ${outputDir} \
...@@ -140,6 +146,6 @@ task BaseCounter { ...@@ -140,6 +146,6 @@ task BaseCounter {
} }
runtime { runtime {
memory: 16 memory: selectFirst([memory, 12]) * selectFirst([memoryMultiplier, 1.5])
} }
} }
...@@ -62,10 +62,14 @@ task extractAdapters { ...@@ -62,10 +62,14 @@ task extractAdapters {
File? knownAdapterFile File? knownAdapterFile
Float? adapterCutoff Float? adapterCutoff
Boolean? outputAsFasta Boolean? outputAsFasta
Float? memory
Float? memoryMultiplier
command { command {
set -e set -e
mkdir -p ${outputDir} mkdir -p ${outputDir}
java -Xmx4G -jar ${extractAdaptersFastqcJar} \ java -Xmx${default=4 memory}G -jar ${extractAdaptersFastqcJar} \
--inputFile ${inputFile} \ --inputFile ${inputFile} \
${"--adapterOutputFile " + adapterOutputFilePath } \ ${"--adapterOutputFile " + adapterOutputFilePath } \
${"--contamsOutputFile " + contamsOutputFilePath } \ ${"--contamsOutputFile " + contamsOutputFilePath } \
...@@ -84,7 +88,7 @@ task extractAdapters { ...@@ -84,7 +88,7 @@ task extractAdapters {
} }
runtime { runtime {
memory: 6 memory: (if defined(memory) then memory else 4) * (if defined(memoryMultiplier) then memoryMultiplier else 1.5)
} }
} }
......
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