Skip to content

Commit 7182790

Browse files
authored
Add parallelization to two samtools calls
Thanks for this great viz tool! Adding the thread parameters to these two calls should reduce overall runtime a bit on larger genome inputs.
1 parent 6d07bcb commit 7182790

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

workflow/Snakefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ rule aln:
283283
{params.MAP_PARAMS} \
284284
--dual=yes --eqx \
285285
{input.split_ref} {input.query} \
286-
| samtools sort -m {resources.mem}G \
286+
| samtools sort -m {resources.mem}G -@ {threads} \
287287
-o {output.aln} \
288288
) 2> {log}
289289
"""
@@ -329,7 +329,7 @@ rule merge_aln:
329329
shell:
330330
"""
331331
#samtools cat -b {input.alns} -o {output.aln}
332-
samtools merge -b {input.alns} {output.aln}
332+
samtools merge -@ {threads} -b {input.alns} {output.aln}
333333
"""
334334

335335

0 commit comments

Comments
 (0)