-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pysam doesn't support long cigars #613
Comments
See also samtools/hts-specs#40 |
I imagine that this will end up being related to #608, since that is what allows for all three file types to hold more than 2^16 operations. |
This seems to be a pysam issue, rather than an htslib issue, as samtools and htslib have supported longer cigars in sam/cram for some time -- it's just bam that now has the support using the tag workaround. I can confirm that the pysam htslib-1.7 branch does not fix this issue. |
Thanks for reporting, I will look into this. |
Hi, |
Thanks for the quick work. I'm a little confused about this, but I don't think it's quite working yet. It seems to save the cigar to file properly if you create a long read and long cigar in pysam. However, neither cigartuples nor cigarstring report the correct lengths in pysam, either when read from the file or when created in memory. Hence, I think your tests seem to work but the lengths still aren't correct. I would add an explicit check for
|
Ah, well, here's the fix: update |
Thanks, will do. |
Thanks, it should be fixed now. |
{AH} fix long cigar parsing in SAM/BAM/CRAM, fixes #613
pysam doesn't properly read cigars from a sam or cram file if they're longer than 2^16.
The text was updated successfully, but these errors were encountered: