Unexpected recursive unlist of bplapply (BiocParallel) results when using only one worker
0
0
Entering edit mode
akaever ▴ 30
@akaever-7380
Last seen 7.8 years ago

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 • 1.3k views
ADD COMMENT

Login before adding your answer.

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