Skip to content

Commit ba35d98

Browse files
committed
Set a lower number of threads for samtools merge to decrease waste
1 parent 6a78f52 commit ba35d98

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

samtools.wdl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,9 @@ task Merge {
436436
Boolean combinePGHeaders = false
437437

438438
Int compressionLevel = 1
439-
# Merging is often a bottleneck. Set a high number of threads to decrease wall clock time.
440-
Int threads = 8
439+
# Merging is often a bottleneck. With compression level 1 however,
440+
# more than three threads does not add more benefit.
441+
Int threads = 3
441442
String memory = "4GiB"
442443
Int timeMinutes = 1 + ceil(size(bamFiles, "GiB") * 4)
443444
String dockerImage = "quay.io/biocontainers/samtools:1.21--h96c455f_1"

0 commit comments

Comments
 (0)