beast2 icon indicating copy to clipboard operation
beast2 copied to clipboard

java.lang.IllegalArgumentException: n must be positive

Open sevmurdock opened this issue 2 years ago • 4 comments

Having the Java error bellow when trying to Run Beast2 Using Nexus File produced by converting a VCF file to a genlight in R and then converting the genlight to Nexus with the package DART

gl <- gl.compliance.check(gl) gl2snapp(gl,outpath=getwd(),verbose=3)

Following the tutorial from Josh Banta

https://www.youtube.com/watch?v=1qA4N4t6hLs&t=693s

java.lang.IllegalArgumentException: n must be positive at beast.base.util.MersenneTwisterFast.nextInt(Unknown Source) at beast.base.util.Randomizer.nextInt(Unknown Source) at snap.operators.NodeBudger.proposal(Unknown Source) at beast.base.inference.Operator.proposal(Unknown Source) at beast.base.inference.MCMC.propagateState(Unknown Source) at beast.base.inference.MCMC.doLoop(Unknown Source) at beast.base.inference.MCMC.run(Unknown Source) at beastfx.app.beast.BeastMCMC.run(Unknown Source) at beastfx.app.beast.Controller$2.run(Unknown Source)

sevmurdock avatar Feb 01 '23 05:02 sevmurdock

snap.log

sevmurdock avatar Feb 01 '23 05:02 sevmurdock

I met the same problem, could you tell me your solution? Thanks a lot.

zyy-1111 avatar Jul 03 '24 13:07 zyy-1111

image

zyy-1111 avatar Jul 03 '24 13:07 zyy-1111

It might be worth raising this issue against the SNAPP repository, as this issue is probably specific to that package.

tgvaughan avatar Jul 03 '24 13:07 tgvaughan