bam_subsampledepth_samtools
Subsample a BAM/CRAM/SAM file using samtools to a given mean depth
subsamplebamsamcram
Input
name
description
pattern
The input channel containing the BAM/CRAM/SAM files and their indexes.
Structure: [ val(meta), path(bam), path(bai) ]
*.{bam,cram,sam} Target depth to downsample each input of ch_bam to.
Structure: [ val(meta), val(depth) ]
The meta map will be combined to the meta map of the ch_bam channel.