]> git.donarmstrong.com Git - samtools.git/commit
Update BIN values in 'samtools depad'
authorpeterjc <p.j.a.cock@googlemail.com>
Fri, 19 Apr 2013 11:08:42 +0000 (12:08 +0100)
committerpeterjc <p.j.a.cock@googlemail.com>
Fri, 19 Apr 2013 11:08:46 +0000 (12:08 +0100)
commit7c3295ba455fdc9269156dd1246c92ea5df3efd4
tree11d8408125f99587d2f459b75b0d6493b904cb12
parent4dde8f521add6fbc60641a280e38136c7b9e6ae5
Update BIN values in 'samtools depad'

By its nature, 'samtools depad' edits mapped reads, altering both
the mapping position and CIGAR string. This means the mapped start
and end can change, and therefore the BIN can change.

Prior to this fix the pre-editing BIN (from the padded reference)
was being written to the BAM output, leading to subtle problems
downstream when trying to use the depadded BAM file via the BAI
index. For example, in Picard v1.89 this could trigger an
java.lang.ArrayIndexOutOfBoundsException where an old BIN was
outside the length of the unpadded reference sequence.
padding.c