-
Notifications
You must be signed in to change notification settings - Fork 243
htsjdk.samtools.SAMException: Unexpected number of metadata chunks 3 #643
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
Comments
I'm pretty sure there's a known issue with reference sequences that are On Fri, Jun 17, 2016 at 6:06 PM, Travis Collier notifications@github.com
|
I think I've found at least part of the problem actually...
Looks like I need to use Note that the limit isn't quite That was throwing me off since I'm well below (2^32)-1. |
Clearly the error handling could be improved when attempting to view a reference/chromosome sequence over 512Mbp using the BAI index. See also #447 for supporting CSI indexing, needed if you have a reference/chromosome longer than 512Mbp. |
We should fix that error message so that it's not confusing and useless. I opened a more explicit ticket #823 |
Uh oh!
There was an error while loading. Please reload this page.
I'm getting a exception being thrown by multiple tools which use htsjdk (IGV and picard at least). GATK is also choking on the bam file, but it's errors don't get logged in my workflow as well.
Example: running
IGV
2.3.63 on a bam file generated withbwa mem
0.7.5a-r405 from paired-end reads... when I zoom in far enough to show alignments it throws:I've also seen
Unexpected number of metadata chunks 3
on different bam files (after merging using sambamba.)Various recent versions of htslib seem to be involved.
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
OS: Ubuntu 14.04 LTS (with 128GB of RAM)
I'm thinking that the problem might have to do with the fact that one of the scaffolds in my reference is 552137040 bp long. 8*552137040 > 2^32, but I'm not sure why that would be an issue. Maybe something to do with indexing, but I'm just guessing.
There is nothing obvious in logs. I'm currently working on chopping up that big scaffold in the reference to see if the issues persist, but I suspect they will. Essentially the same workflow has run fine with a different reference.
The text was updated successfully, but these errors were encountered: