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
preprocess_cds Error in function 'as_cholmod_sparse' not provided by package 'Matrix' #690
Comments
I have the same issue. I couldn't resolve this problem! If someone fixed this problem, how did you figure out this problem? Please share |
I have the same issue. But I found a solution here https://stackoverflow.com/questions/77442906/runumap-code-error-after-merged-spatial-transcriptomic-objects, mentioning the irlba package issue: bwlewis/irlba#70. So I used the commands below in R:
|
Thank you, After restarting R Studio, I uninstalled the latest version of Matrix and installed a previous version (1.6-1.1), which resolved the issue. |
I had the same issue. Reinstalling "monocle3" package worked for me. |
I've removed the Matrix and installed the version (1.6-1.1). However, several packages, including Seuratobject, reported error ">=1.6-3 is required". I also removed the monocle3 and reinstalled it, and it did not work too. |
Problem solved after reinstalled package "irlba", as I run the traceback and found the error actually happened on the irlba. Seems that the "Matrix" package treats the sparse matrix dependent on several packages, and update these packages may work for dealing with the issue. |
I follow the instruction to install "irlba"(latest version: 2.3.5.1) and "Matrix"(version 1.6-1.1). When I ran the following codes, the same error happened. The following is my session info Matrix products: default locale: time zone: America/New_York attached base packages: other attached packages: loaded via a namespace (and not attached): |
I found the workaround. Restart R studio and following the codes. |
Thank you! However ,I met the gfortran link error when compiling in MACOS sonoma
And I install gfortrain manually from github and set the linker flag to correspond path such as below in
Then compile again to to solve it!
|
Downgrading Matrix to 1.5-1 works for me |
I have tried all the above in the last 6 days and all measures have failed (removing and reinstalling Matrix, irlba, R, R-Studio, and even Monocle 3. I need a solution. Downgrading of package "Matrix" also did not work for me. |
I have the same issue. Additionally, when I downgrade to 'Matrix' 1.5-1, SeuratObject no longer functions properly, requiring Matrix >= 1.6.3. When I downgrade SeuratObject to an older version that supports 'Matrix' 1.5-1, Seurat fails to function properly. I suspect this might be due to the update in Seurat 5. It's like the butterfly effect. |
Can you provide me with an advice how to solve this problem?
I have been using Monocle 3 successfully until last week. When I tried to preprocess the uploaded data the above error message kept coming up. It has not happened before I followed the instruction to update some of the packages necessary for running Monocle3. How can I get the Monocle 3 functional again?
Von: Zhaoyu Guo ***@***.***>
Antworten an: cole-trapnell-lab/monocle3 ***@***.***>
Datum: Sonntag, 31. März 2024 um 06:10
An: cole-trapnell-lab/monocle3 ***@***.***>
Cc: ***@***.***" ***@***.***>, Comment ***@***.***>
Betreff: Re: [cole-trapnell-lab/monocle3] preprocess_cds Error in function 'as_cholmod_sparse' not provided by package 'Matrix' (Issue #690)
I have tried all the above in the last 6 days and all measures have failed (removing and reinstalling Matrix, irlba, R, R-Studio, and even Monocle 3. I need a solution. Downgrading of package "Matrix" also did not work for me.
I have the same issue.
Additionally, when I downgrade to 'Matrix' 1.5-1, SeuratObject no longer functions properly, requiring Matrix >= 1.6.3. When I downgrade SeuratObject to an older version that supports 'Matrix' 1.5-1, Seurat fails to function properly. I suspect this might be due to the update in Seurat 5. It's like the butterfly effect.
—
Reply to this email directly, view it on GitHub<#690 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ARO4SQGOC457O67AJPS4Z73Y26ECHAVCNFSM6AAAAAA7H7JELWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRYGU2DOMJYHE>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Hi, I tried to install the packages and still the error occurs. Any follow-ups? Thank you, |
I have the same issue. I used Macbook with M1 chip currently. When I degrade my Matrix package, it always showed the gfortran problem. how to solve it? |
I have not been able to solve the challenge yet.
Von: Anan2024Huang ***@***.***>
Antworten an: cole-trapnell-lab/monocle3 ***@***.***>
Datum: Sonntag, 7. April 2024 um 03:15
An: cole-trapnell-lab/monocle3 ***@***.***>
Cc: ***@***.***" ***@***.***>, Comment ***@***.***>
Betreff: Re: [cole-trapnell-lab/monocle3] preprocess_cds Error in function 'as_cholmod_sparse' not provided by package 'Matrix' (Issue #690)
I have the same issue. I used Macbook with M1 chip currently. When I degrade my Matrix package, it always showed the gfortran problem. how to solve it?
—
Reply to this email directly, view it on GitHub<#690 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ARO4SQHIBACDA73OGRSQZZDY4CM3XAVCNFSM6AAAAAA7H7JELWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGI3DCNJYHA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Try add the following information in .R/Makevars.
|
Does anyone post the tutorial for the Mac. How to set up the gfortran when installing Matrix.
发送自 Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
发件人: Zhaoyu Guo ***@***.***>
发送时间: Sunday, April 7, 2024 1:55:51 PM
收件人: cole-trapnell-lab/monocle3 ***@***.***>
抄送: Anan2024Huang ***@***.***>; Comment ***@***.***>
主题: Re: [cole-trapnell-lab/monocle3] preprocess_cds Error in function 'as_cholmod_sparse' not provided by package 'Matrix' (Issue #690)
I have not been able to solve the challenge yet. Von: Anan2024Huang @.> Antworten an: cole-trapnell-lab/monocle3 @.> Datum: Sonntag, 7. April 2024 um 03:15 An: cole-trapnell-lab/monocle3 @.> Cc: @." @.>, Comment @.> Betreff: Re: [cole-trapnell-lab/monocle3] preprocess_cds Error in function 'as_cholmod_sparse' not provided by package 'Matrix' (Issue #690<#690>) I have the same issue. I used Macbook with M1 chip currently. When I degrade my Matrix package, it always showed the gfortran problem. how to solve it? ― Reply to this email directly, view it on GitHub<#690 (comment)<#690 (comment)>>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARO4SQHIBACDA73OGRSQZZDY4CM3XAVCNFSM6AAAAAA7H7JELWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGI3DCNJYHA. You are receiving this because you commented.Message ID: @.***>
Try add the following information in .R/Makevars.
(.R is a hidden folder, if there is no Makevars inside, you need to create one.)
FC = /opt/homebrew/bin/gfortran
F77 = /opt/homebrew/bin/gfortran
FLIBS = -L/opt/homebrew/Cellar/gcc/13.2.0/lib/gcc/13 -lgfortran -lquadmath -lm
―
Reply to this email directly, view it on GitHub<#690 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BHGD3KJZVYKF7742EFVWTUTY4DNWPAVCNFSM6AAAAAA7H7JELWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGMZDKNBUGE>.
You are receiving this because you commented.Message ID: ***@***.***>
|
Same problem here, using Mac with M1 chip. Looking forward to a solution! |
I also use Mac with M1 chip. I tried everything mentioned above and faced with similar problem. For those of you who using the Seurat V5, I would suggest to degrade the Matrix version to 1.6.3, which works for me now.
|
Hi, I tried all the suggested methods above and still no luck. Any further update? Thank you! |
I am also experiencing the same issue. I cannot use the older version of Matrix because as others have said, I then run into issues with Seurat. |
I also think you guys probably need to consider the Rstudio version. I faced with installing the old version of Matrix in the Rstudio, which I ended up installing it in R console. Then it works very well. |
Converting back to the R version 4.3.2. (2023-10-31) – “Eye Holes” seems to have worked for me. The “Matrix” file has remained 1.6-5
Von: Xin Wang ***@***.***>
Antworten an: cole-trapnell-lab/monocle3 ***@***.***>
Datum: Mittwoch, 1. Mai 2024 um 22:46
An: cole-trapnell-lab/monocle3 ***@***.***>
Cc: ***@***.***" ***@***.***>, Comment ***@***.***>
Betreff: Re: [cole-trapnell-lab/monocle3] preprocess_cds Error in function 'as_cholmod_sparse' not provided by package 'Matrix' (Issue #690)
I also think you guys probably need to consider the Rstudio version. I faced with installing the old version of Matrix in the Rstudio, which I ended up installing it in R console. Then it works very well.
—
Reply to this email directly, view it on GitHub<#690 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ARO4SQB6XAA4VUPA3DBRVQTZAFICHAVCNFSM6AAAAAA7H7JELWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBZGEYTIMRXGA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I encountered the same situation, and upgrading/downgrading versions of matrix, irlba, or monocle3 didn't help. However, I eventually found a solution. As an rstudio-server user, even though installation was successful under a regular user, it seems that both old and new versions of the package were present, with the old version of Matrix being called first. By deleting all versions of the Matrix package under root and then reinstalling the latest version, I was able to resolve it. I hope my experience can help others. |
Describe the bug
Error in (function (A, nv = 5, nu = nv, maxit = 1000, work = nv + 7, reorth = TRUE, :
function 'as_cholmod_sparse' not provided by package 'Matrix'
To Reproduce
cds<-preprocess_cds(cds, num_dim = 30,norm_method = "none")
traceback()
4: (function (A, nv = 5, nu = nv, maxit = 1000, work = nv + 7, reorth = TRUE,
tol = 1e-05, v = NULL, right_only = FALSE, verbose = FALSE,
scale = NULL, center = NULL, shift = NULL, mult = NULL, fastpath = TRUE,
svtol = tol, smallest = FALSE, ...)
{
ropts <- options(warn = 1)
mflag <- new.env()
mflag$flag <- FALSE
on.exit(options(ropts))
interchange <- FALSE
eps <- .Machine$double.eps
mcall <- as.list(match.call())
random <- eval(mcall[["rng"]])
if (is.null(random))
random <- rnorm
maxritz <- eval(mcall[["maxritz"]])
if (is.null(maxritz))
maxritz <- 3
eps2 <- eval(mcall[["invariant_subspace_tolerance"]])
if (is.null(eps2))
...
3: do.call(irlba::irlba, args = args)
2: sparse_prcomp_irlba(Matrix::t(FM), n = min(num_dim, min(dim(FM)) -
1), center = scaling, scale. = scaling)
1: preprocess_cds(cds, num_dim = 30, norm_method = "none")
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
sessionInfo():
R version 4.3.1 (2023-06-16 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)
Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Simplified)_China.utf8
[2] LC_CTYPE=Chinese (Simplified)_China.utf8
[3] LC_MONETARY=Chinese (Simplified)_China.utf8
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.utf8
time zone: Asia/Shanghai
tzcode source: internal
attached base packages:
[1] stats4 stats graphics grDevices utils datasets methods base
other attached packages:
[1] Seurat_4.3.0.1 SeuratObject_5.0.0 sp_2.1-1
[4] monocle3_1.3.4 SingleCellExperiment_1.24.0 SummarizedExperiment_1.32.0
[7] GenomicRanges_1.54.1 GenomeInfoDb_1.38.1 IRanges_2.36.0
[10] S4Vectors_0.40.1 MatrixGenerics_1.14.0 matrixStats_1.1.0
[13] Biobase_2.62.0 BiocGenerics_0.48.1
loaded via a namespace (and not attached):
[1] RcppAnnoy_0.0.21 splines_4.3.1 later_1.3.0
[4] bitops_1.0-7 tibble_3.2.1 polyclip_1.10-4
[7] lifecycle_1.0.4 globals_0.16.2 processx_3.8.2
[10] lattice_0.21-8 MASS_7.3-60 magrittr_2.0.3
[13] plotly_4.10.2 remotes_2.4.2.1 httpuv_1.6.9
[16] sctransform_0.3.5 spam_2.9-1 sessioninfo_1.2.2
[19] pkgbuild_1.4.2 spatstat.sparse_3.0-2 reticulate_1.30
[22] cowplot_1.1.1 pbapply_1.7-2 DBI_1.1.3
[25] minqa_1.2.6 RColorBrewer_1.1-3 abind_1.4-5
[28] pkgload_1.3.3 zlibbioc_1.48.0 Rtsne_0.16
[31] purrr_1.0.1 RCurl_1.98-1.13 GenomeInfoDbData_1.2.11
[34] ggrepel_0.9.3 irlba_2.3.5.1 listenv_0.9.0
[37] spatstat.utils_3.0-3 terra_1.7-55 pheatmap_1.0.12
[40] goftest_1.2-3 spatstat.random_3.1-5 fitdistrplus_1.1-11
[43] parallelly_1.36.0 DelayedMatrixStats_1.24.0 leiden_0.4.3
[46] codetools_0.2-19 DelayedArray_0.28.0 tidyselect_1.2.0
[49] lme4_1.1-35.1 spatstat.explore_3.2-1 jsonlite_1.8.7
[52] ellipsis_0.3.2 progressr_0.14.0 ggridges_0.5.4
[55] survival_3.5-5 tools_4.3.1 ica_1.0-3
[58] Rcpp_1.0.10 glue_1.6.2 gridExtra_2.3
[61] SparseArray_1.2.2 usethis_2.2.2 dplyr_1.1.3
[64] fastmap_1.1.1 boot_1.3-28.1 fansi_1.0.5
[67] callr_3.7.3 digest_0.6.31 R6_2.5.1
[70] mime_0.12 colorspace_2.1-0 scattermore_1.2
[73] tensor_1.5 spatstat.data_3.0-1 RSQLite_2.3.1
[76] utf8_1.2.4 tidyr_1.3.0 generics_0.1.3
[79] data.table_1.14.8 prettyunits_1.2.0 httr_1.4.7
[82] htmlwidgets_1.6.2 S4Arrays_1.2.0 uwot_0.1.16
[85] pkgconfig_2.0.3 gtable_0.3.4 blob_1.2.4
[88] lmtest_0.9-40 XVector_0.42.0 htmltools_0.5.5
[91] profvis_0.3.8 dotCall64_1.0-2 scales_1.2.1
[94] png_0.1-8 rstudioapi_0.15.0 reshape2_1.4.4
[97] nlme_3.1-162 nloptr_2.0.3 cachem_1.0.7
[100] zoo_1.8-12 stringr_1.5.0 KernSmooth_2.23-22
[103] parallel_4.3.1 miniUI_0.1.1.1 AnnotationDbi_1.62.2
[106] pillar_1.9.0 grid_4.3.1 vctrs_0.6.1
[109] RANN_2.6.1 urlchecker_1.0.1 promises_1.2.0.1
[112] xtable_1.8-4 cluster_2.1.4 cli_3.4.0
[115] compiler_4.3.1 rlang_1.1.2 crayon_1.5.2
[118] future.apply_1.11.0 ps_1.7.5 plyr_1.8.9
[121] fs_1.6.3 stringi_1.7.12 deldir_1.0-9
[124] viridisLite_0.4.2 assertthat_0.2.1 munsell_0.5.0
[127] Biostrings_2.68.1 lazyeval_0.2.2 spatstat.geom_3.2-4
[130] devtools_2.4.5 Matrix_1.6-2 patchwork_1.1.2
[133] sparseMatrixStats_1.14.0 bit64_4.0.5 future_1.33.0
[136] ggplot2_3.4.4 KEGGREST_1.40.0 shiny_1.7.5.1
[139] ROCR_1.0-11 igraph_1.5.1 memoise_2.0.1
[142] bit_4.0.5
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: