Entering edit mode
Hi TPP2D package maintainers,
I am trying to analyse data from a 2D-TPP experiment. Unfortunately, the following step returns an error:
> null_model_B2 <- bootstrapNullAlternativeModel(df = preproc_df, params_df = model_params_df, B = 2)
[1] "Warning: You have specificed B < 20, it is recommended to use at least B = 20 in order to obtain reliable results."
|===================================================================================================| 100%
Error: BiocParallel errors
1 remote errors, element index: 6885
0 unevaluated and other errors
first remote error: subscript out of bounds
In addition: Warning message:
In max(nObs) : no non-missing arguments to max; returning -Inf
The vignette code runs without problems (using the package example data). Here is my session info:
> sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.7
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib
Random number generation:
RNG: L'Ecuyer-CMRG
Normal: Inversion
Sample: Rejection
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] TPP2D_1.10.0 dplyr_1.0.8 readr_2.1.2
loaded via a namespace (and not attached):
[1] zip_2.2.0 Rcpp_1.0.8.3 pillar_1.7.0 compiler_4.1.2 bitops_1.0-7
[6] iterators_1.0.14 tools_4.1.2 bit_4.0.4 lifecycle_1.0.1 tibble_3.1.6
[11] gtable_0.3.0 pkgconfig_2.0.3 rlang_1.0.2 openxlsx_4.2.5 foreach_1.5.2
[16] rstudioapi_0.13 DBI_1.1.2 cli_3.2.0 parallel_4.1.2 withr_2.5.0
[21] stringr_1.4.0 generics_0.1.2 vctrs_0.4.0 hms_1.1.1 bit64_4.0.5
[26] grid_4.1.2 tidyselect_1.1.2 glue_1.6.2 R6_2.5.1 fansi_1.0.3
[31] BiocParallel_1.28.3 vroom_1.5.7 limma_3.50.1 tidyr_1.2.0 tzdb_0.3.0
[36] ggplot2_3.3.5 purrr_0.3.4 magrittr_2.0.3 scales_1.1.1 codetools_0.2-18
[41] ellipsis_0.3.2 MASS_7.3-56 assertthat_0.2.1 colorspace_2.0-3 utf8_1.2.2
[46] stringi_1.7.6 RCurl_1.98-1.6 munsell_0.5.0 doParallel_1.0.17 crayon_1.5.1
The input data to the function looks like:
Since the error message mentions index 6885, I guess the problematic entry is:
The model does not have a
representative
orclustername
. The corresponding entries in the preproc_df:Interestingly, I can not really explain how this model 6885 was generated.
preproc_df
is based on the output ofimport2Dataset()
namedimport_df
and that contains only one representative having missingclustername
:All other cases are complete: