-
Notifications
You must be signed in to change notification settings - Fork 19
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
Tips for larger matrices? #11
Comments
Hi Pedro, thanks for your interest in ALRA. The ALRA function produces multiple copies of the matrix, which can be problematic when you have limited memory. The reason the matrices are duplicated in the memory is because we originally thought people will want to access the imputed matrix before scaling and thresholding. This does not seem to be the case...we are pretty much only interested in the final matrix. Please see this branch, I added a function called alra.low.memory(). That should reduce the memory footprint. Can you try that function? See here. If you still are having trouble, can you tell me at which step you actually get the error? Also, how much memory is on your laptop? Are any of these steps helpful? |
Hi George, thanks for the quick feedback! If I get it right, the change in While going through My solution for the moment was to run Btw, my laptop has 16GB mem and I have not tried to change R_MAX_VSIZE in .Renviron yet. |
Hi @linqiaozhi, I've recently come across this issue also having hit the memory limits due to the large number of cells we are analysing. Thanks |
I am working with a matrix that has 53201 cells and 20245 genes.
Its size in memory is only 482 MB as a dgCMatrix but 8.62 GB as.matrix().
When I try RunALRA from Seurat, I get:
Same if I try to run with
alra(A_norm = as.matrix(normRNA), use.mkl = FALSE)
anduse.mkl = TRUE
(only that if TRUE it takes a lot longer to show the error).Do you have any suggestions for how to run on large matrices on a laptop?
The text was updated successfully, but these errors were encountered: