Skip to content

Vibe-coded tooling for visualizing spatialdata objects based on napari-spatialdata

Notifications You must be signed in to change notification settings

MLubetzki/napari-spatial-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

napari-spatial-tools

Vibe-coded tool for visualizing spatial data in Napari. Allows you to quickly zoom and pan on your slides, while visualizing different genes with custom cmap range.

Installation

pip install .

Usage

napari-all-slides /path/to/file1.zarr /path/to/file2.zarr /path/to/file3.zarr

Visualizing genes from the napari console

Once the viewer is open, import the plotting functions in the napari console:

from napari_spatial_tools.console_helper import *

# Then visualize genes:
plot('EPCAM', vmax='p95', sample=0)

# To visualize multiple genes in a grid view:
compare_genes(['EPCAM', 'PTPRC'], sample=0)

# To compare a gene between different samples:
compare_samples('EPCAM', samples=[0,1,2,3])
# I didn't figure out how to disable grid pan locking here, TODO

About

Vibe-coded tooling for visualizing spatialdata objects based on napari-spatialdata

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages