R:scheduled cores 1, 5 did not deliver results
0
0
Entering edit mode
21 months ago

hi, I'm using R package which using multi-cores, but it always show the error below:

In mclapply(argsList, FUN, mc.preschedule = preschedule, mc.set.seed = set.seed,  :
  scheduled cores 1, 5 did not deliver results, all values of the jobs will be affected

Do you have any suggestions to avoid this error?

mclapply R • 1.9k views
ADD COMMENT
0
Entering edit mode

You should use lapply to test your code works fine before you use mclapply. If your code has some problems mclapply may not report origin error messages, so you can not debug, but lapply will.

ADD REPLY
0
Entering edit mode

My code was:

library(GeneImp)

nchr = NCHR
wsize = WSIZE
nthread = NTHREAD
vcf = paste("test.", nchr, ".PLs.vcf.gz", sep="")
ref.vcf = paste("/ALL.chr", nchr, ".genotypes.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)

And the error was:

[E::hts_open_format] Failed to open file XXX:No such file or directory
tbx_index_build failed:XXX
Warning message:
In mclapply(argsList, FUN, mc.preschedule = preschedule, mc.set.seed = set.seed,  :
  scheduled cores 1, 4, 5 did not deliver results, all values of the jobs will be affected

I am confused about lapply, cause multiple-core was used inside the package GeneImp function.... , should I define how to use multi-core additionally?

Thanks for your reply!

ADD REPLY
0
Entering edit mode

Please add a reproducible example. It just means an error happened in a subset of the data. Cannot help without details. Debug as suggested with lapply.

ADD REPLY
0
Entering edit mode

I submit several bash scripts into different nodes, output shows error which I mentioned before. But when I run the script one by one, it seems less error occurred.

ADD REPLY

Login before adding your answer.

Traffic: 1865 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