samtools / htslib

C library for high-throughput sequencing data formats
Other
784 stars 447 forks source link

Make bam_parse_cigar able to modify existing BAM records rather than partially parsed ones. #1651

Closed jkbonfield closed 11 months ago

jkbonfield commented 11 months ago

It makes little sense for this to exist as a public API when it's only capable of handling the internal during-SAM-parse situation, and the changes are relatively minor.

Also removes an undocumented assumption that end == &in, and fixes cut and paste errors in bam_aux2f API docs.

Fixes #1650