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

samtools: add bam_stats process

parent ebecfb6d
No related branches found
No related tags found
No related merge requests found
......@@ -123,3 +123,20 @@ process merge_bam {
samtools merge ${first_bam} ${second_bam} ${first_bam_id}_${second_file_id}.bam
"""
}
process bam_stats {
container = "${container_url}"
label "big_mem_multi_cpus"
tag "$file_id"
cpus = 2
input:
tuple val(file_id), path(bam)
output:
tuple val(file_id), path("*.tsv"), emit: tsv
script:
"""
samtools flagstat -O tsv ${bam} > ${file_id}.tsv
"""
}
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