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

ms simulation failed #203

Open
Thinking2018 opened this issue Aug 23, 2019 · 1 comment
Open

ms simulation failed #203

Thinking2018 opened this issue Aug 23, 2019 · 1 comment

Comments

@Thinking2018
Copy link

I use coala package to simulate coalescent data

with fixed number of markers

The code is as follows
m = 100
locus.n = 500
model <- coal_model(m, 0) +
locus_averaged(locus.n,10)+
feat_mutation(1,fixed_number = T) +
sumstat_seg_sites()

sumstats <- simulate(model,seed = 124+i)
sites <- sumstats$seg_sites
X <- sapply(sites,as.matrix)

When I package the above code into a function use `parSapply' to simulate more data matrix X,
it shows that error message

ms simulation failed

@xuelingyi
Copy link

I got a similar error. Perhaps you have solved it, but if not, adding the feature feat_pop_merge() may help.

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

2 participants