-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sparse_Marginsum Error Running IterativeLSI #2059
Comments
Hi @S-Rajhans! Thanks for using ArchR! Please make sure that your post belongs in the Issues section. Only bugs and error reports belong in the Issues section. Usage questions and feature requests should be posted in the Discussions section, not in Issues. |
I have the same issue when running peakAnnoEnrichment(). It seems to have an underlying issue since my pipeline worked until a couple of weeks ago but now dies. This is my sessionInfo() R version 4.3.0 (2023-04-21) Matrix products: default Random number generation: locale: time zone: America/New_York attached base packages: other attached packages: loaded via a namespace (and not attached): |
@lichtenj I know that recent updates to Matrix have been causing problems across its dependencies (Seurat, Monocle, irlba) but it seems even the old 1.6.1 versions we're using are causing similar errors. |
Matrix 1.6-1 works for me, but I found that Seurat 5 is depend on Matrix 1.6-3. Maybe your problem is caused by Seurat update? I used callr to call a seperated R session with old version Seurat Matrix installed libpath, it worked well. |
Thanks, I tried to force the versions of Seurat (4.4.0), SeuratObject (4.1.4) and Matrix (1.6.1.1) to previous states but I am still running into the same error. Any chance you could post the latest sessionInfo() that worked for you? |
Here is my sessionInfo(), hope it helps: R version 4.3.2 (2023-10-31)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.3 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.20.so; LAPACK version 3.10.0
Random number generation:
RNG: L'Ecuyer-CMRG
Normal: Inversion
Sample: Rejection
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
time zone: Etc/UTC
tzcode source: system (glibc)
attached base packages:
[1] parallel stats4 grid stats graphics grDevices utils datasets methods base
other attached packages:
[1] uwot_0.1.16 nabor_0.5.0 rhdf5_2.46.0 SummarizedExperiment_1.32.0
[5] Biobase_2.62.0 MatrixGenerics_1.14.0 Rcpp_1.0.11 GenomicRanges_1.54.1
[9] GenomeInfoDb_1.38.1 IRanges_2.36.0 S4Vectors_0.40.1 BiocGenerics_0.48.1
[13] matrixStats_1.1.0 data.table_1.14.8 stringr_1.5.1 plyr_1.8.9
[17] magrittr_2.0.3 gtable_0.3.4 gtools_3.9.5 gridExtra_2.3
[21] ArchR_1.0.2 Matrix_1.6-1 ggplot2_3.4.4 SeuratObject_4.1.4
[25] Seurat_4.4.0
loaded via a namespace (and not attached):
[1] RColorBrewer_1.1-3 rstudioapi_0.15.0 jsonlite_1.8.7 spatstat.utils_3.0-4 farver_2.1.1
[6] BiocIO_1.12.0 zlibbioc_1.48.0 vctrs_0.6.4 ROCR_1.0-11 Rsamtools_2.18.0
[11] Cairo_1.6-1 spatstat.explore_3.2-5 RCurl_1.98-1.13 S4Arrays_1.2.0 htmltools_0.5.7
[16] Rhdf5lib_1.24.0 SparseArray_1.2.2 sctransform_0.4.1 parallelly_1.36.0 KernSmooth_2.23-22
[21] htmlwidgets_1.6.3 ica_1.0-3 plotly_4.10.3 zoo_1.8-12 GenomicAlignments_1.38.0
[26] igraph_1.5.1 mime_0.12 lifecycle_1.0.4 pkgconfig_2.0.3 R6_2.5.1
[31] fastmap_1.1.1 GenomeInfoDbData_1.2.11 fitdistrplus_1.1-11 future_1.33.0 shiny_1.8.0
[36] digest_0.6.33 colorspace_2.1-0 patchwork_1.1.3 ps_1.7.5 tensor_1.5
[41] irlba_2.3.5.1 labeling_0.4.3 progressr_0.14.0 fansi_1.0.5 spatstat.sparse_3.0-3
[46] httr_1.4.7 polyclip_1.10-6 abind_1.4-5 compiler_4.3.2 withr_2.5.2
[51] BiocParallel_1.36.0 MASS_7.3-60 DelayedArray_0.28.0 rjson_0.2.21 tools_4.3.2
[56] lmtest_0.9-40 httpuv_1.6.12 future.apply_1.11.0 goftest_1.2-3 glue_1.6.2
[61] restfulr_0.0.15 callr_3.7.3 rhdf5filters_1.14.1 nlme_3.1-163 promises_1.2.1
[66] Rtsne_0.16 cluster_2.1.4 reshape2_1.4.4 generics_0.1.3 spatstat.data_3.0-3
[71] tidyr_1.3.0 sp_2.1-1 utf8_1.2.4 XVector_0.42.0 spatstat.geom_3.2-7
[76] RcppAnnoy_0.0.21 ggrepel_0.9.4 RANN_2.6.1 pillar_1.9.0 later_1.3.1
[81] splines_4.3.2 dplyr_1.1.4 lattice_0.22-5 rtracklayer_1.62.0 survival_3.5-7
[86] deldir_1.0-9 tidyselect_1.2.0 Biostrings_2.70.1 miniUI_0.1.1.1 pbapply_1.7-2
[91] scattermore_1.2 stringi_1.8.1 yaml_2.3.7 lazyeval_0.2.2 codetools_0.2-19
[96] tibble_3.2.1 cli_3.6.1 xtable_1.8-4 reticulate_1.34.0 munsell_0.5.0
[101] processx_3.8.2 globals_0.16.2 spatstat.random_3.2-1 png_0.1-8 XML_3.99-0.15
[106] ellipsis_0.3.2 bitops_1.0-7 listenv_0.9.0 viridisLite_0.4.2 scales_1.2.1
[111] ggridges_0.5.4 crayon_1.5.2 leiden_0.4.3.1 purrr_1.0.2 rlang_1.1.2
[116] cowplot_1.1.1 |
I have the same issue when I running IterativeLSI (seurat_4.4.0、seuratobject_4.1.4、archr_1.0.2、matrix_1.6.1.1). Have you resolved it now?Waiting for your message hopefully... |
My R session works well all the time, can you show me your error message and your operation system? |
Hello, having exactly the same error (
|
The problem occurs when executing this line in my case: Line 844 in d9e741c
Basically it looks like yet another problem with the Matrix package since version 1.6-2 (see #2050 for instance), but apparently it also occurs with 1.6-1.1. The error is raised if you try to apply Matrix::rsparsematrix(10, 5, 0.2) |> Matrix::colSums()
SolutionThe real culprit is apparently the package TFBSTools. Run the following:
then restart your R session. More details and explanation here: satijalab/seurat#8202 (comment) but I’m not sure why the problem occurs with Matrix 1.6.1-1 though. |
Yeah! It works to my enviroment. |
Hello, I'm trying to subset a cell population in mouse samples from my existing ArchR project and re-run clustering/dimensional analysis. I'm able to subset and create a new project but am consistently getting this error at the IterativeLSI step. I'm not too sure how to interpret the R_sparse_marginsum readout, so would really appreciate any insight.
I’ve checked the version of the Matrix package as well (1.6.1-1) so I can’t figure out what’s causing this.
ArchR-addIterativeLSI-3334516593484e-Date-2023-11-21_Time-13-14-39.699038.log
The text was updated successfully, but these errors were encountered: