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

getMatrixFromProject error: p[length(p)] cannot exceed 2^31-1 #2187

Open
YiweiNiu opened this issue Jul 12, 2024 · 3 comments
Open

getMatrixFromProject error: p[length(p)] cannot exceed 2^31-1 #2187

YiweiNiu opened this issue Jul 12, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@YiweiNiu
Copy link

Hi,

I would like to get the peak x cell matrix using getMatrixFromProject. There are over 200k cells here. I tried to google this and learned that it's related to the memory limit of R. But I wonder if you know a workaround for this, or if all I can do is downsampling?

> proj_PeakMatrix <- getMatrixFromProject(
+   ArchRProj = proj,
+   useMatrix = "PeakMatrix",
+ )
ArchR logging to : ArchRLogs/ArchR-getMatrixFromProject-b5665a55581-Date-2024-07-12_Time-12-11-36.331077.log
If there is an issue, please report to github with logFile!
2024-07-12 12:16:06.346852 : Organizing colData, 4.5 mins elapsed.
2024-07-12 12:16:08.768331 : Organizing rowData, 4.541 mins elapsed.
2024-07-12 12:16:08.837847 : Organizing rowRanges, 4.542 mins elapsed.
2024-07-12 12:16:08.928274 : Organizing Assays (1 of 1), 4.543 mins elapsed.
Error in cbind.Matrix(x, y, deparse.level = 0L) : 
  p[length(p)] cannot exceed 2^31-1
13: (function () 
    traceback(2))() at bind2.R#56
12: cbind.Matrix(x, y, deparse.level = 0L) at bind2.R#65
11: cbind2(argl[[i]], r)
10: cbind2(argl[[i]], r)
9: cbind(deparse.level, ...)
8: f(init, x[[i]])
7: Reduce("cbind", .)
6: lapply(seq_along(seL), function(j) {
       assays(seL[[j]])[[nAssays[i]]]
   }) %>% Reduce("cbind", .)
5: FUN(X[[i]], ...)
4: lapply(seq_along(nAssays), function(i) {
       .logDiffTime(sprintf("Organizing Assays (%s of %s)", i, length(nAssays)), 
           t1 = tstart, verbose = verbose, logFile = logFile)
       m <- lapply(seq_along(seL), function(j) {
           assays(seL[[j]])[[nAssays[i]]]
       }) %>% Reduce("cbind", .)
       m
   }) at SimpleList-class.R#95
3: SimpleList(.)
2: lapply(seq_along(nAssays), function(i) {
       .logDiffTime(sprintf("Organizing Assays (%s of %s)", i, length(nAssays)), 
           t1 = tstart, verbose = verbose, logFile = logFile)
       m <- lapply(seq_along(seL), function(j) {
           assays(seL[[j]])[[nAssays[i]]]
       }) %>% Reduce("cbind", .)
       m
   }) %>% SimpleList()
1: getMatrixFromProject(ArchRProj = proj, useMatrix = "PeakMatrix", 
       )

Thanks in advance!

@YiweiNiu YiweiNiu added the bug Something isn't working label Jul 12, 2024
@rcorces
Copy link
Collaborator

rcorces commented Jul 12, 2024

Hi @YiweiNiu! Thanks for using ArchR! Lately, it has been very challenging for me to keep up with maintenance of this package and all of my other
responsibilities as a PI. I have not been responding to issue posts and I have not been pushing updates to the software. We are actively searching to hire
a computational biologist to continue to develop and maintain ArchR and related tools. If you know someone who might be a good fit, please let us know!
In the meantime, your issue will likely go without a reply. Most issues with ArchR right not relate to compatibility. Try reverting to R 4.1 and Bioconductor 3.15.
Newer versions of Seurat and Matrix also are causing issues. Sorry for not being able to provide active support for this package at this time.

@Rubbert
Copy link

Rubbert commented Dec 20, 2024

Exact same problem here . @YiweiNiu did reverting to R 4.1 and Bioconductor 3.15 work for you?

@YiweiNiu
Copy link
Author

Hi, I switched to R 4.1.2 and the bioconductor version for this R version is 3.14. Now it's working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants