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: Cholmod error 'problem too large']: when integrating multiple matrix using snapRbind function #244

Open
murphchuyi opened this issue Mar 16, 2022 · 1 comment

Comments

@murphchuyi
Copy link

murphchuyi commented Mar 16, 2022

Hi,
when I used SnapATAC(v1.0.0) to perform upstream analysis on 2 samples of mine, everything worked fine, and I got a binarized matrix of 19365 * 605083 with bin.size = 5kb. However, when I tried to call addBmatToSnap() function on my integrated snap object which, using the same pipeline and arguments, consisted of 28 samples about 250k cells, I had the following error log:

Loading required package: Matrix
Loading required package: rhdf5
Warning message:
no DISPLAY variable so Tk is not available 
Epoch: reading cell-bin count matrix session ...
Error in .rbind2Csp(x, y) : 
  Cholmod error 'problem too large' at file ../Core/cholmod_sparse.c, line 89
Calls: addBmatToSnap ... rbind -> rbind2 -> rbind2 -> rbind2sparse -> .rbind2Csp
Execution halted

I guessed it's the memory problem, so I set the RAM to 500gb, but it still didn't work. I also tried to run addBmatToSnap() for each sample separately, and then to run snapRbind() to integrate multiple matrices, but the same error appeared.

As the Matrix::rBind function called by snapRbind is defunct in Matrix since v1.3-3, I edit the snapRbind function like this: Error" 'rBind' is defunct. #234.

Any help would be appreciated!

@murphchuyi
Copy link
Author

I just find the author's fresh commit about snapatac2... emmm, ok, maybe I 'll try it lately.

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

1 participant