anndata

Manage annotated data matrices with AnnData for single-cell genomics analysis.

16|7|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/jackspace/ClaudeSkillz --skill anndata
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: anndata
Source: https://github.com/jackspace/ClaudeSkillz/tree/main/skills/scientific-pkg-anndata
Command: npx skills add https://github.com/jackspace/ClaudeSkillz --skill anndata

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

AnnData provides a structured container for X, obs, var, and other components, enabling efficient storage, manipulation, and analysis of annotated data for single-cell genomics and beyond.

Core Features & Use Cases

  • Core data structure: X, obs, var, layers, obsm, varm, etc.
  • I/O operations: Read/write h5ad, zarr, csv, loom, etc.
  • Subsetting & manipulation: Filtering, slicing, transposing, and deriving metadata.
  • Scverse integration: Works with Scanpy, scverse ecosystem.
  • Use cases include single-cell RNA-seq pipelines and large multi-omics datasets.

Quick Start

Create an AnnData object with a small X matrix and basic metadata, then subset by a condition.

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 single-cell RNA-seq data in Python?

AnnData is a structured container that stores annotated data matrices (X, obs, var, layers) for single-cell genomics. It enables efficient storage, manipulation, and analysis of large sparse matrices in Python, integrating seamlessly with scanpy and the scverse ecosystem for RNA-seq pipelines.

What file formats does AnnData support for reading and writing?

AnnData reads and writes h5ad, zarr, csv, and loom formats. The h5ad format is native and optimized for AnnData objects, while zarr enables backed mode for memory-efficient access to large datasets without loading everything into RAM.

Can I filter and subset AnnData objects by cell or gene metadata?

Yes. AnnData supports filtering, slicing, transposing, and deriving metadata across observations and variables. You can subset by conditions on obs or var columns, enabling targeted analysis of cell populations or gene subsets in single-cell workflows.

How do I work with large, sparse matrices in single-cell analysis?

AnnData handles large, sparse matrices efficiently through backed mode and memory-optimized data structures. Its comprehensive components (X, layers, obsm, varm, obsp, varp, uns) store expression data, embeddings, distances, and metadata without duplicating memory across formats.

Does AnnData work with the scanpy and scverse ecosystem?

Yes. AnnData is designed for scverse integration and is the standard object format for scanpy and related analysis tools. It enables end-to-end single-cell RNA-seq pipelines and multi-omics workflows within the scverse ecosystem.

Can I concatenate multiple AnnData objects from different samples?

Yes. AnnData supports concatenating objects to combine data from multiple samples or batches. This enables integration of large multi-omics datasets while preserving metadata in obs, var, and uns components.