Question: Unexpected recursive unlist of bplapply (BiocParallel) results when using only one worker
0
gravatar for akaever
4.2 years ago by
akaever30
akaever30 wrote:

Hi,

bplapply (BiocParallel) seems to return different results when specifying more than one or only one worker core (BPPARAM=MulticoreParam(workers=1)). Of course, using bplapply with only one core doesn't make much sense, but for compatibility the result should be the same.

library(BiocParallel)
bplapply(list(1:2, 3:4), function(x){x}, BPPARAM=MulticoreParam(workers=2))
[[1]]
[1] 1 2
[[2]]
[1] 3 4

bplapply(list(1:2, 3:4), function(x){x}, BPPARAM=MulticoreParam(workers=1))
[[1]]
[1] 1
[[2]]
[1] 2
[[3]]
[1] 3
[[4]]
[1] 4

This seems like an issue with unlist.

Thanks

biocparallel bplapply • 567 views
ADD COMMENTlink written 4.2 years ago by akaever30
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 173 users visited in the last hour