Skip to main content

SpatialData banner

spatialdata-io: convenient readers for loading common formats into SpatialData

Tests Documentation DOI Documentation Anaconda-Server Badge

We encourage contributions from the community and from developers of spatial technologies: please read our contribution guide for readers and converters and see the “How to Contribute” section below.

This package contains reader functions to load common spatial omics formats into SpatialData. Currently, we provide support for:

  • 10x Genomics Visium®
  • 10x Genomics Visium HD®
  • 10x Genomics Xenium®
  • Akoya PhenoCycler® (formerly CODEX®)
  • Curio Seeker®
  • DBiT-seq
  • MCMICRO (output data)
  • NanoString CosMx®
  • Spatial Genomics GenePS® (seqFISH)
  • Steinbock (output data)
  • STOmics Stereo-seq®
  • Vizgen MERSCOPE® (MERFISH)
  • MACSima® (MACS® iQ View output)

Note: all mentioned technologies are registered trademarks of their respective companies.

Please refer to the list of open Pull Requests for readers that are currently being developed. The list of closed but unmerged PRs may also contain useful code from old drafts of readers. Please get in touch if you would like to contribute and iterate on a PR, or reopen a closed one.

How to Contribute

  1. Open a GitHub Issue: Start by opening a new issue or commenting on an existing one in the repository. Clearly describe the problem and your proposed changes to avoid overlapping efforts with others.

  2. Submit a Pull Request (PR): Once the issue is discussed, submit a PR to the spatialdata-io repository. If you are contributing a new reader, or extending the reader for a new versions of a technologies, please consult our spatialdata-io contribution guide, which describes the steps to ensure that the pull request can be tested on suitable example data and reviewed efficiently.

Known limitations

Contributions for addressing the below limitations are very welcomed.

Getting started

Please refer to the documentation. In particular, the

Installation

You need to have Python 3.12 or newer installed on your system. If you don’t have Python installed, we recommend installing Miniconda.

There are several alternative options to install spatialdata-io:

  1. Install the latest release of spatialdata-io from PyPI:
pip install spatialdata-io
  1. Install the latest development version:
pip install git+https://github.com/scverse/spatialdata-io.git@main

Contact

For questions and help requests, you can reach out in the scverse discourse. If you found a bug, please use the issue tracker.

Readers from third-party libraries

Technologies that can be read into SpatialData objects using third-party libraries:

Disclaimer

This library is community maintained and is not officially endorsed by the aforementioned spatial technology companies. As such, we cannot offer any warranty of the correctness of the representation. Furthermore, we cannot ensure the correctness of the readers for every data version as the technologies evolve and update their formats. If you find a bug or notice a misrepresentation of the data please report it via our Bug Tracking System so that it can be addressed either by the maintainers of this library or by the community.

Solutions to common problems

Problem: I cannot visualize the data, everything is slow

Solution: after parsing the data with spatialdata-io readers, you need to write it to Zarr and read it again. Otherwise the performance advantage given by the SpatialData Zarr format will not available.

from spatialdata_io import xenium
from spatialdata import read_zarr

sdata = xenium("raw_data")
sdata.write("data.zarr")
sdata = read_zarr("sdata.zarr")

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

spatialdata-io 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.

Metadata

Release files for spatialdata-io 0.7.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spatialdata-io 0.7.2
File Size Uploaded Provenance Actions
spatialdata_io-0.7.2.tar.gz 491.8 kB With provenance Details for spatialdata_io-0.7.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for spatialdata-io 0.7.2
File Interpreter ABI Platform Actions
spatialdata_io-0.7.2-py3-none-any.whl Python 3 none any Details for spatialdata_io-0.7.2-py3-none-any.whl

Total release size: 599.0 kB

Release files / spatialdata_io-0.7.2.tar.gz

Download URL spatialdata_io-0.7.2.tar.gz
Size 491.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2297a1e243c59d85fa26acf4352166ce97b4c49ef170a859d0160f86fc4fbc60
BLAKE2b-256 checksum
How to use checksums
74473ce570368e729b452851ffe982a3a46a8b407aa69f833e22ed73b0326ab2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Release files / spatialdata_io-0.7.2-py3-none-any.whl

Download URL spatialdata_io-0.7.2-py3-none-any.whl
Size 107.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c53fa9f38256ed6fbc7bd148312d3f9e626358be0932dd9d91733059a0e9c2c5
BLAKE2b-256 checksum
How to use checksums
145b6f95b799115a4b66c438566c1248d7f67f867ab2e0d2759b04216461d5d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

Security for spatialdata-io 0.7.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for spatialdata_io-0.7.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page