scanpy

Perform end-to-end single-cell RNA-seq analysis with Scanpy.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/Victory-Hugo/S2-Agent-Skill --skill scanpy-victory-hugo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scanpy
Source: https://github.com/Victory-Hugo/S2-Agent-Skill/tree/main/skills/genomics/scanpy
Command: npx skills add https://github.com/Victory-Hugo/S2-Agent-Skill --skill scanpy-victory-hugo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires scanpy, matplotlib, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill helps researchers perform end-to-end single-cell RNA-seq analysis using Scanpy, providing a reproducible workflow from raw data to insights.

Core Features & Use Cases

  • Quality Control: Compute QC metrics and filter cells/genes to ensure reliable analyses.
  • Normalization & HVG: Normalize data and select highly variable genes to capture meaningful variation.
  • Dimensionality Reduction & Clustering: Perform PCA/UMAP/t-SNE, build neighbor graphs, and apply Leiden clustering.
  • Use Case: For example, analyze a 10X h5ad dataset to identify cell types and trajectories.

Quick Start

Example workflow: adata = sc.read_h5ad('path/to/data.h5ad') sc.pp.filter_cells(adata, min_genes=200) sc.pp.normalize_total(adata, target_sum=1e4) sc.tl.pca(adata, svd_solver='arpack') sc.tl.umap(adata) sc.tl.leiden(adata, resolution=0.5)

Frequently Asked Questions about scanpy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform end-to-end single-cell RNA-seq analysis from raw data to cell type annotation?

To analyze a 10X h5ad dataset, read the file, filter cells with min_genes, normalize total counts, compute PCA, generate a UMAP embedding, and apply Leiden clustering. This pipeline yields clustered cell populations for annotation.

What is the best way to identify cell types and trajectories in a 10X h5ad dataset?

To analyze a 10X h5ad dataset, read the file, filter cells with min_genes, normalize total counts, compute PCA, generate a UMAP embedding, and apply Leiden clustering. This pipeline yields clustered cell populations for annotation.

Can I use Scanpy to process CSV and 10X data formats for UMAP and PCA visualization?

End-to-end single-cell RNA-seq analysis involves quality control, normalization, HVG selection, dimensionality reduction, clustering, and marker gene identification. This workflow processes raw 10X, h5ad, or CSV data to identify cell types and infer trajectories.

Does the Scanpy workflow require Python and AnnData to run single-cell clustering?

Yes, the Scanpy workflow relies on the Python ecosystem and uses AnnData structures to store single-cell data. It builds neighbor graphs and applies Leiden clustering to group cells based on highly variable gene expression.

How do I filter cells and select highly variable genes for single-cell RNA-seq normalization?

Filter cells by setting minimum gene counts, then apply total normalization to scale expressions. Select highly variable genes to capture meaningful biological variation while reducing noise before performing dimensionality reduction.

Why use Leiden clustering and UMAP dimensionality reduction for single-cell data?

Leiden clustering and UMAP dimensionality reduction effectively group similar cells and project high-dimensional single-cell data into 2D space. This reveals distinct cell populations and transcriptomic relationships for downstream annotation.