ctlab / GADMA

Genetic Algorithm for Demographic Model Analysis
Other
47 stars 14 forks source link

ZeroDivisionError #23

Closed silvewheat closed 4 years ago

silvewheat commented 4 years ago

Hello, When I try to run GADMA, there is an error occurd: image My parameter file is : image

silvewheat commented 4 years ago

I noticed that there are lots of warnings. Is that related with the error? image

silvewheat commented 4 years ago

It seems that because my SFS file have too many zero. I'm checking now.

silvewheat commented 4 years ago

Is there someway to convert momi2 SFS file to dadi format? Because I exclude some regions when calculate SFS, which is supported by momi2 but not easySFS.

silvewheat commented 4 years ago

I forgot the option -a when generate the SFS file using easySFS. That maybe the reason. I'm generating a new SFS file now. I'll tell you if the new SFS work.

noscode commented 4 years ago

Dear @silvewheat,

Thank you for your interest to GADMA and for bug report! This is actually wrong behavior and unexpected error, I will fix this in the next release. You are right it looks like AFS has a lot of zeros and this is the actual problem because as the result theta is very small and size of ancestral population becomes around zero and causes this error. Please keep me updated about your new AFS.

Best regards, Ekaterina

silvewheat commented 4 years ago

GADMA now is running correctly when I using the new SFS file. Thank you.