Skip to content
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

Error in if (class(A_norm) != "matrix") { : the condition has length > 1 此外: Warning message: In asMethod(object) : sparse->dense coercion: allocating vector of size 5.9 GiB #30

Open
Xxian10 opened this issue Apr 15, 2024 · 1 comment

Comments

@Xxian10
Copy link

Xxian10 commented Apr 15, 2024

When I ran scMetabolism to quantify metabolic activity ,I met some problem:
library(Seurat)
library(scMetabolism)
scRNA <- readRDS('object.RDS')
countexp.scRNA <- sc.metabolism.Seurat(obj = scRNA, method = "AUCell", imputation = T, ncores = 2, metabolism.type = "KEGG")
Your choice is: KEGG
Start imputation...
Citation: George C. Linderman, Jun Zhao, Yuval Kluger. Zero-preserving imputation of scRNA-seq data using low-rank approximation. bioRxiv. doi: https://doi.org/10.1101/397588
Read matrix with 31053 cells and 25457 genes
Error in if (class(A_norm) != "matrix") { : the condition has length > 1
此外: Warning message:
In asMethod(object) :
sparse->dense coercion: allocating vector of size 5.9 GiB
Is there anyone encounter the same error, and how to solve it? thank you?

@PingXR
Copy link

PingXR commented Jul 11, 2024

Have you solved this error? I also encountered this error. thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants