Skip to content
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

var_by_distance using polygons annotations #837

Open
giovp opened this issue Jun 11, 2024 · 0 comments
Open

var_by_distance using polygons annotations #837

giovp opened this issue Jun 11, 2024 · 0 comments
Assignees
Labels
enhancement ✨ New feature or request graph 🕸️

Comments

@giovp
Copy link
Member

giovp commented Jun 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request graph 🕸️
Projects
None yet
Development

No branches or pull requests

2 participants