Skip to main content

Converting any SpatialData object into files that can be open by the Xenium Explorer

Project description

SpatialData to Xenium Explorer

PyPI Downloads Docs Build Code Style License Imports: isort

Converting any SpatialData object into files that can be open by the Xenium Explorer.

Xenium Explorer is a registered trademark of 10x Genomics

You may also be interested in a pipeline for spatial-omics that uses this conversion to Xenium Explorer: see Sopa.

Installation

Requirement: python>=3.9

pip install spatialdata_xenium_explorer

Features

  • Conversion of the following data: images, cell boundaries (polygons), transcripts, cell-by-gene table, and cell categories (or observations).
  • Image alignment can be made on the Xenium Explorer, and then the SpatialData object can be updated
  • When working on the SpatialData or AnnData object, 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 SpatialData or AnnData object

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

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_xenium_explorer-0.1.4.tar.gz (18.2 kB view hashes)

Uploaded Source

Built Distribution

spatialdata_xenium_explorer-0.1.4-py3-none-any.whl (22.8 kB view hashes)

Uploaded Python 3

Supported by

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