-
Notifications
You must be signed in to change notification settings - Fork 401
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
"too many CIGAR operations" when converting to sorted BAM - workaround? #16
Comments
SAM/CRAM do not have the same limitation. 64k cigar is a BAM only issue. You can convert SAM to BAM as follows: git clone https://github.com/lh3/htsbox
cd htsbox; make
./htsbox samview -bS in.sam > out.bam Sorting and viewing |
Or use cram. |
I think I got both of these options working now and they appear to be producing summary level results identical to the original SAM, thanks for the help on finding workarounds! |
If you want a short walk through on how to proceed with SAM files having too long CIGAR strings for BAM files you can follow this: |
Hello,
I was running a test of minimap2 on the ONT NA12878 data and ran into an issue piping the output into "samtools sort -o output.bam":
I'm fairly certain it's related to this issue in samtools, so I don't think there is a fix for it at this time. My question is whether you know of a work-around other than using the uncompressed SAM format instead of BAM?
Thanks!
p.s. love how fast minimap2 runs compared to some of the other tools I'm testing!
The text was updated successfully, but these errors were encountered: