Agent skill · Data & Analytics

scanpy

Standard single-cell RNA-seq analysis pipeline. Use for QC, normalization, dimensionality reduction (PCA/UMAP/t-SNE), clustering, differential expression, visualization, and converting R-friendly single-cell formats such as Seurat or SingleCellExperiment RDS files into h5ad for Scanpy. Best for exploratory scRNA-seq analysis with established workflows. For deep learning models use scvi-tools; for data format questions use anndata.

K-Dense-AIgithub.com/K-Dense-AIGitHub ↗
claude-codeships scriptsMIT
Install
npx skills add K-Dense-AI/scientific-agent-skills --skill scanpy --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 25
SKILL.md size: 15 KB
Bundled scripts: yes
Version: 1.5
Path: skills/scanpy/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 32,619
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Scanpy: Single-Cell Analysis ## Overview Scanpy is a scalable Python toolkit for analyzing single-cell RNA-seq data, built on AnnData. Apply this skill for complete single-cell workflows including quality control, normalization, dimensionality reduction, clustering, marker gene identification, visualization, and trajectory analysis. Current stable release: **scanpy 1.12.x** (January 2026). ## Installation Requires Python **3.12+** (scanpy 1.12 dropped Python ≤3.11) and anndata **≥0.10**. ```bash uv pip install "scanpy[leiden]" ``` The `[leiden]` extra installs `python-igraph` and `leidenalg`, required for Leiden clustering. For reproducible environments, pin a version: `uv pip install "scanpy[leiden]==1.12.1"`. For large or out-of-core datasets, many functions support [Dask](https://docs.dask.org/) arrays (experimental): ```bash uv pip install "scanpy[leiden]" dask ``` See the [Using dask with Scanpy](https://scanpy.scverse.org/en/stable/tutorials/experimental/dask.html) tutorial. For GPU-accelerated scanpy-like operations, use [rapids-singlecell](https://rapids-singlecell.readthedocs.io/) as a separate package. If the input is an R-native single-cell object (`.rds`, `.RData`, Se

What's inside
Steps it walks through
  1. Overview
  2. Installation
  3. When to Use This Skill
  4. Script Toolkit (prefer these over writing code from scratch)
  5. One-shot end-to-end run
  6. Step-by-step chain (when you need to inspect/iterate between stages)
  7. Quick Start
  8. Basic Import and Setup
  9. Loading Data
  10. Understanding AnnData Structure
  11. Standard Analysis Workflow
  12. Key Parameters to Adjust
  13. Quality Control
  14. Normalization
Ships with 24 files
  • assets/analysis_template.py
  • assets/celltype_mapping.json
  • assets/gene_signatures.json
  • assets/pipeline_config.json
  • references/analysis_workflow.md
  • references/api_reference.md
  • references/plotting_guide.md
  • references/r_interop.md
  • references/standard_workflow.md
  • scripts/_common.py
  • scripts/annotate.py
  • scripts/batch_correct.py
  • scripts/cluster.py
  • scripts/convert.py
  • scripts/find_markers.py
  • scripts/inspect_data.py
  • scripts/plot.py
  • scripts/preprocess.py
  • scripts/pseudobulk.py
  • scripts/qc_analysis.py
  • scripts/reduce_dimensions.py
  • scripts/run_pipeline.py
  • scripts/score_genes.py
  • scripts/subset.py
first 24 of 25
Commands it runs
uv pip install "scanpy[leiden]"
uv pip install "scanpy[leiden]" dask
Counts → clustered, marker-annotated object + figures + marker CSVs
python scripts/run_pipeline.py raw.h5ad -o processed.h5ad \
With multi-sample integration:
python scripts/run_pipeline.py raw.h5ad -o processed.h5ad --batch-key sample --batch-method harmony
Reproducible parameters via JSON (keys mirror flag names with underscores):
python scripts/run_pipeline.py raw.h5ad -o processed.h5ad --config params.json
python scripts/qc_analysis.py        raw.h5ad  -o qc.h5ad   --scrublet
python scripts/preprocess.py         qc.h5ad   -o norm.h5ad --n-top-genes 2000
More from scientific-agent-skills
All skills →
About this skill
What does the scanpy skill do?

Standard single-cell RNA-seq analysis pipeline. Use for QC, normalization, dimensionality reduction (PCA/UMAP/t-SNE), clustering, differential expression, visualization, and converting R-friendly single-cell formats such as Seurat or SingleCellExperiment RDS files into h5ad for Scanpy. Best for exploratory scRNA-seq analysis with established workflows. For deep learning models use scvi-tools; for data format questions use anndata.

How do I install it?

Run `npx skills add K-Dense-AI/scientific-agent-skills --skill scanpy --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From K-Dense-AI/scientific-agent-skills, a repository with 32,619 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going