-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support BAMs with >65535 CIGAR operations
Due to a design flaw, the original BAM format is unable to store an alignment with >65535 CIGAR operations. The SAM/BAM specification maintainers have decided to move the actual CIGAR to a CG optional tag and write a fake CIGAR `<readLen>S<refLen>N` at the original CIGAR place. This PR recognizes the CG tag and seamlessly moves the real CIGAR back to its right place and update the `bin` field accordingly. Library users need not take any actions. The convert and sort commands of command-line bamtools have been tested on BAMs containing the CG tag.
- Loading branch information
1 parent
48233a2
commit 3705ed2
Showing
3 changed files
with
168 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters