fulcrumgenomics / fgbio

Tools for working with genomic and high throughput sequencing data.
http://fulcrumgenomics.github.io/fgbio/
MIT License
309 stars 67 forks source link

feature request: add option to FilterBam to write filtered reads to separate file #971

Open eboyden opened 6 months ago

eboyden commented 6 months ago

Self-explanatory. Useful for example for preserving unmapped reads, operating on aligned reads, and then adding the unmapped reads back to create a "lossless" bam. Command could be run serially if finer control is desired, e.g. permanently discard secondary alignments and preserve unmapped reads only.