-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Error in irlba(A = t(x = object), nv = n, work = irlba.work, tol = tol) : function 'as_cholmod_sparse' not provided by package 'Matrix' #1559
Comments
I think this is related to some issues with the latest SeuratObject and Matrix release, please see the comment here satijalab/seurat#8089 (comment) and check if that would solve this problem You can also try installing the latest Matrix release and then re-installing SeuratObject |
Thank you so much for your quick and kindfull replay. I can share my seurat object if necessary.
Best regard. |
Can you try reinstalling SeuratObject (not Seurat)? |
Thank you, the problem was solved. I reinstalled SeuratObject as well, but is was not the culprit. However, I am encountering another problem of LinkPeak(), which I should consult in another thread. |
@timoast and @yosuke1012 I have this same exact issue popping up and I am at my wits' end. I have tried all different variations based on the variety of threads that report this issue and I have had no luck. I have even painfully uninstalled and reinstalled various older versions (particularly Matrix 1.6-1) each of the following packages in a variety of combinations with no luck: Seurat, Signac, Matrix, irlba, and SeuratObject. I have also installed irlba and Matrix both from source like above and it still is not working. This is the error I get when running RunSVD:
Full output is attached in the following text file: Session Info is below (I am working in a high performance computing cluster environment):
Any help you can provide me with would be very much appreciated! |
Comparing with your code and my code, I am not sure those two are necessary to run the function, but it would be worth to try it. Some thread implies those dependency will be corrected after reinstalling Seurat or Signac on the bare (Neither Matrix nor irlba) environment. I had struggled as well uninstalling and installing some packages, that made it difficult to catch those dependency. Here is my suggestion: reinstall them as source file
We don't need to downgrade all those packages.
Matrix products: default locale: time zone: Asia/Tokyo attached base packages: other attached packages: loaded via a namespace (and not attached): I hope all goes well for you. |
Thank you - I really appreciate the reply. I tried again to remove and install Matrix and irlba from source as you suggested and I loaded Matrix and Matrix.utils. I am not sure what did it, but everything seems to be working now. Thanks again! |
Hello.
I have been encountering a difficulty at RunSVD() with an error;
Error in irlba(A = t(x = object), nv = n, work = irlba.work, tol = tol) :
function 'as_cholmod_sparse' not provided by package 'Matrix'
I searched for a solution including (#1530) https://github.com//issues/1535 tried them, but they all did not work.
Actually, I reinstalled "Matrix" ver 1.6.1 to meet dependency, but it conflict SeuratObject that requires >=1.6.
Of course latest versions of each packages did not work, showing the error message.
I am sure I passed the difficulty of compilation of "Matrix" package.
Could you please tell me how to solve this?
`> multiome_subset_list <- lapply(multiome_subset_list, function(obj){
Performing TF-IDF normalization
Running SVD
Error in irlba(A = t(x = object), nv = n, work = irlba.work, tol = tol) :
function 'as_cholmod_sparse' not provided by package 'Matrix'`
`> sessionInfo()
R version 4.3.1 (2023-06-16)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.2
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.3-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: Asia/Tokyo
tzcode source: internal
attached base packages:
[1] grDevices datasets graphics stats4 stats utils methods base
other attached packages:
[1] BSgenome.Hsapiens.UCSC.hg38_1.4.5 BSgenome_1.70.1
[3] rtracklayer_1.62.0 BiocIO_1.12.0
[5] Biostrings_2.70.1 XVector_0.42.0
[7] EnsDb.Hsapiens.v86_2.99.0 ensembldb_2.26.0
[9] AnnotationFilter_1.26.0 GenomicFeatures_1.54.1
[11] AnnotationDbi_1.64.1 Signac_1.12.0
[13] scCustomize_2.0.1 png_0.1-8
[15] SingleCellExperiment_1.24.0 apeglm_1.24.0
[17] DESeq2_1.42.0 SummarizedExperiment_1.32.0
[19] Biobase_2.62.0 MatrixGenerics_1.14.0
[21] matrixStats_1.2.0 GenomicRanges_1.54.1
[23] GenomeInfoDb_1.38.1 IRanges_2.36.0
[25] S4Vectors_0.40.2 BiocGenerics_0.48.1
[27] edgeR_4.0.3 limma_3.58.1
[29] cowplot_1.1.2 data.table_1.14.10
[31] RColorBrewer_1.1-3 pheatmap_1.0.12
[33] ggthemes_5.0.0 ggsci_3.0.0
[35] ggpubr_0.6.0 reshape2_1.4.4
[37] Matrix.utils_0.9.7 Matrix_1.6-4
[39] ggrepel_0.9.4 viridis_0.6.4
[41] viridisLite_0.4.2 readxl_1.4.3
[43] patchwork_1.1.3 lubridate_1.9.3
[45] forcats_1.0.0 stringr_1.5.1
[47] dplyr_1.1.4 purrr_1.0.2
[49] readr_2.1.4 tidyr_1.3.0
[51] tibble_3.2.1 ggplot2_3.4.4
[53] tidyverse_2.0.0 Seurat_5.0.1
[55] SeuratObject_5.0.1 sp_2.1-2
loaded via a namespace (and not attached):
[1] ProtGenerics_1.34.0 spatstat.sparse_3.0-3 bitops_1.0-7
[4] httr_1.4.7 numDeriv_2016.8-1.1 tools_4.3.1
[7] sctransform_0.4.1 backports_1.4.1 utf8_1.2.4
[10] R6_2.5.1 lazyeval_0.2.2 uwot_0.1.16
[13] withr_2.5.2 prettyunits_1.2.0 gridExtra_2.3
[16] progressr_0.14.0 cli_3.6.2 spatstat.explore_3.2-5
[19] fastDummies_1.7.3 mvtnorm_1.2-4 spatstat.data_3.0-3
[22] ggridges_0.5.5 pbapply_1.7-2 Rsamtools_2.18.0
[25] parallelly_1.36.0 bbmle_1.0.25.1 RSQLite_2.3.4
[28] rstudioapi_0.15.0 generics_0.1.3 shape_1.4.6
[31] ica_1.0-3 spatstat.random_3.2-2 car_3.1-2
[34] ggbeeswarm_0.7.2 fansi_1.0.6 abind_1.4-5
[37] lifecycle_1.0.4 yaml_2.3.8 snakecase_0.11.1
[40] carData_3.0-5 BiocFileCache_2.10.1 SparseArray_1.2.2
[43] Rtsne_0.17 blob_1.2.4 paletteer_1.5.0
[46] grid_4.3.1 promises_1.2.1 crayon_1.5.2
[49] bdsmatrix_1.3-6 miniUI_0.1.1.1 lattice_0.22-5
[52] KEGGREST_1.42.0 pillar_1.9.0 knitr_1.45
[55] rjson_0.2.21 future.apply_1.11.0 codetools_0.2-19
[58] fastmatch_1.1-4 leiden_0.4.3.1 glue_1.6.2
[61] vctrs_0.6.5 spam_2.10-0 cellranger_1.1.0
[64] gtable_0.3.4 rematch2_2.1.2 cachem_1.0.8
[67] emdbook_1.3.13 xfun_0.41 S4Arrays_1.2.0
[70] mime_0.12 coda_0.19-4 survival_3.5-7
[73] RcppRoll_0.3.0 statmod_1.5.0 ellipsis_0.3.2
[76] fitdistrplus_1.1-11 ROCR_1.0-11 nlme_3.1-164
[79] bit64_4.0.5 filelock_1.0.3 progress_1.2.3
[82] RcppAnnoy_0.0.21 irlba_2.3.5.1 vipor_0.4.5
[85] KernSmooth_2.23-22 colorspace_2.1-0 DBI_1.1.3
[88] ggrastr_1.0.2 tidyselect_1.2.0 curl_5.2.0
[91] bit_4.0.5 compiler_4.3.1 xml2_1.3.6
[94] DelayedArray_0.28.0 plotly_4.10.3 scales_1.3.0
[97] lmtest_0.9-40 rappdirs_0.3.3 digest_0.6.33
[100] goftest_1.2-3 spatstat.utils_3.0-4 rmarkdown_2.25
[103] htmltools_0.5.7 pkgconfig_2.0.3 dbplyr_2.4.0
[106] fastmap_1.1.1 rlang_1.1.2 GlobalOptions_0.1.2
[109] htmlwidgets_1.6.4 shiny_1.8.0 zoo_1.8-12
[112] jsonlite_1.8.8 BiocParallel_1.36.0 RCurl_1.98-1.13
[115] magrittr_2.0.3 GenomeInfoDbData_1.2.11 dotCall64_1.1-1
[118] munsell_0.5.0 Rcpp_1.0.11 reticulate_1.34.0
[121] stringi_1.8.3 zlibbioc_1.48.0 MASS_7.3-60
[124] plyr_1.8.9 parallel_4.3.1 listenv_0.9.0
[127] deldir_2.0-2 splines_4.3.1 tensor_1.5
[130] hms_1.1.3 circlize_0.4.16 locfit_1.5-9.8
[133] igraph_1.6.0 spatstat.geom_3.2-7 ggsignif_0.6.4
[136] RcppHNSW_0.5.0 biomaRt_2.58.0 XML_3.99-0.16
[139] evaluate_0.23 ggprism_1.0.4 tzdb_0.4.0
[142] httpuv_1.6.13 grr_0.9.5 RANN_2.6.1
[145] polyclip_1.10-6 future_1.33.0 scattermore_1.2
[148] janitor_2.2.0 broom_1.0.5 xtable_1.8-4
[151] restfulr_0.0.15 RSpectra_0.16-1 rstatix_0.7.2
[154] later_1.3.2 GenomicAlignments_1.38.0 memoise_2.0.1.9000
[157] beeswarm_0.4.0 cluster_2.1.6 timechange_0.2.0
[160] globals_0.16.2 `
Best regard.
The text was updated successfully, but these errors were encountered: