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

samtools: add process to merge multiple bam

parent 21f39466
No related branches found
No related tags found
No related merge requests found
......@@ -165,6 +165,24 @@ samtools merge ${first_bam} ${second_bam} \
"""
}
process merge_multi_bam {
container = "${container_url}"
label "big_mem_multi_cpus"
tag "$file_id"
cpus = 2
input:
tuple val(file_id), path(bams)
output:
tuple val(file_id), path("*.bam*"), emit: bam
script:
"""
samtools merge ${bams} \
${file_id}.bam
"""
}
process stats_bam {
container = "${container_url}"
label "big_mem_multi_cpus"
......
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