htslib
htslib copied to clipboard
Fixes involving CRAM and header API for long references.
This is obviously only partial because we need CRAM4 for long reads, but it's now better at reporting errors and also now copes correctly with the cases inbetween 28-bit and 32-bit sizes for long cigar ops.
The header API has also had some fixes, which were discovered in the process of updating CRAM. The main culprit was sam_hdr_dup which didn't honour h->sdict.
Moving the code to sam_hdr_update_target_arrays
looks to have fixed the problem in a more elegant way. Thanks.