anndata

Create, read, write, and manipulate AnnData objects for single-cell analyses.

33.0k|3.2k|Updated Oct 19, 2025
One-click install
npx skills add https://github.com/K-Dense-AI/scientific-agent-skills --skill anndata-k-dense-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: anndata
Source: https://github.com/K-Dense-AI/scientific-agent-skills/tree/main/scientific-skills/anndata
Command: npx skills add https://github.com/K-Dense-AI/scientific-agent-skills --skill anndata-k-dense-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

AnnData enables efficient handling of annotated data matrices (X, obs, var, layers, obsm, varm, obsp, varp, uns) for single-cell genomics and related data, supporting scalable analysis workflows and interoperability with the scverse ecosystem.

Core Features & Use Cases

  • Data structure for annotated matrices including X, obs, var, layers, obsm, varm, obsp, varp, and uns.
  • Seamless integration with Scanpy, Muon, and PyTorch-based workflows; flexible I/O in H5AD, Zarr, and CSV-like formats; memory-efficient operations with backed mode and sparse matrices.
  • Real-world use: build end-to-end single-cell analysis pipelines from data loading to downstream analysis while preserving metadata.

Quick Start

Create an AnnData object from a data matrix and metadata, then save and reload it to verify integrity.

Frequently Asked Questions about anndata

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

FAQPage Schema
How do I manage large single-cell data matrices without running out of memory?

Annotated data matrices organize single-cell genomics data using structures like X, obs, var, layers, obsm, varm, obsp, varp, and uns, efficiently pairing raw data with metadata for scalable analysis workflows.

How do I save and load annotated single-cell data with metadata intact?

Backed mode and sparse matrix support allow memory-efficient operations on large single-cell datasets by reading directly from disk, avoiding full RAM loading while maintaining access to annotated matrix structures.

Can I use annotated data matrices with scverse tools like Scanpy and Muon?

Annotated data matrices support H5AD and Zarr I/O formats, preserving all metadata structures including obs, var, layers, and uns during file reads and writes for single-cell genomics workflows.

Does backed mode support writing modifications back to large single-cell datasets?

Annotated data matrices integrate seamlessly with the scverse ecosystem, supporting interoperability with Scanpy, Muon, and PyTorch-based workflows for end-to-end single-cell analysis pipelines.

What is the best way to structure metadata for single-cell genomics analysis?

Backed mode enables memory-efficient read access for large single-cell datasets directly from disk, though it does not support writing modifications back to the original file.

What is the best way to structure metadata for single-cell genomics analysis?

Annotated data matrices organize single-cell genomics data using structures like X, obs, var, layers, obsm, varm, obsp, varp, and uns, efficiently pairing raw data with metadata for scalable analysis workflows.