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
0
0
Entering edit mode
21 months ago

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!

mclapply doMC R • 694 views
ADD COMMENT

Login before adding your answer.

Traffic: 1850 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6