popgenmethods / momi2

Infer demographic history with the Moran model
GNU General Public License v3.0
47 stars 11 forks source link

Estimating migration Kernel has died #24

Closed isisarantes closed 5 years ago

isisarantes commented 5 years ago

I'm not sure why it is happening but when I try to estimate migration between 3 populations, the kernel dies. I'm using it in the HPC and using a lot of memory and 8 ncpus. Any idea? Best, Ísis screen shot 2019-02-18 at 10 15 22 am

terhorst commented 5 years ago

An error message should be printed to the console which could help us debug further.

isisarantes commented 5 years ago
screen shot 2019-02-18 at 10 42 20 am screen shot 2019-02-18 at 10 41 55 am

I get this from my terminal window and my momi log. I Using the funcition migration_model.optimize() and it seems to be the issues to me, because it runs fast without using this function.

isisarantes commented 5 years ago

I don't get any error message using jupyter notebook, I get the message that my Kernel has died. I don't understand why. I just started using momi2.

jackkamm commented 5 years ago

Can you try exporting the notebook to a Python script (via jupyter nbconvert or dropdown menu) and running that? It may give a better error message.

Also, how many samples do you have in your 3 populations? Does the same problem occur if you decrease the sample size?

isisarantes commented 5 years ago

I know the issue, I'm doing a bad job writing the code and for some reason makes the kernel die when I use the model.optimize () function. If I don't use the function it gives me the error message with what I'm writing wrong. I'm having a really hard time trying to understand the tutorial and the documentation. The examples are complicated (at least form me) and when I'm trying to look for information about the particular function and the parameters, I can't find enough info. I know a little of python and a lot of R, and maybe my lack of knowledge on python is making it so difficult. So, this is what I'm trying to run: I have 3 populations (115 samples, 63 central, 36 south, and 16 north) and I don't know the time of divergence, the population size, migration, and the mutation rate. I'm trying to estimate it all using momi2. I know that my ancestral population is the central population of north and south. I'm trying to follow the tutorial from RADcamp that uses 2 populations, and looks so easy and simple to estimate the divergence, pop size, migration. But when I try to add the 3rd population, it starts to get complicated. I don't know how to make it work. If you have any tips, please let me know. Thank you,

isisarantes commented 5 years ago

I figured it out to write the code correctly. Phew! But I'm having issues when I try to run the bootstrap and the model optimize function. I reduced my dataset to less than half of number of samples but the these functions are taking a lot of time to run in the HPC. I was wondering if I should do some kinda of filtering of the data, any suggestion? Thank you,