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.
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/scanpyRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/scientific/scanpy ~/.gemini/antigravity-cli/skills/scanpyAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
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.
