Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalArgumentException: n must be positive #1080

Open
sevmurdock opened this issue Feb 1, 2023 · 4 comments
Open

java.lang.IllegalArgumentException: n must be positive #1080

sevmurdock opened this issue Feb 1, 2023 · 4 comments

Comments

@sevmurdock
Copy link

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
Copy link
Author

snap.log

@zyy-1111
Copy link

zyy-1111 commented Jul 3, 2024

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

@zyy-1111
Copy link

zyy-1111 commented Jul 3, 2024

image

@tgvaughan
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants