Skip to content
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

variant command overestimates max coverage with Nanopore reads #22

Open
pmaragno opened this issue May 15, 2023 · 5 comments
Open

variant command overestimates max coverage with Nanopore reads #22

pmaragno opened this issue May 15, 2023 · 5 comments

Comments

@pmaragno
Copy link

Dear VariantBam developers,

I ran the command variant $bam -m 100 -o mini.bam -b to obtain a maximum coverage of 50 along my sample, however when I visually inspected the result in the genome browser I noticed that the maximum coverage is higher than 50, as visible in the picture:

VariantBam_example_50X

Maybe, this bug could be due to the fact that Nanopore reads are not all of the same length, unlike Illumina reads?

Thanks in advance,
Paola Maragno

@walaj
Copy link
Owner

walaj commented May 15, 2023

Doesn't the command with -m 100 set max coverage to 100, not 50?

@pmaragno
Copy link
Author

Sorry, I reported that command as an example, but I set -m to 50 to obtain a maximum coverage of 50 along my sample.

@walaj
Copy link
Owner

walaj commented May 15, 2023

OK hard to say -- the issue must be somewhere in STCoverage (https://github.com/walaj/VariantBam/blob/master/src/STCoverage.cpp). I can try to re-create and fix if you have the ability to share a minimal BAM fragment (e.g. with a Dropbox link, can send to [email protected])

@pmaragno
Copy link
Author

I have just shared with you by mail ([email protected]) the bam file. Thanks for the help!

@mbhall88
Copy link

Were you ever able to get to the bottom of this @walaj?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants