anndata
Data structure for annotated matrices in single-cell analysis.
Skill by mugpeng
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mugpeng-anndata
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
anndata- Description
- Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.
- License
- MPL-2.0
- Metadata
- skill-author: K-Dense Inc.
- Instructions
- 392 lines in SKILL.md · view on GitHub
Files (6)
- SKILL.md
- best_practices.md · references/
- concatenation.md · references/
- data_structure.md · references/
- io_operations.md · references/
- manipulation.md · references/
SKILL.md (first lines)
# 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
```bash
uv pip install anndata
# With optional dependencies
uv pip install anndata[dev,test,doc]
```
## Quick Start
### Creating an AnnData object
```python
import anndata as ad
import numpy as np
import pandas as pd
# Minimal creation
X = np.random.rand(100, 2000) # 100 cells × 2000 genes
adata = ad.AnnData(X)
# With metadata
obs = pd.DataFrame({
'cell_type': ['T cell', 'B cell'] * 50,
'sample': ['A', 'B'] * 50
}, index=[f'cell_{i}' for i in range(100)])
var = pd.DataFrame({
'gene_name': [f'Gene_{i}' for i in range(2000)]
}, index=[f'ENSG{i:05d}' for i in range(2000)])
adata = ad.AnnData(X=X, obs=obs, var=var)
```
### Reading data
```python
# Read h5ad file
adata = ad.read_h5ad('data.h5ad')
# Read with backed mode (for large files)
adata = ad.read_h5ad('large_data.h5ad', backed='r')
# Read other formats
adata = ad.read_csv('data.csv')
adata = ad.read_loom('data.loom')
adata = ad.read_10x_h5('filtered_feature_bc_matrix.h5')
```
### Writing data
```python
# Write h5ad file
adata.write_h5ad('output.h5ad')
# Write with compression
adata.write_h5ad('output.h5ad', compression='gzip')
# Write other formats
adata.write_zarr('output.zarr')
adata.write_csvs('output_dir/')
```
### Basic operations
```python
# Subset by conditions
t_cells = adata[adata.obs['cell_type'] == 'T cell']
# Subset by indices
subset = adata[0:50, 0:100]
# Add metadata
adata.obs['quality_score'] = np.random.rand(adata.n_obs)
adata.var['highly_variable'] = np.random.rand(adata.n_vars) > 0.8
# Access dimensions
print(f"{adata.n_obs} observations × {adata.n_vars} variables")
```
## Core Capabilities
### 1. Data Structure
Understand the AnnData object structure including X, obs, var, layers, obsm, varm, obsp, varp, uns, and raw components.
**See**: `references/data_structure.md` for comprehensive information on:
- Core components (X, obs, var, layers, obsm, varm, obsp, varp, uns, raw)
- Creating AnnData objects from various sources
- Accessing and manipulating data components
- Memory-efficient practices
### 2. Input/Output Operations
Read and write data in various formats with support for compression, backed mode, and cloud storage.
**See**: `references/io_operations.md` for details on:
- Native formats (h5ad, zarr)
- Alternative formats (CSV, MTX, Loom, 10X, Excel)
- Backed mode for large datasets
- Remote data access
- Format conversion
- Performance optimization
Common commands:From mugpeng/oh-my-skills, MPL-2.0.
More from mugpeng/oh-my-skills
- 0.448score
academic-search
mugpeng
学术论文搜索、引用分析与元数据提取专用 Skill。 【自动触发条件——出现以下任一信号时立即加载本 Skill,无需用户显式说明】 意图信号(中文): - 搜论文 / 找论文 / 查论文 / 调研论文 / 检索文献 / 文献综述 / 综述 - 顶会 / 顶刊 / CCF / NeurIPS / ICML /…
SkillDFreshness: D★ 2Claude Code +9 - 0.445score
aminer-data-search
mugpeng
使用 AMiner 开放平台 API 进行学术数据查询与分析。当用户需要查询学者信息、论文详情、机构数据、期刊内容或专利信息时使用此 skill。 触发场景:提到 AMiner、学术数据查询、查论文/学者/机构/期刊/专利、学术问答搜索、引用分析、科研机构分析、学者画像、论文引用链、期刊投稿分析等。 支持 6…
SkillDFreshness: D★ 2Claude Code +9 - 0.441score
self-reflection
mugpeng
Periodic self-reflection on recent sessions.
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
autoglm-open-link
mugpeng
使用 AutoGLM Open Link 接口打开指定网页并提取页面正文内容。当用户需要读取某个网页详情、提取文章全文、抓取页面正文做摘要或分析时使用此 skill。 Token 通过本地服务 http://127.0.0.1:53699/get_token 自动获取,无需手动配置环境变量。
SkillDFreshness: D★ 2Claude Code +9 - 0.435score
autoglm-websearch
mugpeng
使用 AutoGLM Web Search 接口进行网络信息搜索。当用户需要联网搜索、查询最新资讯、检索网页内容或获取实时信息时使用此 skill。 Token 通过本地服务 http://127.0.0.1:53699/get_token 自动获取,无需手动配置环境变量。
SkillDFreshness: D★ 2Claude Code +9 - 0.435score
autoglm-deepresearch
mugpeng
对用户提出的课题进行深度研究和调研,输出结构化的深度报告。当用户需要深入了解某个话题、做行业调研、专题研究、竞品分析等场景时使用此 skill。 与普通搜索不同,deepresearch 会先做少量定向搜索,再对少量关键页面进行深度阅读,过程中优先展示中间发现,最后再做总结,避免因调用次数过多导致响应过慢。…
SkillDFreshness: D★ 2Claude Code +9 - 0.435score
autoglm-generate-image
mugpeng
使用 AutoGLM 文生图接口,根据用户输入的文字描述生成图片。当用户需要生成图片、文字转图片、AI绘图等场景时使用此 skill。 Token 通过本地服务 http://127.0.0.1:53699/get_token 自动获取,无需手动配置环境变量。
SkillDFreshness: D★ 2Claude Code +9 - 0.435score
autoglm-search-image
mugpeng
使用 AutoGLM 搜图接口,根据用户输入的关键词搜索相关图片。当用户需要搜索图片、查找图片素材等场景时使用此 skill。 Token 通过本地服务 http://127.0.0.1:53699/get_token 自动获取,无需手动配置环境变量。
SkillDFreshness: D★ 2Claude Code +9 - 0.430score
autoglm-browser-agent
mugpeng
智能浏览器自动化代理,可执行任何需要浏览器的任务。 包括但不限于:打开网页、搜索信息(百度/谷歌/必应)、浏览社交媒体(微博/小红书/知乎/抖音/B站)、 点赞/评论/转发/收藏、发帖/发消息、登录网站、填写表单、截图、采集网页内容、 在线购物比价、查看新闻资讯、操作在线文档(飞书文档/腾讯文档等)。…
SkillDFreshness: D★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Apr 13, 2026 (6 months ago)
- Last release
- Apr 13, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MPL-2.0
- Repository
- github.com/mugpeng/oh-my-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.597score
anndata
mkurman
Data structure for annotated matrices in single-cell analysis.
SkillAFreshness: A★ 325Claude Code +9 - 0.355score
anndata
ccfwwm
Data structure for annotated matrices in single-cell analysis.
SkillAFreshness: A★ 1Claude Code +9 - 0.334score
anndata
LUNARTECH-X
Data structure for annotated matrices in single-cell analysis.
SkillCFreshness: C★ 17Claude Code +9 - 0.327score
anndata
tassiovale
Data structure for annotated matrices in single-cell analysis.
SkillCFreshness: C★ 12Claude Code +9 - 0.320score
anndata
shushuzn
Data structure for annotated matrices in single-cell analysis.
SkillCFreshness: C★ 5Claude Code +9 - 0.315score
anndata
Masterofowls
Data structure for annotated matrices in single-cell analysis.
SkillBFreshness: BClaude Code +9 - 0.315score
anndata
nikhilesh-s
Data structure for annotated matrices in single-cell analysis.
SkillBFreshness: BClaude Code +9 - 0.313score
anndata
qinyan-ai
Data structure for annotated matrices in single-cell analysis.
SkillDFreshness: D★ 87Claude Code +9 - 0.302score
anndata
Zaoqu-Liu
Data structure for annotated matrices in single-cell analysis.
SkillDFreshness: D★ 60Claude Code +9 - 0.285score
anndata
PROgram52bc
Data structure for annotated matrices in single-cell analysis.
SkillCFreshness: CClaude Code +9 - 0.269score
anndata
lamm-mit
Data structure for annotated matrices in single-cell analysis.
SkillCFreshness: C★ 250Claude Code +9 - 0.259score
anndata
Vaishnav14220
Data structure for annotated matrices in single-cell analysis.
SkillDFreshness: D★ 1Claude Code +9
More from mugpeng
- 0.448score
academic-search
mugpeng
学术论文搜索、引用分析与元数据提取专用 Skill。 【自动触发条件——出现以下任一信号时立即加载本 Skill,无需用户显式说明】 意图信号(中文): - 搜论文 / 找论文 / 查论文 / 调研论文 / 检索文献 / 文献综述 / 综述 - 顶会 / 顶刊 / CCF / NeurIPS / ICML /…
SkillDFreshness: D★ 2Claude Code +9 - 0.445score
aminer-data-search
mugpeng
使用 AMiner 开放平台 API 进行学术数据查询与分析。当用户需要查询学者信息、论文详情、机构数据、期刊内容或专利信息时使用此 skill。 触发场景:提到 AMiner、学术数据查询、查论文/学者/机构/期刊/专利、学术问答搜索、引用分析、科研机构分析、学者画像、论文引用链、期刊投稿分析等。 支持 6…
SkillDFreshness: D★ 2Claude Code +9 - 0.441score
self-reflection
mugpeng
Periodic self-reflection on recent sessions.
SkillDFreshness: D★ 2Claude Code +9 - 0.440score
autoglm-open-link
mugpeng
使用 AutoGLM Open Link 接口打开指定网页并提取页面正文内容。当用户需要读取某个网页详情、提取文章全文、抓取页面正文做摘要或分析时使用此 skill。 Token 通过本地服务 http://127.0.0.1:53699/get_token 自动获取,无需手动配置环境变量。
SkillDFreshness: D★ 2Claude Code +9 - 0.435score
autoglm-websearch
mugpeng
使用 AutoGLM Web Search 接口进行网络信息搜索。当用户需要联网搜索、查询最新资讯、检索网页内容或获取实时信息时使用此 skill。 Token 通过本地服务 http://127.0.0.1:53699/get_token 自动获取,无需手动配置环境变量。
SkillDFreshness: D★ 2Claude Code +9 - 0.435score
autoglm-deepresearch
mugpeng
对用户提出的课题进行深度研究和调研,输出结构化的深度报告。当用户需要深入了解某个话题、做行业调研、专题研究、竞品分析等场景时使用此 skill。 与普通搜索不同,deepresearch 会先做少量定向搜索,再对少量关键页面进行深度阅读,过程中优先展示中间发现,最后再做总结,避免因调用次数过多导致响应过慢。…
SkillDFreshness: D★ 2Claude Code +9
Cite this page
anndata skill. Agent Mart. https://agentmart.dev/skills/mugpeng-anndata (last updated 2026-10-24)