SpatialData to Xenium Explorer
Converting any SpatialData object into files that can be opened by the Xenium Explorer.
Check the documentation to get started quickly.
Xenium Explorer is a registered trademark of 10x Genomics
You may also be interested in a pipeline for spatial-omics that uses this package: see Sopa.
Installation
Requirement: python>=3.9
pip install spatialdata_xenium_explorer
Features
- Conversion of the following data: images, cell boundaries (polygons or spot), transcripts, cell-by-gene table, and cell categories (or observations).
- Image alignment can be made on the Xenium Explorer, and then the
SpatialDataobject can be updated - When working on the
SpatialDataorAnnDataobject, new cell categories can be easily and quickly added to the Explorer - When selecting cells with the "lasso tool" on the Explorer, it's easy to select back these cells on the
SpatialDataorAnnDataobject
Usage
You can use our CLI or API, see examples below. It will create up to 6 files, among which a file called experiment.xenium. Double-click on this file to open it on the Xenium Explorer (make sure you have the latest version of the software).
CLI
spatialdata_xenium_explorer write /path/to/sdata.zarr
Check our documentation for more details.
API
import spatialdata
import spatialdata_xenium_explorer
sdata = spatialdata.read_zarr("...")
spatialdata_xenium_explorer.write("/path/to/directory", sdata, image_key, shapes_key, points_key, gene_column)
Check our documentation for more details.
Contributing
This package is still in early development. Contributions are welcome (new issues, pull requests, ...).
Cite us
This library has been detailed in a more general article spatial omics analysis, see the Sopa library. The latter article is not published yet, but you can cite our preprint:
@article {Blampey2023.12.22.571863,
author = {Quentin Blampey & Kevin Mulder et al.},
title = {Sopa: a technology-invariant pipeline for analyses of image-based spatial-omics},
elocation-id = {2023.12.22.571863},
year = {2023},
doi = {10.1101/2023.12.22.571863},
publisher = {Cold Spring Harbor Laboratory},
URL = {https://www.biorxiv.org/content/early/2023/12/23/2023.12.22.571863},
eprint = {https://www.biorxiv.org/content/early/2023/12/23/2023.12.22.571863.full.pdf},
journal = {bioRxiv}
}
Metadata
Release files for spatialdata_xenium_explorer 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spatialdata_xenium_explorer-0.1.7.tar.gz | 19.6 kB | Without provenance | Details for spatialdata_xenium_explorer-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spatialdata_xenium_explorer-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for spatialdata_xenium_explorer-0.1.7-py3-none-any.whl |
Total release size: 43.7 kB
Release files / spatialdata_xenium_explorer-0.1.7.tar.gz
| Download URL | spatialdata_xenium_explorer-0.1.7.tar.gz |
|---|---|
| Size | 19.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d366a152ae5c96b2b4d8997cf14bcc79d915b75af239e01e90ca6b28f1ac5059
|
|
BLAKE2b-256 checksum How to use checksums |
9b06d5be8c047b7123e9bc4e48768bb0bbf6dc62f8be16f4c5932e76c2b7ba23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.10.11 Linux/6.5.0-1018-azure
|
Release files / spatialdata_xenium_explorer-0.1.7-py3-none-any.whl
| Download URL | spatialdata_xenium_explorer-0.1.7-py3-none-any.whl |
|---|---|
| Size | 24.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89fedee76735725de5c1fc4ac7c716973f4b7e59b6725a805f444770f12a2401
|
|
BLAKE2b-256 checksum How to use checksums |
6effcb0f4f0b120672ac6e9c0c4e3df76931cb762c6b069a28812d9506b2afd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.10.11 Linux/6.5.0-1018-azure
|
Security for spatialdata_xenium_explorer 0.1.7
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.