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

Warning: No SNPs were detected so there is nothing to output #96

Open
pgcudahy opened this issue Aug 28, 2020 · 1 comment
Open

Warning: No SNPs were detected so there is nothing to output #96

pgcudahy opened this issue Aug 28, 2020 · 1 comment

Comments

@pgcudahy
Copy link

I've got a set of 972 Mtb isolates that I'm trying to run snp-sites -c -o on, but it fails with the error Warning: No SNPs were detected so there is nothing to output. However, it works with removing the -c flag. How can I try and figure out which isolates are causing problems?

@hkeward
Copy link

hkeward commented Nov 12, 2021

This seems to happen because the -c option removes any call across all samples where any of your samples has a non-ACTG at that position. This could be due to a true deletion at that site, an area of a particular sample that has not aligned to your reference (low depth? poor quality?), or a site with some other non-ACTG character. With a large number of samples, even a single sample missing a call at a position will result in that call being removed entirely when -c is used. With a large number of samples, you're probably just filtering out all sites because at least one sample has a non-ACTG for every site.

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

2 participants