You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()
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
The text was updated successfully, but these errors were encountered: