`var_by_distance` using polygons annotations
Open
@LLehner is already working on this.
Since Jun 12, 2024.
enhancement :sparkles:
graph :spider_web:
- Dominant language
- Python
- Stars
- 598
- Forks
- 121
- Avg merge
- 3d 11h
- Merged PRs (30d)
- 3
Description
proposed signature
def var_by_distance(
sdata: SpatialData,
groups: str | list[str] | NDArrayA,
cluster_key: str,
library_key: str | None = None, # only anndata
metric: str = "euclidean", # if annotations is not None, this doesn't apply
spatial_key: str = "spatial",
annotations: str | list[str] | None = None, # shapes key
annotation_mask: str | None = None, # negative mask for distances to annotations
coordinate_system: str | None = None, # check which cs wrt annotations
design_matrix_key: str = "design_matrix",
covariates: str | list[str] | None = None,
copy: bool = False,
)
@LLehner
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.