PeeperLab / CopywriteR

DNA copy number detection from off-target sequence data
GNU General Public License v3.0
28 stars 10 forks source link

Workers don't locate BAM files in parallel mode #31

Open franciscodavid opened 4 years ago

franciscodavid commented 4 years ago

Hi,

When running CopywriteR with BiocParallel with a bp.param like this one:

bp.param <- SnowParam(workers= 5, type= "SOCK")

I'm getting errors regarding BAM files not found in the workers

Error: BiocParallel errors element index: 1, 2, 3, 4, 5, 6, ... first error: failed to open BamFile: file(s) do not exist:

These errors are not occurring in multicore or singlecore runs and seem to be caused by using the basename of BAM paths instead of the full BAM paths.

Here is the traceback() output of the error

4: stop(.error_bplist(res)) 3: bplapply(sample.files, Stats.2, BPPARAM = bp.param) 2: bplapply(sample.files, Stats.2, BPPARAM = bp.param) 1: CopywriteR(sample.control = data.frame(samples, controls), destination.folder = outpF, reference.folder = binref, capture.regions.file = roi, bp.param = bp.param)

I hope that helps.

breezyzhao commented 3 years ago

Hi,

I met the same problem here... if I only use one sample for the test, then everything looks good, however, the error happens when I try to use the parallel methods....

image

Any idea how to solve this?

Many thanks in advance