Skip to main content

SpatialData IO for common techs

Project description

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

Known limitations

Contributions for addressing the below limitations are very welcomed.

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 contribution guide, which describes the steps to ensure that the pull request can be tested on suitable example data and reviewed efficiently.

Getting started

Please refer to the documentation. In particular, the

Installation

You need to have Python 3.8 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spatialdata_io-0.7.0.tar.gz (117.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spatialdata_io-0.7.0-py3-none-any.whl (101.5 kB view details)

Uploaded Python 3

File details

Details for the file spatialdata_io-0.7.0.tar.gz.

File metadata

  • Download URL: spatialdata_io-0.7.0.tar.gz
  • Upload date:
  • Size: 117.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for spatialdata_io-0.7.0.tar.gz
Algorithm Hash digest
SHA256 be07ffdbf8f74aefd17d14a7e50fff08f2aa42f709d1f628da6b619b786d04b6
MD5 967ad86729c6e61cb15168241cb7e1e7
BLAKE2b-256 55a228fcdf3c4812d9354c806ae7786f50b26389ba1aaf03ce8e26aeef7a844d

See more details on using hashes here.

File details

Details for the file spatialdata_io-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: spatialdata_io-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 101.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for spatialdata_io-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eb693b523f9d3eb532f03bb1f5d9481c092e8a02bd9183d3d783229462d0ac2e
MD5 07044a6e5e35ebc2cd293eb056877f49
BLAKE2b-256 9de1b031a7776bbbd40a94e8a628a6e74294c7a0fc6b66d6ad96152e9e521f71

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page