-
Notifications
You must be signed in to change notification settings - Fork 18
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
Simple Operations on matrices: max, min, range etc. #142
Comments
For now I convert them to in memory sparse matrices quick, where I only need a single column of a large matrix for my project, and it is not that slow:
|
Hi @Artur-man, we have some operations along these lines which implement a subset of the widely-used A slightly hacky but more efficient way to define your operations would be Conversion to dgCMatrix is not ideal, because converting to it causes crashes for matrices with more than 2^31 non-zero entries, which starts to become an issue around 1M cell matrices for RNA-seq datasets with 2k genes detected per cell. The suggestions I give above won't have those issue as the We're happy to take PRs for more of these utility operations, including -Ben |
Just to add on to what Ben had mentioned, BPCells also exposes methods to apply R functions to arrays, to each col/row of an In the case of running max, you could do the following:
|
ah thanks so much guys trying it now!!! |
Hi,
Would it makes sense to define some easy operations on
IterableMatrix
,MatrixSubset
etc. ? and do you guys believe that there is an easy alternative I can use until these are (if planned) implemented ?The text was updated successfully, but these errors were encountered: