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 In addition: Warning message: In asMethod(object) : sparse->dense coercion: allocating vector of size 14.3 GiB #35

Open
PingXR opened this issue Jul 11, 2024 · 1 comment

Comments

@PingXR
Copy link

PingXR commented Jul 11, 2024

When I set the imputation parameter to F, I can run the following code normally:
countexp.Seurat<-sc.metabolism.Seurat(obj = countexp.Seurat,
method = "AUCell", # VISION, AUCell, ssgsea, and gsva
imputation = F,
ncores = 2,
metabolism.type = "KEGG" # KEGG and REACTOME
)
But when I set imputation to T, an error will be reported.
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 32534 cells and 59056 genes
Error in if (class(A_norm) != "matrix") { : the condition has length > 1
In addition: Warning message:
In asMethod(object) :
sparse->dense coercion: allocating vector of size 14.3 GiB.
Has anyone encountered a similar error and how to solve it? Thank you very much.

@wangyasen615
Copy link

I also meet this problem

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