This handles annotated data matrices in Python, originally built for single-cell genomics but useful for any experimental data with measurements plus metadata. Think of it as a structured container that pairs your main data matrix (X) with observation metadata (obs), variable metadata (var), and multidimensional annotations. The big win is efficient storage with sparse matrices and backed mode for datasets too large for memory, plus native h5ad format that plays nicely with the scanpy ecosystem. If you're working with single-cell RNA-seq or need to wrangle large biological datasets while keeping track of what each row and column actually means, this is the standard tool. The concatenation features are solid for merging multiple batches or samples with different join strategies.
- skills.sh installs
- 281
- GitHub stars
- 33.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add davila7/claude-code-templates --skill anndata --agent claude-codeInstalls into .claude/skills of the current project.
Files
AnnData
Overview
AnnData is a Python package for handling annotated data matrices, storing experimental measurements (X) alongside observation metadata (obs), variable metadata (var), and multi-dimensional annotations (obsm, varm, obsp, varp, uns). Originally designed for single-cell genomics through Scanpy, it now serves as a general-purpose framework for any annotated data requiring efficient storage, manipulation, and analysis.
When to Use This Skill
Use this skill when:
- Creating, reading, or writing AnnData objects
- Working with h5ad, zarr, or other genomics data formats
- Performing single-cell RNA-seq analysis
- Managing large datasets with sparse matrices or backed mode
- Concatenating multiple datasets or experimental batches
- Subsetting, filtering, or transforming annotated data
- Integrating with scanpy, scvi-tools, or other scverse ecosystem tools
Installation
uv pip install anndata
# With optional dependencies
uv pip install anndata[dev,test,doc]
Quick Start
Creating an AnnData object
import anndata as ad
import numpy as np
import pandas as pd
Sponsors
Details
- Repository
- github.com/davila7/claude-code-templates
- Category
- Python
- First seen
- Jun 3, 2026
More from davila7/claude-code-templates
All 618- Cocoindex281
- Pdb Database281
- Finishing A Development Branch280
- Railway Templates280
- Skill Share280
- Cc Skill Continuous Learning279
- Dependency Updater279
- Gptq279
- Chembl Database278
- Deepchem278
- Rwkv Architecture277
- Sentencepiece277
- Using Git Worktrees277
- Free Tool Strategy276
- Qms Audit Expert276
- Railway Metrics276
- Nnsight Remote Interpretability275
- Pytdc275
- Railway Domain275
- Firecrawl Scraper274
- Simpo Training273
- Gene Database272
- Uniprot Database269
- File Uploads268
