rust-bio / rust-bio-tools

A set of command line utilities based on Rust-Bio.
MIT License
182 stars 24 forks source link

fix: Handle empty sequences for bam-anonymize #241

Closed FelixMoelder closed 2 years ago

FelixMoelder commented 2 years ago

Currently, rbt bam-anonymize fails when a record has an empty sequence represented by * in a sam-file. This has been fixed by checking if the sequence length equals 0 and setting the same length for the output record.