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

requested changes and memory settings

parent 9af789ca
No related branches found
No related tags found
1 merge request!15Biowdl 25
# PLEASE ADD TASKS IN ALPHABETIC ORDER. # PLEASE ADD TASKS IN ALPHABETIC ORDER.
# This makes searching a lot easier. # This makes searching a lot easier.
task BaseCounter { task BaseCounter {
String? preCommand String? preCommand
String tool_jar File toolJar
File bam File bam
File bamIndex File bamIndex
File refFlat File refFlat
...@@ -17,7 +18,7 @@ task BaseCounter { ...@@ -17,7 +18,7 @@ task BaseCounter {
set -e -o pipefail set -e -o pipefail
mkdir -p ${outputDir} mkdir -p ${outputDir}
${preCommand} ${preCommand}
java -Xmx${mem}G -jar ${tool_jar} \ java -Xmx${mem}G -jar ${toolJar} \
-b ${bam} \ -b ${bam} \
-r ${refFlat} \ -r ${refFlat} \
-o ${outputDir} \ -o ${outputDir} \
...@@ -62,7 +63,7 @@ task BaseCounter { ...@@ -62,7 +63,7 @@ task BaseCounter {
} }
runtime { runtime {
memory: ceil(mem * select_first([memoryMultiplier, 1.5])) memory: ceil(mem * select_first([memoryMultiplier, 3.0]))
} }
} }
...@@ -187,7 +188,7 @@ task ScatterRegions { ...@@ -187,7 +188,7 @@ task ScatterRegions {
} }
runtime { runtime {
memory: ceil(mem * select_first([memoryMultiplier, 2.0])) memory: ceil(mem * select_first([memoryMultiplier, 3.0]))
} }
} }
...@@ -34,7 +34,7 @@ task BaseRecalibrator { ...@@ -34,7 +34,7 @@ task BaseRecalibrator {
} }
runtime { runtime {
memory: ceil(mem * select_first([memoryMultiplier, 1.5])) memory: ceil(mem * select_first([memoryMultiplier, 3.0]))
} }
} }
...@@ -78,7 +78,7 @@ task ApplyBQSR { ...@@ -78,7 +78,7 @@ task ApplyBQSR {
} }
runtime { runtime {
memory: ceil(mem * select_first([memoryMultiplier, 1.5])) memory: ceil(mem * select_first([memoryMultiplier, 3.0]))
} }
} }
...@@ -107,7 +107,7 @@ task GatherBqsrReports { ...@@ -107,7 +107,7 @@ task GatherBqsrReports {
} }
runtime { runtime {
memory: ceil(mem * select_first([memoryMultiplier, 1.5])) memory: ceil(mem * select_first([memoryMultiplier, 3.0]))
} }
} }
...@@ -149,7 +149,7 @@ task HaplotypeCallerGvcf { ...@@ -149,7 +149,7 @@ task HaplotypeCallerGvcf {
} }
runtime { runtime {
memory: ceil(mem * select_first([memoryMultiplier, 1.5])) memory: ceil(mem * select_first([memoryMultiplier, 3.0]))
} }
} }
...@@ -198,7 +198,7 @@ task GenotypeGVCFs { ...@@ -198,7 +198,7 @@ task GenotypeGVCFs {
} }
runtime{ runtime{
memory: ceil(mem * select_first([memoryMultiplier, 1.5])) memory: ceil(mem * select_first([memoryMultiplier, 3.0]))
} }
} }
...@@ -245,7 +245,7 @@ task CombineGVCFs { ...@@ -245,7 +245,7 @@ task CombineGVCFs {
} }
runtime { runtime {
memory: ceil(mem * select_first([memoryMultiplier, 1.5])) memory: ceil(mem * select_first([memoryMultiplier, 3.0]))
} }
} }
...@@ -282,6 +282,6 @@ task SplitNCigarReads { ...@@ -282,6 +282,6 @@ task SplitNCigarReads {
} }
runtime { runtime {
memory: ceil(mem * select_first([memoryMultiplier, 1.5])) memory: ceil(mem * select_first([memoryMultiplier, 3.0]))
} }
} }
...@@ -28,7 +28,7 @@ task ScatterIntervalList { ...@@ -28,7 +28,7 @@ task ScatterIntervalList {
} }
runtime { runtime {
memory: ceil(mem * select_first([memoryMultiplier, 1.5])) memory: ceil(mem * select_first([memoryMultiplier, 3.0]))
} }
} }
...@@ -63,7 +63,7 @@ task GatherBamFiles { ...@@ -63,7 +63,7 @@ task GatherBamFiles {
} }
runtime { runtime {
memory: ceil(mem * select_first([memoryMultiplier, 1.5])) memory: ceil(mem * select_first([memoryMultiplier, 3.0]))
} }
} }
...@@ -113,7 +113,7 @@ task MarkDuplicates { ...@@ -113,7 +113,7 @@ task MarkDuplicates {
} }
runtime { runtime {
memory: ceil(mem * select_first([memoryMultiplier, 1.5])) memory: ceil(mem * select_first([memoryMultiplier, 3.0]))
} }
} }
...@@ -148,7 +148,7 @@ task MergeVCFs { ...@@ -148,7 +148,7 @@ task MergeVCFs {
} }
runtime { runtime {
memory: ceil(mem * select_first([memoryMultiplier, 1.5])) memory: ceil(mem * select_first([memoryMultiplier, 3.0]))
} }
} }
...@@ -183,6 +183,6 @@ task SamToFastq { ...@@ -183,6 +183,6 @@ task SamToFastq {
} }
runtime { runtime {
memory: ceil(mem * select_first([memoryMultiplier, 1.5])) memory: ceil(mem * select_first([memoryMultiplier, 3.0]))
} }
} }
\ No newline at end of file
task Index { task Index {
String? preCommand String? preCommand
File bamFilePath File bamFilePath
String bamIndexPath String? bamIndexPath
command { command {
set -e -o pipefail set -e -o pipefail
...@@ -10,7 +10,7 @@ task Index { ...@@ -10,7 +10,7 @@ task Index {
} }
output { output {
File indexFile = bamIndexPath File indexFile = if defined(bamIndexPath) then select_first([bamIndexPath]) else bamFilePath + ".bai"
} }
} }
...@@ -22,12 +22,7 @@ task Merge { ...@@ -22,12 +22,7 @@ task Merge {
command { command {
set -e -o pipefail set -e -o pipefail
${preCommand} ${preCommand}
if [ ${length(bamFiles)} -gt 1 ] samtools merge ${outputBamPath} ${sep=' ' bamFiles}
then
samtools merge ${outputBamPath} ${sep=' ' bamFiles}
else
ln -sf ${sep=' ' bamFiles} ${outputBamPath}
fi
} }
output { output {
......
...@@ -10,7 +10,7 @@ task Stringtie { ...@@ -10,7 +10,7 @@ task Stringtie {
command { command {
set -e -o pipefail set -e -o pipefail
mkdir -p ${sub(assembledTranscriptsFile, basename(assembledTranscriptsFile), "")} mkdir -p $(dirname ${assembledTranscriptsFile})
${preCommand} ${preCommand}
stringtie \ stringtie \
${"-p " + threads} \ ${"-p " + threads} \
......
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