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

RunMCA() error for large cell numbers #10

Open
qianzhengzong opened this issue Jun 18, 2021 · 3 comments
Open

RunMCA() error for large cell numbers #10

qianzhengzong opened this issue Jun 18, 2021 · 3 comments

Comments

@qianzhengzong
Copy link

hi, I really appreciate your efforts for applying MCA and HGT to Single-Cell Data, but when i use RunMCA() funciton to Seurat object with more than 70000 cells, it come up with error like this:

Error in asMethod(object) :
Cholmod error 'problem too large' at file ../Core/cholmod_dense.c, line 102
Calls: RunMCA ... RunMCA.Seurat -> as.matrix -> as.matrix -> as -> asMethod

Is this an error of CellID or other package CellID based on? Is their a limit of max cell numbers for using CellID?
many thanks!

@qianzhengzong qianzhengzong changed the title RunMCA() error RunMCA() error for large cell numbers Jun 18, 2021
@YukuanHuang
Copy link

YukuanHuang commented Oct 8, 2021

Hi, I have met the same error when I use RunMCA(). I made a few dirty modifications to reimplement the RunMCA() function and avoid using "as.matrix".The reimplemented RunMCA.dgCMatrix() can barely use to my Seurat object with > 500,000 cells, although it takes a lot of time and memory. If you are interested in my implementation, see https://github.com/YukuanHuang/CelliD However, I guess that there is a more elegant way to support for a large number of cells.

@AlexandrePelletier
Copy link

Hi, I have the same issue with ~150k cells, with this error:

Computing Fuzzy Matrix
Error: Mat::init(): requested size is too large; suggest to enable ARMA_64BIT_WORD
In addition: Warning message:
In asMethod(object) :
  sparse->dense coercion: allocating vector of size 35.9 GiB

Is there a way to optimized this function ? (e.g run through dgCMatrix instead of full matrix) ?
I'm not sure what means the suggestion but maybe can help.
Thanks!

@li-xuyang28
Copy link

Following up on this - has anyone manage to use it with ARMA_64BIT_WORD?

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

4 participants