scverse / scverse/squidpy

`var_by_distance` using polygons annotations

Open
#837 0 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.