-
Notifications
You must be signed in to change notification settings - Fork 8
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
Segfault on the cliveome #9
Comments
I've now managed to replicate this converting that cram to a bam with samtools proper so I'm raising this with the samtools team. |
Hello @mp15, Could you give me some more details on what's happening? If I'm understanding correctly the steps you've performed are:
But you get the above error at (4). Then you were able to get a similar error when using |
It's a funny one, and kinda low level so you probably can't catch it. I got James Bonfield to have a look at the CRAM and he found the problem, I actually broke the fileformat. I had used --emit-moves in dorado in anticipation of doing duplex calling. When this is combined with minimap the large mv tags were replicated to each secondary mapping by minimap2. Secondary mappings don't have SEQ having a * instead. This means they don't count towards the 5mbases of sequences we keep in each CRAM container block. So when I merged the 3 promethion lanes of Cliveome a huge number of secondary mappings with their mv tags ended up in one container block making it larger than 2GB and overflowed the 32-bit signed int used to store size. James is going to make a fix to htslib, I'll let you know when. You may wish to upgrade htslib when we do. In the mean time I'm going to tweak my workflow so I don't make such a silly result. |
Interesting, thanks, keep me posted. |
Bug fix for htslib is in: samtools/htslib#1613. I'm going to ask Rob if we can make a release soon. |
Great. It'll have to make it into rust-htslib also, but I can probably push on it once it's in mainline. Thanks for the update. |
Whilst running on the cliveome aligned with Dorado, mapped with minimap2 and sorted with samtools I have run into the following segfault. Any chance you can put out a version of your binary compiled with full debug symbols or should I compile from scratch and try and reproduce?
The text was updated successfully, but these errors were encountered: