anndata

Organize annotated single-cell data matrices with metadata using AnnData.

1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/JosephWoodall/noosphere --skill anndata-josephwoodall
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: anndata
Source: https://github.com/JosephWoodall/noosphere/tree/main/.agent/skills/anndata
Command: npx skills add https://github.com/JosephWoodall/noosphere --skill anndata-josephwoodall

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

AnnData is a Python package for handling annotated data matrices, storing X alongside observation metadata (obs), variable metadata (var), and multi-dimensional annotations (obsm, varm, obsp, varp, uns). Originally designed for single-cell genomics, it now serves as a general framework for any annotated data requiring efficient storage, manipulation, and analysis. It underpins scalable workflows in the scverse ecosystem, including Scanpy, Muon, and probabilistic tools, enabling seamless interoperability across analyses.

Core Features & Use Cases

  • Data structure components: X, obs, var, layers, obsm, varm, obsp, varp, uns, and raw to support flexible data organization.
  • I/O and memory efficiency: backed storage, sparse representations, chunked I/O, and reproducible pipelines for large datasets.
  • Ecosystem integration: native compatibility with Scanpy and Muon, PyTorch-friendly loading via AnnLoader, and seamless use with scverse tools.

Quick Start

Create an AnnData object from a dense matrix and basic obs/var metadata, then save to an h5ad file.

Frequently Asked Questions about anndata

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

FAQPage Schema
How do I organize annotated single-cell data matrices with metadata in Python?

You organize annotated single-cell data using the AnnData structure, which stores the main data matrix X alongside observation metadata (obs), variable metadata (var), and unstructured annotations (uns) for efficient manipulation.

What is the best way to handle large single-cell datasets that exceed available memory?

To handle large single-cell datasets efficiently, you can use backed storage and sparse representations within the AnnData framework, enabling chunked I/O and reproducible processing without loading the entire dataset into memory.

Can I use annotated data structures directly with Scanpy and Muon workflows?

Yes, annotated data structures are natively compatible with the scverse ecosystem, providing seamless integration with Scanpy, Muon, and other probabilistic tools for end-to-end single-cell analysis.

Does this single-cell data structure support multidimensional embeddings and pairwise mappings?

Yes, the single-cell data structure supports multidimensional annotations through obsm and varm for embeddings, alongside obsp and varp for storing pairwise observation and variable mappings.

How do I save and export a processed single-cell data matrix to disk?

You save a processed single-cell data matrix by writing the annotated object to an h5ad file, which preserves the X matrix, layers, and all associated metadata for reproducible downstream pipelines.