anndata

Organize annotated single-cell data matrices using the AnnData structure.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/CHENyiru3/AI-Skills-Collections --skill anndata-chenyiru3
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: anndata
Source: https://github.com/CHENyiru3/AI-Skills-Collections/tree/main/skills-market/compbio/single-cell/analysis/anndata
Command: npx skills add https://github.com/CHENyiru3/AI-Skills-Collections --skill anndata-chenyiru3

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

AnnData provides a unified data model for storing expression data (X) and metadata (obs, var) with multi-dimensional annotations (layers, obsm, varm, obsp, varp, uns), enabling scalable single-cell workflows.

Core Features & Use Cases

  • Core components: X, obs, var, layers, obsm, varm, obsp, uns, and raw
  • Interoperability: integrates with Scanpy, Muon, and PyTorch data pipelines
  • Efficient I/O and memory management: supports H5AD and Zarr with backed mode for large datasets

Quick Start

Install the anndata package, create a minimal AnnData object with X, obs, and var, and save it to disk to verify the workflow.

Frequently Asked Questions about anndata

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

FAQPage Schema
How do I manage annotated single-cell data matrices with metadata?

To manage annotated single-cell data, use the AnnData data structure to store expression matrices alongside multi-dimensional annotations like obs, var, layers, and obsm in a unified model.

How does backed mode handle large single-cell RNA-seq datasets?

Backed mode handles large single-cell RNA-seq datasets by using H5AD and Zarr formats for efficient I/O and memory management, preventing out-of-memory errors during analysis.

Can I use AnnData objects with Scanpy and PyTorch pipelines?

Yes, AnnData objects interoperate with Scanpy, Muon, and PyTorch data pipelines, enabling seamless integration for downstream single-cell analysis and multi-omics workflows.

What is the best way to store multi-dimensional annotations in single-cell workflows?

The best way to store multi-dimensional annotations is using the AnnData model, which organizes expression data (X) and metadata (obs, var) with multi-dimensional slots like layers and obsm.

Do I need Python to read and transform H5AD files for batch correction?

Yes, you need Python and the anndata library installed to read, create, and transform H5AD files for single-cell batch correction and multi-omics integrations.