-
Notifications
You must be signed in to change notification settings - Fork 154
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
Add support for sparse
arrays (pydata) to .varp and .obsp fields
#1731
Comments
sparse
arrays (pydata) to .varp and .obsp fields
Ah, you’re talking about https://sparse.pydata.org/en/stable/. We haven’t talked about this much yet, but it’s definitely worth discussing. |
Let me know if I can help since it doesn't seem like too complicated to add and would be worth it for some applications :) If you can point me to some of files to be looking at for updates I can have a look |
@jkobject If I remember, our main stumbling block with this up until now has been the dependency on But we could do this as an optional dep. In this case, we should think more broadly about a registration mechanism for choosing which array type gets returned from |
I would add that last I talked to the authors of pydata/sparse they were looking at a full rewrite. So it might be in a rocky state for a while. |
@ivirshup it loooks like the package has a backend for finch now...could be worth trying out actually...would be huge for array-api compat! |
Please describe your wishes and possible alternatives to achieve the desired result.
scipy.sparse
only supports 2D arrays. Whereasvarp
andobsp
support N-D arrays.Most of the time we would want them to be sparse.
But right now
anndata
prevent thevarp
andobsp
fields to contain the pydata/sparse formats.Not all but many features are available on these matrix formats. Are there missing features that would be required as of now that would prevent this integration?
The text was updated successfully, but these errors were encountered: