kr-colab / discoal

discoal is a coalescent simulation program capable of simulating models with recombination, selective sweeps, and demographic changes including population splits, admixture events, and ancient samples
GNU General Public License v3.0
48 stars 10 forks source link

Generation per year parameter in generateSimLaunchScript.py #13

Closed SBNoor closed 5 years ago

SBNoor commented 5 years ago

Hi,

I was using generateSimLaunchScript.py to generate a bash script. I am using it to generate simulations for gorilla dataset I have. Gorillas have a generation time of 19 years. In your generateSimLaunchScript.py you have a variable gensPerYear. Does this variable have to be integer? Because I write 1.0/19.0 since generation time is 19 years. However, when I run the bash script I get the following error:

discoal: discoalFunctions.c:2067: makeGametesMS: Assertion `size < 40000' failed. launch_script.sh: line 5: 49509 Aborted (core dumped) ./discoal 30 2000 100000 -Pt 3876.000000 38760.000000 -Pre 66.300000 198.900000 > /home/noor/Simulation/training/Neut.msOut

Could you clarify why I'm getting this error.