[](https://github.com/scverse/squidpy/actions/workflows/build.yaml) [](https://github.com/scverse/squidpy/actions/workflows/test.yaml) [](https://codecov.io/gh/scverse/squidpy) [](https://opensource.org/licenses/BSD-3-Clause) [](https://pypi.org/project/squidpy/) [](https://pypi.org/project/squidpy/) [](https://squidpy.readthedocs.io/en/stable) [](https://github.com/pre-commit/pre-commit) # Squidpy - Spatial Single Cell Analysis in Python Squidpy is the scverse toolkit for scalable analysis and visualization of spatial molecular data. It builds on [scanpy](https://scanpy.readthedocs.io/en/stable/) and [anndata](https://anndata.readthedocs.io/en/stable/), providing streamlined APIs for feature extraction, spatial statistics, and interactive exploration of tissue sections together with microscopy images.  ## Documentation Head over to the [documentation](https://squidpy.readthedocs.io/en/stable/) for installation instructions, tutorials, how-to guides, and reference material. ## Installation We recommend running Squidpy on a recent Linux or macOS system with Python ≥3.12, but it also works on Windows via WSL. Install from [PyPI](https://pypi.org/project/squidpy) with: ```console pip install squidpy ``` or from [conda-forge](https://anaconda.org/conda-forge/squidpy): ```console conda install -c conda-forge squidpy ``` ### Interactive visualization For interactive visualization with napari, please use [napari-spatialdata](https://github.com/scverse/napari-spatialdata). The original napari plugin from Squidpy has been deprecated and replaced by napari-spatialdata, which offers improved functionality and support for the SpatialData ecosystem. ## Key capabilities - Build and analyze spatial neighbor graphs directly from Visium, Slide-seq, Xenium, and other spatial omics assays. - Compute spatial statistics for cell types and genes, including neighborhood enrichment, co-occurrence, and Moran's I. - Efficiently store, featurize, and visualize high-resolution tissue microscopy images via [scikit-image](https://scikit-image.org/). - Explore annotated datasets interactively with [napari-spatialdata](https://github.com/scverse/napari-spatialdata). ## Contributing Contributions are welcome! Please read the [contributing guide](CONTRIBUTING.rst) for instructions on setting up your environment, running tests, and submitting pull requests. ## Citation If you use Squidpy in your research, cite the original publication: ```bibtex @article{palla:22, author = {Palla, Giovanni and Spitzer, Hannah and Klein, Michal and Fischer, David and Schaar, Anna Christina and Kuemmerle, Louis Benedikt and Rybakov, Sergei and Ibarra, Ignacio L. and Holmberg, Olle and Virshup, Isaac and Lotfollahi, Mohammad and Richter, Sabrina and Theis, Fabian J.}, title = {Squidpy: a scalable framework for spatial omics analysis}, journal = {Nature Methods}, year = {2022}, month = {Feb}, volume = {19}, number = {2}, pages = {171--178}, issn = {1548-7105}, doi = {10.1038/s41592-021-01358-2}, } ``` -------------------------------------------------------------------------------- Squidpy is part of the scverse® project ([website](https://scverse.org/), [governance](https://scverse.org/about/roles/)) and is fiscally sponsored by [NumFOCUS](https://numfocus.org/). Please consider making a tax-deductible [donation](https://numfocus.org/donate-to-scverse/) to help the project pay for developer time, professional services, travel, workshops, and a variety of other needs.