anndata
Data structure for annotated matrices in single-cell analysis.
Skill by Zaoqu-Liu
Chalk Labs
Need help deploying anndata?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
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/zaoqu-liu-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
- MIT
- Metadata
- skill-author: K-Dense Inc.
- Instructions
- 393 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- files: referenced but missing: references/data_structure.md, references/io_operations.md, references/concatenation.md, references/manipulation.md, references/best_practices.md
Files (1)
- SKILL.md
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 Zaoqu-Liu/ScienceClaw, MIT.
More from Zaoqu-Liu/ScienceClaw
- 0.508score
browser-automation
Zaoqu-Liu
Browser automation for accessing scientific databases that lack REST APIs.
SkillDFreshness: D★ 60Claude Code +9 - 0.508score
devtu-fix-tool
Zaoqu-Liu
Fix failing ToolUniverse tools by diagnosing test failures, identifying root causes, implementing fixes, and validating solutions.
SkillDFreshness: D★ 60Claude Code +9 - 0.508score
devtu-github
Zaoqu-Liu
GitHub workflow for ToolUniverse - push code safely by moving temp files, activating pre-commit hooks, running tests, and cleaning staged files.
SkillDFreshness: D★ 60Claude Code +9 - 0.508score
devtu-optimize-descriptions
Zaoqu-Liu
Optimize tool descriptions in ToolUniverse JSON configs for clarity and usability.
SkillDFreshness: D★ 60Claude Code +9 - 0.508score
asta-corpus-search
Zaoqu-Liu
Search Allen AI's Asta Scientific Corpus (225M+ papers, 12M+ full-text, 2.4B+ citations) via MCP endpoint.
SkillDFreshness: D★ 60Claude Code +9 - 0.505score
chembl-search
Zaoqu-Liu
Search ChEMBL bioactive molecules database with natural language queries.
SkillDFreshness: D★ 60Claude Code +9 - 0.505score
biomedical-search
Zaoqu-Liu
Complete biomedical information search combining PubMed, preprints, clinical trials, and FDA drug labels.
SkillDFreshness: D★ 60Claude Code +9 - 0.504score
biomni
Zaoqu-Liu
Autonomous biomedical AI agent framework for executing complex research tasks across genomics, drug discovery, molecular biology, and clinical analysis.
SkillDFreshness: D★ 60Claude Code +9 - 0.499score
devtu-auto-discover-apis
Zaoqu-Liu
Automatically discover life science APIs online, create ToolUniverse tools, validate them, and prepare integration PRs.
SkillDFreshness: D★ 60Claude Code +9 - 0.495score
create-tooluniverse-skill
Zaoqu-Liu
Create high-quality ToolUniverse skills following test-driven, implementation-agnostic methodology.
SkillDFreshness: D★ 60Claude Code +9 - 0.495score
devtu-create-tool
Zaoqu-Liu
Create new scientific tools for ToolUniverse framework with proper structure, validation, and testing.
SkillDFreshness: D★ 60Claude Code +9 - 0.475score
longevity-scholar
Zaoqu-Liu
This skill should be used when users explicitly request academic papers, recent research, most cited research, or scholarly articles about longevity, aging…
SkillDFreshness: D★ 60Claude Code +9
Signals
- Stars
- 60
- Forks
- 14
- Open issues
- 2
- Last commit (this folder)
- Mar 6, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Zaoqu-Liu/ScienceClaw
- 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.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.269score
anndata
mugpeng
Data structure for annotated matrices in single-cell analysis.
SkillDFreshness: D★ 2Claude Code +9 - 0.259score
anndata
yf8578
Data structure for annotated matrices in single-cell analysis.
SkillDFreshness: D★ 1Claude Code +9
More from Zaoqu-Liu
- 0.508score
devtu-optimize-descriptions
Zaoqu-Liu
Optimize tool descriptions in ToolUniverse JSON configs for clarity and usability.
SkillDFreshness: D★ 60Claude Code +9 - 0.508score
devtu-fix-tool
Zaoqu-Liu
Fix failing ToolUniverse tools by diagnosing test failures, identifying root causes, implementing fixes, and validating solutions.
SkillDFreshness: D★ 60Claude Code +9 - 0.508score
browser-automation
Zaoqu-Liu
Browser automation for accessing scientific databases that lack REST APIs.
SkillDFreshness: D★ 60Claude Code +9 - 0.508score
devtu-github
Zaoqu-Liu
GitHub workflow for ToolUniverse - push code safely by moving temp files, activating pre-commit hooks, running tests, and cleaning staged files.
SkillDFreshness: D★ 60Claude Code +9 - 0.508score
asta-corpus-search
Zaoqu-Liu
Search Allen AI's Asta Scientific Corpus (225M+ papers, 12M+ full-text, 2.4B+ citations) via MCP endpoint.
SkillDFreshness: D★ 60Claude Code +9 - 0.505score
biomedical-search
Zaoqu-Liu
Complete biomedical information search combining PubMed, preprints, clinical trials, and FDA drug labels.
SkillDFreshness: D★ 60Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get anndata running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
anndata skill. Agent Mart. https://agentmart.dev/skills/zaoqu-liu-anndata (last updated 2026-10-24)