Skip to content

Repository files navigation

spatial-rx

Tools for exploring spatial omics data in notebooks — reactive widgets that stay in sync with your Python analysis.

Tool Role Demo
LandmarksWidget Draw selections and landmarks on tissue coordinates; measure from the notebook Open in molab
GalleryWidget Compact card gallery (e.g. analysis recipes / use cases) Open in molab

More widgets and helpers may land here over time.

Install

pip install spatial-rx

From source:

uv sync --extra demo --group dev

LandmarksWidget

Landmarks widget

Draw selections and landmarks on tissue coordinates (lasso, rectangle, ellipse; point, line, spline, shape). Format data as AnnData with obsm["spatial"] and squidpy neighbor graphs, then LandmarksWidget(adata, color=..., genes=...). Persist hits with get_obs_names.

GalleryWidget

Gallery widget

Selectable image cards for recipes or use cases. Synced selection is selected_index.

About

Reactive spatial landmarks for matplotlib and marimo

Resources

Stars

18 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages