-
Notifications
You must be signed in to change notification settings - Fork 68
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
Allow assigning to rownames, colnames and dimnames for sparse matrices #1087
Comments
The implementation of sparse matrices in R is only available through packages. What R package do you have in mind? I did play with an extension for rpy2 wrapping the R package Matrix (https://github.com/rpy2/rpy2-Matrix |
Yeah it's the sparse matrices from the Matrix package (e.g. dgCMatrix). They're crucial for single-cell analysis, e.g. in the widely used Seurat package. |
Class definition in the R package The base type in R is that this is an S4 object. This is mapped to the base type Making the discovery of generics and all signatures associated under the multiple dispatch system fully automagic on the Python side, and map it through dynamic class and method generation on the Python side, is relatively complex. However, here it does not seem that |
Currently you need to do
r.dimnames(rmatrix)[0] = ...
to set the rownames andr.dimnames(rmatrix)[1] = ...
to set the colnames.Would be great to support
rmatrix.rownames = ...
,rmatrix.colnames = ...
, andrmatrix.dimnames = ...
for consistency with dense matrices.The text was updated successfully, but these errors were encountered: