lh3 / psmc

Implementation of the Pairwise Sequentially Markovian Coalescent (PSMC) model
Other
146 stars 60 forks source link

psmc_plot.pl error #25

Open chenqing-1996 opened 3 years ago

chenqing-1996 commented 3 years ago

dear lh3: I set parameters of psmc as N30 –t5 –r5 –p 4+302+4+6+10,when it finished ,I wanted to visualize it,I used psmc_plot .pl ,but it producted error:Use of uninitialized value in division (/) at /utils/psmc_plot.pl line 119, <> line 1038. Use of uninitialized value in division (/) at /utils/psmc_plot.pl line 119, <> line 1038. Illegal division by zero at /utils/psmc_plot.pl line 119, <> line 1038. when i used parameters of psmc as N25 -t15 -r5 -p "4+252+4+6",psmc_plot .pl generated plot normally I can't resove it. I want to know reasons about it. thanks

oasiswho commented 3 years ago

I got the same error, Do you solve this problem?

oasiswho commented 3 years ago

Hey guys, maybe there are some "Na" in your *.psmc , check it out .I run the psmc with other parameter ,and solve this problem , amazing!

Jiangjiangzhang6 commented 9 months ago

need to split the psmcfa image

llity commented 2 months ago

@oasiswho what's the parameter?

freshspaceoctopus commented 2 months ago

OK, so for any unfortunate soul who encounters this error, If your psmc files are not faulty (no NANs), the problem is jus because the plotting function starts drawing by the 20th iteration by default. (option -n) You can override this option using -n .