scanpy-complete

Guide Scanpy workflows for single-cell analysis on AnnData objects.

1|Updated Dec 3, 2025
One-click install
npx skills add https://github.com/Ketomihine/my_skills --skill scanpy-complete
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scanpy-complete
Source: https://github.com/Ketomihine/my_skills/tree/main/scanpy-complete
Command: npx skills add https://github.com/Ketomihine/my_skills --skill scanpy-complete

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a comprehensive, ready-to-use reference and workflow guide for Scanpy, enabling users to perform end-to-end single-cell analysis from preprocessing to visualization with minimal setup.

Core Features & Use Cases

  • End-to-end Scanpy coverage: Preprocessing, normalization, dimensionality reduction, clustering, trajectory inference, and differential expression analysis across AnnData workflows.
  • Workflow guidance: Step-by-step pipelines for common tasks including pbmc-like analyses and spatial transcriptomics or multi-omics integration.
  • Publication-ready examples: Rich tutorials and code snippets to recreate analyses and produce high-quality figures.

Quick Start

Install Scanpy and load a sample dataset, then run a minimal pipeline:

  • pip install scanpy
  • adata = sc.datasets.pbmc3k()
  • sc.pp.filter_cells(adata, min_genes=200)
  • sc.pp.filter_genes(adata, min_cells=3)
  • sc.pp.normalize_total(adata, target_sum=1e4)
  • sc.pp.log1p(adata)
  • sc.tl.pca(adata)
  • sc.pp.neighbors(adata)
  • sc.tl.umap(adata)
  • sc.tl.leiden(adata)

Frequently Asked Questions about scanpy-complete

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

FAQPage Schema
How do I run a complete single-cell analysis pipeline from preprocessing to UMAP visualization?

Run a complete single-cell analysis pipeline by filtering cells and genes, normalizing counts, applying log1p, computing PCA and neighbors, then generating UMAP and Leiden clusters on AnnData objects.

Can I perform trajectory inference and differential expression analysis on AnnData objects?

Yes, you can perform trajectory inference and differential expression analysis directly on AnnData objects using the provided workflow guidance and API references for single-cell data.

Does Scanpy support spatial transcriptomics and multi-omics data integration?

Scanpy supports spatial transcriptomics and multi-omics contexts by providing step-by-step pipelines and reference guides for data integration on AnnData objects.

What is the standard workflow for analyzing a PBMC dataset using Scanpy?

The standard PBMC workflow involves loading the dataset, filtering cells and genes, normalizing total counts to 1e4, applying log1p, computing PCA, building neighbors, and running UMAP and Leiden clustering.

How do I normalize and preprocess raw single-cell RNA counts for dimensionality reduction?

Preprocess raw single-cell RNA counts by filtering low-quality cells and genes, normalizing total counts to a target sum like 1e4, and applying log1p before computing PCA for dimensionality reduction.

Are there publication-ready code snippets and tutorials available for single-cell analysis?

Yes, the reference provides rich tutorials and code snippets to recreate single-cell analyses and produce high-quality, publication-ready figures for workflows like PBMC analysis.