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

samtools: add process to rename files for multiqc

parent 22495331
No related branches found
No related tags found
No related merge requests found
......@@ -200,3 +200,29 @@ process stats_bam {
samtools flagstat -@ ${task.cpus} -O tsv ${bam} > ${bam.simpleName}_stats.tsv
"""
}
process flagstat_2_multiqc {
tag "$file_id"
input:
tuple val(file_id), path(tsv), emit: tsv
output:
tuple val(file_id), path("*.txt"), emit: report
"""
mv ${tsv} ${tsv.simpleName}.flagstat.txt
"""
}
process idxstat_2_multiqc {
tag "$file_id"
input:
tuple val(file_id), path(tsv), emit: tsv
output:
tuple val(file_id), path("*.txt"), emit: report
"""
mv ${tsv} ${tsv.simpleName}.idxstats.txt
"""
}
\ No newline at end of file
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