Description

Produces comprehensive statistics from BAM file

Input

name
description
pattern

ch_bam_bai_bait_target

BAM/CRAM/SAM file, its index, and optionally an interval list or bed file
with the locations of the baits used and one with the locations of the targets.
The bait and target intervals may be empty lists, in which case WGS metrics
are collected instead of hybrid-selection metrics.

Structure: [ val(meta), path(bam), path(bai), path(bait_intervals), path(target_intervals) ]

ch_fasta

Reference fasta file.

Structure: [ val(meta2), path(fasta) ]

*.{fasta,fa,fna}

ch_fasta_fai

Reference fasta file index.

Structure: [ val(meta2), path(fai) ]

*.{fasta,fa,fna}.fai

ch_fasta_dict

Reference fasta sequence dictionary.

Structure: [ val(meta2), path(dict) ]

*.dict

ch_fasta_gzi

Index of a bgzipped reference fasta file.

Structure: [ val(meta2), path(gzi) ]

*.gzi

Output

name
description
pattern

coverage_metrics

Alignment metrics files generated by picard CollectHsMetrics or CollectWgsMetrics.

Structure: [ val(meta), path(coverage_metrics) ]

*_metrics.txt

multiple_metrics

Alignment metrics files generated by picard CollectMultipleMetrics.

Structure: [ val(meta), [ path(multiple_metrics) ] ]

*_{metrics}