anndata

Manage AnnData structures for single-cell analysis with h5ad and zarr I/O.

94|11|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/swaruplab/operon --skill anndata-swaruplab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: anndata
Source: https://github.com/swaruplab/operon/tree/main/src-tauri/protocols/anndata
Command: npx skills add https://github.com/swaruplab/operon --skill anndata-swaruplab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AnnData provides a structured, efficient framework to store expression data with rich annotations, enabling scalable single-cell analysis workflows.

Core Features & Use Cases

  • Central data container for X, obs, var, layers, obsm, varm, obsp, uns, and raw
  • Supports versatile I/O (h5ad, zarr) and seamless integration with the scverse ecosystem (Scanpy, Muon)
  • Applies to common workflows: quality control, normalization, feature selection, and batch correction

Quick Start

Create an AnnData object from your expression matrix and add observation and variable metadata to begin a single-cell analysis workflow.

Frequently Asked Questions about anndata

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

FAQPage Schema
How do I structure single-cell expression data with annotations for analysis?

Single-cell expression data is structured using the AnnData framework, which stores expression matrices alongside rich annotations in layers like obs, var, obsm, and uns to enable scalable workflows.

What is the best way to manage annotated single-cell data for quality control and normalization?

Managing annotated single-cell data for QC and normalization involves using the AnnData container, which centralizes expression data and metadata to seamlessly integrate with the scverse ecosystem.

Does AnnData support saving and loading single-cell data in h5ad and zarr formats?

AnnData supports versatile I/O operations for single-cell data, allowing users to efficiently save and load annotated structures using both h5ad and zarr file formats.

Can I use Scanpy with AnnData for batch correction and feature selection workflows?

You can use Scanpy with AnnData for batch correction and feature selection, as AnnData serves as the central data container integrating seamlessly with the scverse ecosystem for these workflows.

What are the core components of an AnnData object needed for single-cell analysis?

The core components of an AnnData object for single-cell analysis include X for the expression matrix, obs and var for annotations, obsm and varm for multidimensional data, obsp for pairwise relations, and uns for unstructured metadata.

When should I use zarr instead of h5ad for single-cell annotated data storage?

Choosing zarr instead of h5ad for single-cell annotated data storage depends on your scalability requirements, with both formats supported by AnnData for versatile I/O across different analysis environments.