Description

Produces comprehensive statistics from SAM/BAM/CRAM file

Input

name
description
pattern

ch_bam_bai

The input channel containing the BAM/CRAM and it’s index
Structure: [ val(meta), path(bam), path(bai) ]

ch_fasta_fai

Reference genome fasta file and its index
Structure: [ val(meta2), path(fasta), path(fai) ]

Output

name
description
pattern

stats

File containing samtools stats output
Structure: [ val(meta), path(stats) ]

flagstat

File containing samtools flagstat output
Structure: [ val(meta), path(flagstat) ]

idxstats

File containing samtools idxstats output
Structure: [ val(meta), path(idxstats)]