anndata

Store and manipulate annotated data matrices for single-cell genomics workflows.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/BKZhao/MIMIC-Papers-Repro-Agent --skill anndata-bkzhao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: anndata
Source: https://github.com/BKZhao/MIMIC-Papers-Repro-Agent/tree/main/.codex/skills/anndata
Command: npx skills add https://github.com/BKZhao/MIMIC-Papers-Repro-Agent --skill anndata-bkzhao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

AnnData provides a compact, flexible data container for large annotated matrices used in single-cell omics, combining the data matrix X with rich per-observation and per-variable annotations and multiple representations (layers, obsm, varm, uns) to enable scalable analysis and reproducibility.

Core Features & Use Cases

  • Efficient storage with sparse matrices for large datasets.
  • Rich metadata management including obs, var, embeddings, layers, and unstructured annotations; supports common workflows in Scanpy, Muon, and scverse.
  • Interoperability and I/O support for native formats (h5ad, zarr) and conversions across the broader single-cell ecosystem.
  • Use cases include preprocessing, integration, batch correction, and downstream analyses across multiple experiments with reproducible pipelines.

Quick Start

Load an .h5ad file, inspect metadata, and perform a simple subset to validate the workflow.

Frequently Asked Questions about anndata

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I store and manage annotated single-cell data matrices efficiently?

You can store annotated single-cell data matrices by combining the data matrix X with rich per-observation and per-variable annotations using AnnData. It supports sparse matrices for large datasets and manages obs, var, layers, embeddings, and unstructured annotations for scalable analysis.

How do I read and write h5ad files for scRNA-seq analysis?

Reading and writing h5ad files is supported natively for single-cell genomics workflows. You can load an .h5ad file, inspect metadata, and perform subsetting to validate the workflow, with interoperability also available for zarr formats across the broader scverse ecosystem.

What is the best way to handle large scRNA-seq datasets without running out of memory?

Handling large scRNA-seq datasets efficiently requires memory-efficient sparse data handling and on-disk backed storage support. AnnData provides compact data containers with sparse matrix storage to process large annotated matrices while maintaining reproducible analysis pipelines.

Can I use AnnData with Scanpy and Muon for single-cell preprocessing and batch correction?

Yes, AnnData integrates directly with Scanpy, Muon, and the scverse ecosystem for preprocessing, integration, batch correction, and downstream analyses. It provides the underlying data container supporting common workflows across multiple experiments.

Does AnnData support subsetting and concatenation across multiple single-cell experiments?

Subsetting and concatenation across multiple single-cell experiments are supported through robust APIs. You can subset annotated data matrices and concatenate multiple experiments while preserving obs, var, layers, and unstructured metadata for reproducible pipelines.

When do I need to use AnnData for single-cell omics data management?

You need AnnData for single-cell omics data management when combining a data matrix with rich per-observation and per-variable annotations and multiple representations. It is applicable across preprocessing, analysis, and interoperability workflows requiring scalable and reproducible data containers.