bam_subsampledepth_samtools
Subsample a BAM/CRAM/SAM file using samtools to a given mean depth.
“region”, “subsample_fraction”, “mean_depth” and “depth” keys will be added to the meta
map to distinguish the different file generated and therefore shouldn’t be used.
The depth key will be added to the meta map of the output channel.
Description
Subsample a BAM/CRAM/SAM file using samtools to a given mean depth.
“region”, “subsample_fraction”, “mean_depth” and “depth” keys will be added to the meta
map to distinguish the different file generated and therefore shouldn’t be used.
The depth key will be added to the meta map of the output channel.
Input
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.
The reference genome channel containing the fasta files and its index
Structure: [ val(meta), path(fasta), path(fai) ]
*.{fa(sta)?}