anndata: Annotated data

Isaac Virshup, Sergei Rybakov, Fabian J. Theis, Philipp Angerer, F. Alexander Wolf

bioRxiv (Cold Spring Harbor Laboratory) · 2021 · 306 citations · 14 references

DOIFull text

Open access

Concepts

TL;DR

Anndata is a Python package that provides an annotated data matrix structure, filling a gap between pandas and xarray and enabling insight from high‑dimensional data via low‑dimensional representations. It offers efficient sparse data support, lazy operations, a PyTorch interface, and a canonical bookkeeping structure for annotations and representations, facilitating iterative exploratory analysis.

Abstract

Summary anndata is a Python package for handling annotated data matrices in memory and on disk ( github.com/theislab/anndata ), positioned between pandas and xarray. anndata offers a broad range of computationally efficient features including, among others, sparse data support, lazy operations, and a PyTorch interface. Statement of need Generating insight from high-dimensional data matrices typically works through training models that annotate observations and variables via low-dimensional representations. In exploratory data analysis, this involves iterative training and analysis using original and learned annotations and task-associated representations. anndata offers a canonical data structure for book-keeping these, which is neither addressed by pandas (McKinney, 2010), nor xarray (Hoyer & Hamman, 2017), nor commonly-used modeling packages like scikit-learn (Pedregosa et al., 2011).

References

14