Skills Prompts Hues

Popular categories

Agent skill · Scientific Agent Skills

/scanpy Run a single-cell RNA-seq analysis with tested Scanpy scripts

The scanpy skill bundles a chain of command-line scripts that take raw single-cell counts through QC, normalization, variable gene selection, dimensionality reduction, Leiden clustering, marker ranking, annotation and pseudobulk preparation, all reading and writing h5ad files. It targets Scanpy 1.12.4 and spells out where counts, normalized values and the raw slot live so downstream statistics use the right matrix.

Works with

  • Claude Code, Codex, Gemini CLI, Antigravity, Cursor
  • GitHub CLI
  • Cursor
  • Codex
  • OpenClaw, NemoClaw, Pi, Hermes and other hosts

When to use it

  • You have 10x output or an h5ad file and need a first clustered, annotated object.
  • You want to compare clustering resolutions and inspect marker genes before labelling cell types.
  • You need sample-level pseudobulk counts for condition comparisons with pydeseq2.

How it works

  1. 1
    Inspect the input

    The agent summarizes the dataset and confirms it starts from true raw counts, using a counts layer when the main matrix is already normalized.

  2. 2
    Prefer the scripts

    It runs the bundled pipeline or step scripts rather than writing Scanpy code from scratch.

  3. 3
    QC and preprocess

    It sets QC thresholds from plots, optionally flags doublets, normalizes and keeps counts and a log-normalized raw snapshot.

  4. 4
    Cluster and rank markers

    It builds PCA, neighbour graph and UMAP, clusters with Leiden at several resolutions and writes per-cluster marker CSVs.

  5. 5
    Annotate and aggregate

    You review markers and supply a cluster-to-cell-type map, then it can aggregate counts by sample and cell type.

What it steers the agent away from

  • Treating cluster marker p-values as rigorous differential expression between conditions
  • Running pseudobulk on normalized values instead of counts
  • Using the deprecated Louvain clustering by default

Install this skill

It installs with the Scientific Agent Skills pack.

Claude Code, Codex, Gemini CLI, Antigravity, Cursor (npx)The standards-based installer; confirm install paths in your host's docs.
npx skills add K-Dense-AI/scientific-agent-skills
GitHub CLI (gh skill)Needs GitHub CLI 2.90.0 or later; supports --agent and --pin for host targeting and version pinning.
gh skill install K-Dense-AI/scientific-agent-skills
gh skill install K-Dense-AI/scientific-agent-skills scanpy
Cursor (Agent Plugins)Run from a checkout of the repository, then reload the Cursor window.
mkdir -p ~/.cursor/plugins/local
ln -s "$(pwd)" ~/.cursor/plugins/local/scientific-agent-skills
Codex (Agent Plugins)Run inside a local checkout; the README asks you to confirm current flag names.
codex plugins install .
OpenClaw, NemoClaw, Pi, Hermes and other hostsClone into the folder your host scans; Hermes can instead use hermes skills tap add.
git clone https://github.com/K-Dense-AI/scientific-agent-skills.git ~/.agents/skills/scientific-agent-skills # user-level

Commands come from the author’s README; check it for changes before you run them.

Questions

Can it read Seurat objects?

Not directly. The skill has the agent convert .rds files to .h5ad with R tooling first, following a bundled runbook.

Which Python version is required?

Python 3.12 or newer. The skill targets Scanpy release 1.12.4, and its tests ran on Python 3.13.

More guides from Scientific Agent Skills

Also in this pack

All 15 skills →

Summary by trendhub. The skill itself lives in K-Dense-AI/scientific-agent-skills/skills/scanpy by K-Dense (MIT); read the full, current text there.