-
Notifications
You must be signed in to change notification settings - Fork 22
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
computeSumFactors converts some sparse matrices to dense #70
Comments
Probably it's hitting beachmat code in C++, which doesn't know anything about There are no plans to provide native support for |
You may have never seen it but it's the reason why my jobs are failing, hence this issue report :) Seems like a fairly trivial fix to include a
rather than silently coerce the matrix to dense, hope the user notices and fixes it themself. |
It's not like the entire matrix is being coerced to dense form. It's bounded by a 100 MB limit, as defined by |
In this toy example, the dgTMatrix also takes ~100x longer than the dgCMatrix. Seems like a good reason to me. |
One could say that about many matrix formats. For example, I could store a sparse matrix in a In the specific case of the Given that you're talking about toy examples, the easiest solution would just be to convert your matrix to the desired format. scran won't do any conversion, that is not its decision to make. For real analyses, all ingestion pipelines that I use will produce a |
Some formats of sparse matrix are causing massive allocation of memory. dgCMatrix works perfectly, using only a total of 2MB:
while dgTMatrix allocates a whopping 65MB for the same operation
and the same issue for dgRMatrix, allocating ~40MB.
Session info:
The text was updated successfully, but these errors were encountered: