-
Notifications
You must be signed in to change notification settings - Fork 92
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
Problem with ABBABABAwindows.py #28
Comments
Apologies, this was a bug with migration to Python3. Should hopefully be working in the latest version |
Thank you for your reply.
Note: CB11 is the name of the first sample in my geno. I reordered the samples in the pops file to match the order in the geno file, and I get the same error with another sample name. |
I think the issue was caused by a change in text encoding in python 3 (as you can see I made these changes for python 3 without actually testing that the script still works!). I've added the fix now (again without testing, so I hope it works!) |
Hi Simon,
|
Oh that's a pain. This is one I have not seen before. If you attach a short subset of your file (the first 1000 lines should do) I could try figure it out. Might not get to this today though. |
Thank you Simon. A lot is riding on this analysis. I really appreciate your help |
I couldn't recreate your specific error with the first 1000 lines, but I did see an issue with your input file that will cause errors. It contains multi-base genotypes, which cannot be parsed by my scripts. In any case, in this subset, at these sites, all individuals are heterozygous, so the sites don't carry any information anyway. After removing those I could run the script with no issues.
|
Hi Simon, Thank you very much, |
Hi,
Thank you very much for your scripts.
I have been struggling a lot with ABBABABAwindows.py
I am using python 3
When I run this command
python3 ABBABABAwindows.py -g $FILE.geno.gz -o $FILE.fd2.csv -w 20 -m 10 -s 20 -f phased --minData 0.5 -P1 P1 -P2 P2-P3 P3 -O P4--popsFile pop_file.txt
I get
and when I run
python3 ABBABABAwindows.py
I get
Can you please assist.
Thank you very much,
The text was updated successfully, but these errors were encountered: