napari spatialdata

Interactive visualization of spatial omics data with napari

  • giovanni palla

SpatialData banner

napari-spatialdata: interactive exploration and annotation of spatial omics data

License PyPI Python Version tests codecov pre-commit.ci status napari hub DOI

This repository contains a napari plugin for interactively exploring and annotating SpatialData objects. Here you can find the [napari-spatialdata documentation] (https://spatialdata.scverse.org/projects/napari/en/stable/notebooks/spatialdata.html). napari-spatialdata is part of the SpatialData ecosystem. To learn more about SpatialData, please see the spatialdata documentation.

Installation

You can install napari-spatialdata via pip:

pip install napari-spatialdata[all]

The all command will install the qt bindings PyQt5.

You can find more details on this in the installation instructions.

Using napari-spatialdata as default zarr reader

If you would like to use the plugin as the default zarr reader, in napari please go to File -> Preferences -> Plugins and follow the instructions under File extension readers.

Development Version

You can install napari-spatialdata from Github with:

pip install git+https://github.com/scverse/napari-spatialdata

Or, you can also install in editable mode after cloning the repo by:

git clone https://github.com/scverse/napari-spatialdata
cd napari-spatialdata
pip install -e .

Note: when performing an editable install of napari-spatialdata, spatialdata will be reinstalled from pip. So, if you previously also made an editable install of spatialdata, you need to re-run pip install -e . on the spatialdata repository. Please find more details on this in the installation instructions.

Getting started

To learn how to use the napari-spatialdata plugin, please see the documentation. To learn how to integrate napari-spatialdata into your analysis workflows, please see the SpatialData tutorials. In particular:

Contributing

Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.

License

Distributed under the terms of the BSD-3 license, "napari-spatialdata" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

Citation

Marconato, L., Palla, G., Yamauchi, K.A. et al. SpatialData: an open and universal data framework for spatial omics. Nat Methods (2024). https://doi.org/10.1038/s41592-024-02212-x

napari-spatialdata is part of the scverse® project (website, governance) and is fiscally sponsored by NumFOCUS. If you like scverse® and want to support our mission, please consider making a tax-deductible donation to help the project pay for developer time, professional services, travel, workshops, and a variety of other needs.

Version:

  • 0.5.6

Last updated:

  • 2025-04-21

First released:

  • 2022-07-06

License:

  • BSD-3-Clause

Supported data:

  • Information not submitted

Plugin type:

Open extension:

Save extension:

Python versions supported:

Operating system:

  • Information not submitted

Requirements:

  • anndata
  • click
  • cycler
  • dask>=2024.4.1
  • geopandas
  • loguru
  • matplotlib
  • napari<0.5.6,>=0.4.19.post1
  • napari-matplotlib
  • numba
  • numpy
  • packaging
  • pandas
  • pillow
  • pyqtgraph
  • qtpy
  • scanpy
  • scipy
  • shapely
  • scikit-learn
  • spatialdata>=0.2.6
  • superqt
  • typing_extensions>=4.8.0
  • vispy
  • xarray
  • xarray-datatree
  • loguru; extra == "test"
  • pytest; extra == "test"
  • pytest-cov; extra == "test"
  • pytest-mock; extra == "test"
  • pytest-qt; extra == "test"
  • pre-commit>=2.9.0; extra == "test"
  • sphinx>=4.5; extra == "doc"
  • sphinx-book-theme>=1.0.0; extra == "doc"
  • myst-parser; extra == "doc"
  • sphinxcontrib-bibtex>=1.0.0; extra == "doc"
  • sphinx-autodoc-typehints>=1.11.0; extra == "doc"
  • sphinx-autobuild; extra == "doc"
  • scanpydoc; extra == "doc"
  • ipykernel; extra == "doc"
  • ipython; extra == "doc"
  • sphinx-copybutton; extra == "doc"
  • sphinx-qt-documentation; extra == "doc"
  • myst-nb; extra == "doc"
  • squidpy; extra == "doc"
  • pydantic<2; extra == "readthedocs"
  • spatialdata>=0.1.0-pre0; extra == "pre"
  • napari[pyqt5]; extra == "all"
Website by the napari team, original design by CZI. Go to napari main website.