-
Notifications
You must be signed in to change notification settings - Fork 615
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
fast array utils spinoff package #3449
Comments
Two possible ways forward:
|
I think that this is useful for a few places such as scIB. A bit more niche but useful enough if you foresee it to be pretty stable. |
OK, created: https://github.com/scverse/fast-array-utils |
@LucaMarconato, you said that squidpy needs |
The first. For context https://github.com/scverse/napari-spatialdata/blob/bc7bf6186df488726d63efd18d6015f0963fa521/src/napari_spatialdata/utils/_utils.py#L54 we have this function here that we use to convert single columns from |
Candidates found from this zulip message, listed sub-issues, and by searching
.indices
in the scanpy codebasedefinitely:
asarray
(anndata. very handy.)to_dense(cs_matrix)
(scanpy. probably good as implementation detail forasarray
)get_mean_var
(scanpy. one of the most complete, optimized pieces we have)axis_mean
(scanpy. used inget_mean_var
)axis_sum
(scanpy. used inaxis_mean
)is_constant
(scanpy. quite complete and very basic functionality)likely:
elem_mul
(scanpy)axis_mul_or_truediv
(scanpy. should probably be fused withelem_mul
)axis_nnz
(scanpy)scale
(scanpy. is currently singledispatch with support for anndata and arrays)maybe:
gearys_c
/morans_i
(scanpy. maybe out of scope?)top_segment_proportions
(scanpy. maybe a bit niche? We have Gearys C and Morans I As Public API #3291 for it, but maybe metrics should live elsewhere?)calculate_residuals
(scanpy. maybe too niche?)The text was updated successfully, but these errors were encountered: