![SpatialData banner](https://github.com/scverse/spatialdata/blob/main/docs/_static/img/spatialdata_horizontal.svg?raw=true) # SpatialData: an open and universal framework for processing spatial omics data. [![Tests][badge-tests]][link-tests] [![codecov](https://codecov.io/gh/scverse/spatialdata/branch/main/graph/badge.svg?token=X19DRSIMCU)](https://codecov.io/gh/scverse/spatialdata) [![documentation badge](https://readthedocs.org/projects/scverse-spatialdata/badge/?version=latest)](https://spatialdata.scverse.org/en/latest/) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.20056407.svg)](https://doi.org/10.5281/zenodo.20056407) [![Downloads](https://static.pepy.tech/badge/spatialdata)](https://pepy.tech/project/spatialdata) [![Release](https://github.com/scverse/spatialdata/actions/workflows/release.yaml/badge.svg?event=release)](https://github.com/scverse/spatialdata/actions/workflows/release.yaml) [![Documentation][badge-pypi]][link-pypi] [![Anaconda-Server Badge](https://anaconda.org/conda-forge/spatialdata/badges/version.svg)](https://anaconda.org/conda-forge/spatialdata) [badge-pypi]: https://badge.fury.io/py/spatialdata.svg [link-pypi]: https://pypi.org/project/spatialdata/ SpatialData is a data framework, a schema and a serialization format for uni- and multi-modal spatial omics datasets. It is supported by a growing suite of software libraries for performant access, manipulation and analysis in multiple languages, including Python, R and JavaScript. This repository contains the core spatialdata library. See the links below to learn more about other packages in the SpatialData ecosystem. - [spatialdata-io](https://github.com/scverse/spatialdata-io): load data from common spatial omics technologies into spatialdata. - [spatialdata-plot](https://github.com/scverse/spatialdata-plot): Static plotting library for spatialdata. - [napari-spatialdata](https://github.com/scverse/napari-spatialdata): napari plugin for interactive exploration and annotation of spatial data. - [SpatialData (R)](https://github.com/HelenaLC/SpatialData): R implementation of the SpatialData framework. - [SpatialData.js](https://github.com/Taylor-CCB-Group/SpatialData.js): JavaScript/TypeScript implementation of the SpatialData framework. [//]: # "numfocus-fiscal-sponsor-attribution" spatialdata 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/). If you like scverse® and want to support our mission, 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. The spatialdata project also received support by the Chan Zuckerberg Initiative. SpatialData is an approved de.NBI service, your feedback helps us improve it. We would appreciate it if you could take a moment to complete [our short user survey][denbi-survey] (2 minutes).
    

![SpatialDataOverview](https://github.com/scverse/spatialdata/assets/1120672/cb91071f-12a7-4b8e-9430-2b3a0f65e52f) - The SpatialData data model and storage format are defined by the [SpatialData specifications](https://spatialdata-spec.scverse.org/); the storage format is built on top of the [OME-NGFF](https://ngff.openmicroscopy.org/latest/) specification. ## Getting started Please refer to the [documentation][link-docs]. In particular: - [API documentation][link-api]. - [Design doc][link-design-doc] (historical; superseded by the [SpatialData specifications](https://spatialdata-spec.scverse.org/)). - [Example notebooks][link-notebooks]. Another useful resource to get started is the source code of the [`spatialdata-io`](https://github.com/scverse/spatialdata-io) package, which shows example of how to read data from common technologies. ## Installation Check out the docs for more complete [installation instructions](https://spatialdata.scverse.org/en/stable/installation.html). To get started with the “batteries included” installation, you can install via pip: ```bash pip install "spatialdata[extra]" ``` ~~or via conda:~~ Update Feb 2025: `spatialdata` cannot be currently be installed via `conda` because some dependencies of our dependencies are not updated in `conda-forge` and we are still waiting for an update. Please install from `pip`; the latest versions of the `spatialdata` libraries are always available via `PyPI`. ```bash mamba install -c conda-forge spatialdata napari-spatialdata spatialdata-io spatialdata-plot ``` ## Contact To get involved in the discussion, or if you need help to get started, you are welcome to use the following options. - Chat via [`scverse` Zulip](https://scverse.zulipchat.com/#narrow/stream/315824-spatial) (public or 1 to 1). - Forum post in the [scverse discourse forum](https://discourse.scverse.org/). - Bug report/feature request via the [GitHub issue tracker][issue-tracker]. - Zoom call as part of the SpatialData Community Meetings, held every 2 weeks on Thursday, [schedule here](https://scverse.zulipchat.com/#narrow/channel/315824-spatial/topic/spatialdata.20meetings/near/540899686) **<--- new link!**. Finally, especially relevant for for developers that are building a library upon `spatialdata`, please follow this channel for: - Announcements on new features and important changes [Zulip](https://imagesc.zulipchat.com/#narrow/stream/329057-scverse/topic/spatialdata.20announcements). ## 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 [scverse-discourse]: https://discourse.scverse.org/ [issue-tracker]: https://github.com/scverse/spatialdata/issues [design doc]: https://scverse-spatialdata.readthedocs.io/en/stable/design_doc.html [link-docs]: https://spatialdata.scverse.org/en/stable/ [link-api]: https://spatialdata.scverse.org/en/stable/api.html [link-design-doc]: https://spatialdata.scverse.org/en/stable/design_doc.html [link-notebooks]: https://spatialdata.scverse.org/en/stable/tutorials/notebooks/notebooks.html [badge-tests]: https://github.com/scverse/spatialdata/actions/workflows/test.yaml/badge.svg [link-tests]: https://github.com/scverse/spatialdata/actions/workflows/test.yaml [denbi-survey]: https://www.surveymonkey.de/r/denbi-service?sc=hd-hub&tool=spatialdata