Skip to content
Snippets Groups Projects
Verified Commit 493aaa15 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

samtools: fix merge_multi_bam

parent aa838665
No related branches found
No related tags found
No related merge requests found
......@@ -178,8 +178,10 @@ process merge_multi_bam {
tuple val(file_id), path("*_merged.bam*"), emit: bam
script:
"""
samtools merge ${bams} > \
${bams[0].simpleName}_merged.bam
samtools merge -@ ${task.cpus} \
${bams[0].simpleName}_merged.bam \
${bams}
"""
}
......
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