-
Notifications
You must be signed in to change notification settings - Fork 88
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
Solution for errors related to as_cholmod_sparse
or CRsparse_rowSums
#1596
Comments
as_cholmod_sparse
or CRsparse_rowSums
; as_cholmod_sparse
or CRsparse_rowSums
I installed irlba as suggested but still got the error: |
@realmungmung from your other issue you posted: after installation in R, it also showed in the R console:
1: In install.packages("SeuratObject", type = "source") :
installation of package ‘Matrix’ had non-zero exit status
2: In install.packages("SeuratObject", type = "source") :
installation of package ‘SeuratObject’ had non-zero exit status
In install.packages("irlba", type = "source") :
installation of package ‘irlba’ had non-zero exit status So these packages are not actually installed. You need to successfully install the packages from source. |
Any tips for how to fix this if you are loading R studio in an interactive session on quest. From a conda environment? I can't run the install.packages commands with a conda built environment. |
@bhanco Have you downloaded R-base in your conda environment? If so you should be able to use install.packages after you start your R environment by entering R in your command line. |
@JHCCoder Wow it wouldn't work when I ran in rstudio but when I ran it from command line it fixed and now I can run through in rstudio. Thanks so much! |
Hi, I've been having issues with this as well, specifically runChromVar and have tried the solutions already presented. Everything else runs fine and the issue also persists when following the motif tutorial on Signac using the PBMCs. I get the
Checking colSums like this works, I dont recieve a error but once I runChromVar I see the error again. Found here: satijalab/seurat#8202 (comment)
R version is 4.3.3 Any help will be great, or a alternative methd to visualise motif accessibility would work as well. Thanks |
@JamesGallant Try updating Matrix, then re-installing TFBSTools from source using the command above, then restart R |
@timoast Thanks your suggestion helped me to get it working. I realised that TBFSTtools was not installing properly and needed to run Rstudio in administrator mode on windows. P.S. for others: This worked for me for version 4.3.3 but not in the latest R version and matrix version. Installing TBFSTtools in version 4.4 of R with matrix at 1.7 will cause errors. R version 4.3.3 and matrix version 1.6.5 works. |
Following a recent update to the Matrix package, several users have reported errors related to functions that use methods from the Matrix package. These will typically result in error messages like:
'as_cholmod_sparse' not provided by package 'Matrix'
orobject 'CRsparse_colSums' not found
.Here is a list of relevant issues:
#1559
#1591
#1528
#1530
#1532
#1547
Cause
This is caused by a new version of Matrix removing certain S4 classes. Packages that used certain S4 methods from Matrix (such as irlba, TFBSTools, and Seurat) subsequently encounter errors. This is because the S4 methods are cached when the R package is built, rather than loaded in the R session. The solution is to re-build the impacted packages from source with the updated Matrix package installed. More information can be found here
Solutions
'as_cholmod_sparse' not provided by package 'Matrix'
To resolve this issue re-install the
irlba
package from source:object 'CRsparse_colSums' not found
To resolve this issue re-install the TFBSTools package as described in this Seurat issue: satijalab/seurat#8202
The text was updated successfully, but these errors were encountered: