Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

scanpy

Skill by davila7

Scanpy guides single-cell RNA-seq analysis in Python, from loading 10X, h5ad and CSV data through QC, clustering, marker genes and trajectory analysis. It is for researchers who analyze scRNA-seq datasets.

  • Score 94
  • 35k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install scanpy

Built from the published package, never by AI.

git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.claude/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/scientific/scanpy ~/.claude/skills/scanpy

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install scanpy in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Scanpy is a skill for single-cell RNA-seq analysis in Python, built on the AnnData structure. It covers loading .h5ad, 10X and CSV data, quality control, normalization, highly variable gene selection, PCA, UMAP and t-SNE, Leiden clustering, marker gene identification and cell type annotation. It also covers trajectory inference with PAGA and diffusion pseudotime.

The skill includes a QC script, a standard workflow reference, an API reference, a plotting guide and an analysis template. It also shows differential expression between conditions, gene set scoring and ComBat batch correction. It is aimed at researchers and bioinformaticians who analyze scRNA-seq data with scanpy. The source points to related scverse tools such as squidpy, scvi-tools and cellrank.

Written from the project's SKILL.md and checked against it.

What it can do

  • Load single-cell dataReads 10X matrix and HDF5 files, .h5ad files and CSV files.
  • Quality controlCalculates QC metrics, filters cells and genes and removes cells with high mitochondrial percentage.
  • Normalization and feature selectionNormalizes counts, log-transforms data and selects highly variable genes.
  • Dimensionality reductionRuns PCA, builds neighborhood graphs and computes UMAP and t-SNE embeddings.
  • Leiden clusteringClusters cells at one or more resolutions.
  • Marker gene identificationFinds marker genes per cluster with the Wilcoxon method and plots the results.
  • Cell type annotationPlots marker genes and maps clusters to cell type labels.
  • Trajectory inferenceRuns PAGA and diffusion pseudotime.
  • Batch correctionApplies ComBat through sc.pp.combat.

What you need

  • Python
  • scanpy package

Try asking

  • Load my 10X data, run QC and filter low-quality cells with scanpy
  • Cluster my scRNA-seq data with Leiden and find marker genes per cluster
  • Run PAGA and diffusion pseudotime on my single-cell dataset

Good to know

  • Batch correction with Harmony or scVI needs separate packages.
  • The cell type annotation example maps clusters to labels manually.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: cli-tool/components/skills/scientific/scanpy/SKILL.md, cli-tool/components/skills/scientific/scanpy/assets/analysis_template.py, cli-tool/components/skills/scientific/scanpy/scripts/qc_analysis.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md11 KB
  • assets/analysis_template.py9 KB
  • references/api_reference.md7 KB
  • references/plotting_guide.md9 KB
  • references/standard_workflow.md5 KB
Show all 6 files
  • scripts/qc_analysis.py7 KB

Alternatives to scanpy

All alternatives →

Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database

scanpy: common questions

What data formats does scanpy accept?

The skill shows loading 10X Genomics matrix and HDF5 files, .h5ad files and CSV files.

Does it include batch correction?

It shows ComBat through sc.pp.combat. It names Harmony and scVI as alternatives that are separate packages.

Is there a QC script?

Yes, scripts/qc_analysis.py calculates metrics, generates plots and filters data, with options for the mitochondrial, gene and cell thresholds.

How do I install scanpy?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is scanpy free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is scanpy safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to scanpy?

Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.

scanpy Install

Add to stack

Loading.