Entering edit mode
21 months ago
wangjincheng
•
0
Hi, I'm using R package to run a matrix which contains several samples. The package uses parallel process. But it always shows error below:
In mclapply(argsList, FUN, mc.preschedule = preschedule, mc.set.seed = set.seed, : scheduled cores 1, 2 did not deliver results, all values of the jobs will be affected
my R scripts was:
r0 = getwd(); setwd(r0)
library(foreach)
doFuture::registerDoFuture()
library(doRNG)
library(GeneImp)
nchr = 9
wsize = 15
nthread = 5
vcf = paste("file1.", nchr, ".PLs.vcf.gz", sep="")
ref.vcf = paste("file1.reference", nchr, "..vcf.gz", sep="")
imputevcf(vcfname=vcf, ref.vcfname=ref.vcf, klthresh=wsize, flanksize=0.5,
filtermethod=c("pairrand"), numfilterhaps=200,
maxjobs=nthread, write.dir=NULL, temp.dir=NULL,
verbose=0, diagnostics=FALSE)
the max jobs means:maxjobs: Maximum number of parallel processes to run with ‘doMC’.
Does anyone can help me to understand and solve this problem? Thanks a lot!