psmc icon indicating copy to clipboard operation
psmc copied to clipboard

problem with psmc_plot.pl

Open cyadrogarcia opened this issue 1 year ago • 2 comments

I have run psmc and when trying to plot i am getting this error

psmc_plot.pl -R -u 0.53e-8 diploid diploid.psmc Use of uninitialized value in division (/) at /share/apps/psmc/utils/psmc_plot.pl line 119, <> line 1115. Use of uninitialized value in division (/) at /share/apps/psmc/utils/psmc_plot.pl line 119, <> line 1115. Illegal division by zero at /share/apps/psmc/utils/psmc_plot.pl line 119, <> line 1115.

has anyone dealed with this before? I was considering use ggplot, but not sure wich column to use or wich iteration

cyadrogarcia avatar May 17 '24 10:05 cyadrogarcia

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

freshspaceoctopus avatar May 22 '24 16:05 freshspaceoctopus

I have the same issue; psmc files had NANs values. Did you resolve the issue?

RozimovAkbarjon avatar Apr 14 '25 02:04 RozimovAkbarjon