Comments (19)
Hi!
Thanks for using popstats. You need to change how you specify the input files. Could you try
python2 popstats.py --tped good.tped --tfam good.tfam --not23 --pops pop1,pop2,pop3,pop4 --informative
?
from popstats.
Hi
Thanks, I tried to modify my command lines but it still show the same error.
Below is how my tped file looks
1 LG1:31384 0 31384 T T T C T T T T T T T T T T T T T T 0 T 0 0 T T T T T T T
1 LG1:31396 0 31396 A T T T G T T T T T T T T T T T T T T T T 0 T C T T T T T
And tfam
pop indv1 indv1 0 0 0 0
pop indv2 indv2 0 0 0 0
Thanks for help!
from popstats.
Hi,
Your tfam file should have e.g. "pop1" or "pop2" and not just "pop" in the first column. If changing this doesn't work, would it be possible for you to send your whole file to me by email?
Pontus
from popstats.
Hi
Thanks, in my tfam it is like
pop1 indv1 indv1 0 0 0 0
pop1 indv2 indv2 0 0 0 0
pop1 indv3 indv3 0 0 0 0
pop2 indv4 indv4 0 0 0 0
pop2 indv5 indv5 0 0 0 0
pop3 indv6 indv7 0 0 0 0
pop4 indv7 indv7 0 0 0 0
Of course I can send my tfam and tped to you. Can you give me your email address please?
Thanks for helping!
from popstats.
from popstats.
Hi
Many thanks!
I solved the problem, it is because of the data filtering that my outgroup data was mistakenly filtered.
from popstats.
Great, thanks for your interest in popstats!
from popstats.
Hi,
I too an trying to runt eh D-statistic and have a similar error when running the command python2 popstats.py --tped stacks10_r0.6_7pops.tped --tfam stacks10_r0.6_7pops.tfam --not23 --pops boutoniana,pterocalyx,nodosa,borbonica --informative
ERROR
Traceback (most recent call last):
File "popstats.py", line 1838, in
Dp_main = sum(t_list) / sum(n_list)
ZeroDivisionError: integer division or modulo by zero
and my .tfam file looks similar, I was wondering what could be going wrong? @tomatomaolajiao could my outgroup data have been mistakenly filtered as well in a similar way to yours?
boutoniana 10_01 0 0 0 0
boutoniana 10_02 0 0 0 0
boutoniana 10_03 0 0 0 0
boutoniana 10_04 0 0 0 0
pterocalyx 84_03 0 0 0 0
pterocalyx 84_04 0 0 0 0
nodosa 87_05 0 0 0 0
nodosa 87_07 0 0 0 0
etc.
my .tped file looks like
0 5_3 0 149 G G G G G G G G G A G A G
from popstats.
from popstats.
I have changed the chromosome names to 1 (this is a RADseq dataset). I am not sure how to change the default block size. None of the program options really jumped out as being able to change that. When I run the same command as above with chromosomes all named 1, I get the following
genocount != popcount, 634 176
I am not sure what this means, and no output file is produced?
from popstats.
from popstats.
I think I have corrected the error to ensure the same number of individuals are in both tped and tfam files. However, when I run the program I still get an error:
Traceback (most recent call last):
File "popstats.py", line 2166, in
D_pop =sumt / sumn
ZeroDivisionError: float division by zero
from popstats.
from popstats.
from popstats.
Thanks so much Pontus!
So, if I am interpreting this correctly, the positive D-stat indicates admixture between A and X?
Also given that I know the phylogeny of these species I rearranged the populations and set pop Y to be the ancestor. I get a D-stat of -0.03, given this is close to 0. would I interpret this to mean there is admixture between pop X and Y?
from popstats.
from popstats.
Dear Pontus,
I have also exact same problem. Could you help me on that stuff? I am sending you tped and tfam files by e-mail.
thank you.
from popstats.
I solved this problem. So please ignore my question. Thank you.
emrah
from popstats.
from popstats.
Related Issues (10)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from popstats.