anndata

Create, read, and analyze AnnData objects for single-cell experiments.

48|6|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/qinyan-ai/qinyan-academic-skills --skill anndata-qinyan-ai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: anndata
Source: https://github.com/qinyan-ai/qinyan-academic-skills/tree/main/skills/05-%E7%94%9F%E7%89%A9%E4%BF%A1%E6%81%AF%E4%B8%8E%E5%9F%BA%E5%9B%A0%E7%BB%84%E5%AD%A6/anndata
Command: npx skills add https://github.com/qinyan-ai/qinyan-academic-skills --skill anndata-qinyan-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

AnnData provides a robust data model for handling annotated matrices used in single-cell experiments, centralizing the raw data matrix X with rich metadata in obs, var, layers, and embeddings, enabling scalable analysis and seamless integration with the scverse ecosystem.

Core Features & Use Cases

  • Data model: X, obs, var, layers, obsm, varm, obsp, varp, uns, and raw components for comprehensive annotations.
  • I/O and interoperability: read/write H5AD, Zarr, and CSV interop; integrate with Scanpy, Muon, and PyTorch.
  • Workflows and best practices: subsetting, concatenation, merging metadata, memory management, and reproducible analysis pipelines across single-cell experiments.
  • Use case: construct end-to-end single-cell analyses from raw counts to processed embeddings and downstream modeling.

Quick Start

Create an AnnData object from your data and 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 store single-cell RNA-seq data with annotations in Python?▼

You can store single-cell RNA-seq data and annotations in Python by using the AnnData data model, which centralizes the raw data matrix X alongside rich metadata like obs, var, layers, and embeddings for scalable analysis.

What is the best way to manage annotated matrices for scRNA-seq experiments?▼

The best way to manage annotated matrices for scRNA-seq experiments is using a dedicated data model that organizes components like X, obs, var, obsm, and uns, enabling reproducible analysis pipelines across diverse single-cell workflows.

Can I read and write H5AD or Zarr files for single-cell data workflows?▼

Yes, you can read and write H5AD, Zarr, and CSV files for single-cell data workflows. The AnnData model provides I/O and interoperability features to manage these formats and integrate with tools like Scanpy and Muon.

Does the AnnData data model integrate with Scanpy and PyTorch?▼

Yes, the AnnData data model integrates with Scanpy, Muon, and PyTorch. It requires a Python environment to load, preprocess, and train models on single-cell data from raw counts to processed embeddings.

How do I subset and concatenate single-cell data matrices during preprocessing?▼

To subset and concatenate single-cell data matrices during preprocessing, you manipulate the AnnData object directly. This workflow supports merging metadata, memory management, and building reproducible analysis pipelines.

When do I need to use specific data structures like layers and obsm for single-cell analysis?▼

You need to use specific data structures like layers for alternative data representations and obsm for multi-dimensional embeddings when constructing end-to-end single-cell analyses from raw counts to downstream modeling.