anndata_rs is the Python package for the Rust anndata-rs backend.
It provides a backed AnnData API for reading, writing, subsetting, and
streaming AnnData objects without loading every field into memory.
The package follows the AnnData data model:
X: primary observations × variables matrix, dense or sparse.obs/var: observation and variable annotations.obsm/varm: multi-dimensional annotations.obsp/varp: pairwise annotations.layers: alternative matrices with the same shape asX.uns: unstructured metadata.
AnnDatais opened in backed mode by default.- Elements are lazily loaded; arrays are read when requested.
- Subsetting writes/copies data instead of creating AnnData views.
- The current Python package is centered on HDF5/
.h5adworkflows. Use the Rust API directly for the full set of Rust backend features, including object-store Zarr workflows.
The user-facing Python package is in the repository's python/ directory and
is imported as anndata_rs. The pyanndata/ Rust crate contains the internal
PyO3 implementation used by the package.
For details about the AnnData specification, see https://anndata.readthedocs.io/en/latest/.
.. toctree:: :maxdepth: 3 :hidden: install api