A round-trip workflow between the MERSCOPE Visualizer and Python spatial-omics tools, demonstrated on a breast tissue microarray (TMA) dataset.
- Load raw MERSCOPE output into an
AnnDataobject (scanpy) - Subset to cells manually selected in the Visualizer (
selected.csv) - Run BANKSY neighborhood clustering on the subset
- Export cluster labels back to
selected.csvformat for re-loading in the Visualizer
# One-time setup (run from repo root)
uv sync
.venv/bin/python -m ipykernel install --user --name merscope-banksy --display-name "merscope-banksy"Open merscope_banksy_tutorial.ipynb, select the merscope-banksy kernel, and run all cells.