You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not clear to me what the correct behaviour should be, but bplapply stops with
an error whenever it encounters a NULL in X
bplapply(list(NULL), function(x) {
42
})
Error: BiocParallel errors
0 remote errors, element index:
1 unevaluated and other errors
first remote error:
In addition: Warning message:
In .bploop_impl(ITER = ITER, FUN = FUN, ARGS = ARGS, BPPARAM = BPPARAM, :
first invocation of 'ITER()' returned NULL
> sessionInfo()
R version 4.4.2 (2024-10-31)
Platform: aarch64-apple-darwin20
Running under: macOS Sonoma 14.6.1
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.0
locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8
time zone: Europe/London
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] BiocParallel_1.39.0
loaded via a namespace (and not attached):
[1] compiler_4.4.2 parallel_4.4.2 codetools_0.2-20
This is because BiocParallel uses an iterator internally to handle the list object, and the iterator uses NULL value to determine the end of the sequence. Here is a better example. Unlike the example from @RonanDaly , this time BiocParallel does not end gracefully. There is no error message at all.
> bplapply(list(1,2,NULL,4), function(x) {
+ x
+ })
Error: BiocParallel errors
0 remote errors, element index:
1 unevaluated and other errors
first remote error:
I think we should wrap the user-given NULL value so it would not terminate the iterator. What do you think? @mtmorgan . I can make a pull request for it.
It's not clear to me what the correct behaviour should be, but
bplapply
stops withan error whenever it encounters a
NULL
inX
I tried this on an earlier version, which works
The text was updated successfully, but these errors were encountered: