Closed StefanoLonardi closed 2 years ago
Hi Stefano,
Thanks for your reproducible example here! This error results from a check for variable sites, and it can sometimes fail when genetic diversity is very low. For speed, this check looks for variable sites only in the first 10000 sites, and throws an error if there aren't any variants in that set. In your case, it looks like there are variable sites, but just not in the first 10000 sites.
In retrospect, this should probably be a warning instead of an error, and I'll mark that for a change in the next version. For now, you can simply add --bypass_invariant_check 'yes'
to your pixy command, and that should allow you to proceed.
Hope that helps and all the best,
Kieran
Dear Kieran,
using --bypass_invariant_check 'yes'
worked. Thank you.
Hi Kieran, this is Stefano, a colleague at UC Riverside. I have used pixy on the 11 chromosomes of cowpea that we studying with Prof Close, but it fails on three chromosomes. It works for the other eight, so I do not understand what is the issue.
Describe the bug
A reproducible example of the bug
Here is my Script (for chr11, one of the three in which Pixy fails) The script works for eight chromosomes.
=======
============ VCF and BED files are quite large. I stored them in this dropbox folder https://www.dropbox.com/sh/m9h22t31yot2tgk/AADcdKTwQ4THa28-cQUaKUJTa?dl=0
OS information Linux H4 4.15.0-177-generic #186-Ubuntu SMP Thu Apr 14 20:23:07 UTC 2022 x86_64 GNU/Linux