-
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
Call-mods Error: thread 'main' panicked at 'called Option::unwrap()
on a None
value'
#29
Comments
Hello @OOM-Killer415, $ RUST_BACKTRACE=full modkit ... This error is coming from the bam-parsing library (rust-htslib), looks like it's failing to parse the records in the header. Could you post and/or inspect the headers from a BAM that works and one that doesn't? ( |
Thanks for the reply @ArtRand ! Here’s the full trace: thread 'main' panicked at 'called I also took a look at a few headers from working and not-working .bams – here are a few examples: .bam that worked: @hd VN:1.6 SO:coordinate .bam that errored: @hd VN:1.6 SO:coordinate |
@OOM-Killer415 |
Its likely a copy-paste issue. When viewing the headers with samtools I see capital type codes. Here's the subset of a failed BAM: |
Yup, I didn't realize that github mardown would be so "friendly" :) The problem is that the |
@OOM-Killer415 version 0.1.9 shouldn't have this problem. |
Hi,
I’ve been trying to run the call-mods module on a .bam file to ‘filter out’ reads containing lower methylation probabilities prior to visualization yet keep encountering the following error when running this command :
modkit call-mods 221110_ys18_Me_Naked_R10_all_6mAcalled.sorted.bam filt.bam --mod-threshold A:0.8 --mod-threshold a:0.9
thread 'main' panicked at 'called
Option::unwrap()
on aNone
value', /home/boegersome/.cargo/registry/src/github.com-1ecc6299db9ec823/rust-htslib-0.40.2/src/bam/header.rs:95:27I’m admittedly very new to bioinformatics but it's unclear what the error could be from this message. I’ve also noticed that the ‘call-mods’ command works fine when running on a .bam file with little to no methylation signal, but always errors when running on a sufficiently modified sample.
The text was updated successfully, but these errors were encountered: