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

fix sambamba threads

parent ab72ec3f
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ task Markdup { ...@@ -26,7 +26,7 @@ task Markdup {
Array[File] inputBams Array[File] inputBams
String outputPath String outputPath
# Sambamba additional threads like samtools # Sambamba additional threads like samtools
Int threads = 0 Int threads = 1
Int compressionLevel = 1 Int compressionLevel = 1
Int? hashTableSize Int? hashTableSize
Int? overFlowListSize Int? overFlowListSize
...@@ -64,7 +64,7 @@ task Markdup { ...@@ -64,7 +64,7 @@ task Markdup {
runtime { runtime {
memory: "~{memoryGb}G" memory: "~{memoryGb}G"
cpu: threads + 1 cpu: threads
time_minutes: timeMinutes time_minutes: timeMinutes
docker: dockerImage docker: dockerImage
} }
...@@ -77,9 +77,9 @@ task Sort { ...@@ -77,9 +77,9 @@ task Sort {
Boolean sortByName = false Boolean sortByName = false
Int compressionLevel = 1 Int compressionLevel = 1
# Sambamba additional threads like samtools # Sambamba additional threads like samtools
Int threads = 0 Int threads = 1
Int memoryPerThreadGb = 4 Int memoryPerThreadGb = 4
Int memoryGb = 1 + (threads + 1) * memoryPerThreadGb Int memoryGb = 1 + threads * memoryPerThreadGb
String dockerImage = "quay.io/biocontainers/sambamba:0.7.1--h148d290_2" String dockerImage = "quay.io/biocontainers/sambamba:0.7.1--h148d290_2"
Int timeMinutes = 1 + ceil(size(inputBam, "G") * 3) Int timeMinutes = 1 + ceil(size(inputBam, "G") * 3)
} }
...@@ -107,7 +107,7 @@ task Sort { ...@@ -107,7 +107,7 @@ task Sort {
} }
runtime { runtime {
cpu: threads + 1 cpu: threads
memory: "~{memoryGb}G" memory: "~{memoryGb}G"
docker: dockerImage docker: dockerImage
time_minutes: timeMinutes time_minutes: timeMinutes
......
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