Question: Unexpected recursive unlist of bplapply (BiocParallel) results when using only one worker
0
4.4 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 • 597 views