Entering edit mode
akaever
▴
30
@akaever-7380
Last seen 7.9 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