scrna-preprocessing-clustering

scrna-preprocessing-clustering is a skill for Claude Code, Codex from zongtingwei/Bioclaw_Skills_Hub. It costs 51 tokens per session (1,559 once invoked), scanned A, original, MIT.

A workflow for processing single-cell RNA sequencing data with Scanpy, a Python toolkit for analyzing gene activity in individual cells. It filters poor-quality cells and genes, groups similar cells, and saves the results for later analysis.

In plain words
What is it for?
Use it to prepare raw or partly processed single-cell data, create PCA and UMAP visualizations, find cell clusters with Leiden clustering, and export an AnnData file for cell annotation, gene-expression comparisons, data integration, or trajectory analysis.
Why use it?
It replaces a collection of manual preparation steps with a consistent analysis-ready dataset. This helps avoid rerunning or mixing up quality checks, normalization, dimensionality reduction, and clustering.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to prepare raw or partly processed single-cell data, create PCA and UMAP visualizations, find cell clusters with Leiden clustering, and export an AnnData file for cell annotation, gene-expression comparisons, data integration, or trajectory analysis.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zongtingwei/bioclaw_skills_hub/scrna-preprocessing-clustering
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add zongtingwei/Bioclaw_Skills_Hub --skill scrna-preprocessing-clustering
Clone the repo
git clone --depth 1 https://github.com/zongtingwei/Bioclaw_Skills_Hub

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for scrna-preprocessing-clustering

README.md
[![agentmods](https://agentmods.dev/badge/skills/zongtingwei/bioclaw_skills_hub/scrna-preprocessing-clustering/github.svg)](https://agentmods.dev/skills/zongtingwei/bioclaw_skills_hub/scrna-preprocessing-clustering)
Your own site
<a href="https://agentmods.dev/skills/zongtingwei/bioclaw_skills_hub/scrna-preprocessing-clustering"><img src="https://agentmods.dev/badge/skills/zongtingwei/bioclaw_skills_hub/scrna-preprocessing-clustering/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for scrna-preprocessing-clustering

Your own site · 80×15
<a href="https://agentmods.dev/skills/zongtingwei/bioclaw_skills_hub/scrna-preprocessing-clustering"><img src="https://agentmods.dev/badge/skills/zongtingwei/bioclaw_skills_hub/scrna-preprocessing-clustering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,559 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.01559
Opus 5 $0.00026 $0.00779
Sonnet 5 $0.00010 $0.00312
Haiku 4.5 $0.00005 $0.00156

Measured 12d ago against content hash 72030e388646, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

scrna-preprocessing-clustering scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/single-cell-and-spatial/scrna-preprocessing-clustering/SKILL.md · 196 lines

How it starts

The opening of the file, as written. The whole thing — 196 lines — stays where its author put it; the contents beside it link to each section on GitHub.

scRNA Preprocessing And Clustering

Version Compatibility

Reference examples assume:

  • scanpy 1.10+
  • anndata 0.10+
  • pandas 2.2+
  • matplotlib 3.8+

Before using code patterns, verify installed versions match the environment:

  • Python: python -c "import scanpy, anndata; print(scanpy.__version__, anndata.__version__)"
  • If signatures differ, inspect the installed API and adapt the pattern instead of retrying unchanged.

Overview

Use this skill to turn raw or minimally processed scRNA-seq data into an analysis-ready object with:

  • QC-filtered cells and genes
  • normalized expression values
  • highly variable genes
  • PCA and UMAP embeddings
  • Leiden clusters
  • saved h5ad artifact for annotation, DE, integration, or trajectory analysis

When To Use This Skill

  • raw 10x matrices, filtered count matrices, or h5ad inputs need standard preprocessing
  • the user wants UMAP, clustering, or marker discovery
  • downstream tasks depend on a stable single-cell object rather than ad hoc plots

Quick Route

  • If the input is already a processed h5ad, inspect adata.raw, embeddings, cluster columns, and QC columns before rerunning preprocessing.
  • If the input is raw counts, do QC first and only normalize after filtering obvious low-quality cells.
  • If multiple batches are present, preprocess cleanly first, then consider integration instead of hiding batch effects with aggressive filtering.

Progressive Disclosure

Default Rules

  • Keep raw counts recoverable. Prefer adata.raw = adata.copy() before regression or scaling.
  • Report thresholds explicitly. Do not silently drop cells or genes.
  • Show QC distributions before applying hard filters.
  • Use vector outputs such as .pdf or .svg for final figures when possible.

Read the full file on GitHub · 196 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 196 lines · 51 tokens per session scan A 72030e388646

Subscribe to this mod's changes

scrna-preprocessing-clustering is a skill published in the GitHub repository zongtingwei/Bioclaw_Skills_Hub (26 stars, last pushed 5mo ago), licensed MIT. It adds 51 tokens to every session and 1,559 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

jupyter-live-kernel

Iterative Python via live Jupyter kernel (hamelnb).

davidtoby/agent-skills · 19 tokens

ilya-sutskever-perspective

A thinking guide based on Ilya Sutskever’s public conversations, research papers, testimony, and recommended sources. It applies that material to AI research direction, technical reasoning, and safety questions.

davidtoby/agent-skills · 183 tokens

structure-prediction

Protein structure prediction from sequence. ESMFold-based, single GPU, no MSA needed. Predicts 3D structures with pLDDT confidence scores for drug discovery targets.

synthetic-sciences/openscience · 42 tokens

scrna-orchestrator

Local Scanpy pipeline for single-cell RNA-seq QC, optional doublet detection, clustering, marker discovery, optional CellTypist annotation, optional latent downstream mode from integrated.h5ad/Xscvi, and optional dataset-level plus within-cluster contrastive marker analysis from raw-count .h5ad or 10x Matrix Market…

ClawBio/ClawBio · 74 tokens

scrna-embedding

Local scVI/scANVI-based single-cell latent embedding and batch-aware integration from raw-count .h5ad or 10x Matrix Market input, with stable integrated AnnData export for downstream latent analysis.

ClawBio/ClawBio · 46 tokens

bio-workbench

A set of rules for running reproducible bioinformatics analyses, which study biological data with software. It uses small self-contained scripts, recorded inputs and outputs, environment details, and version history so results can be repeated.

poplarity/dsh-science-workbench · 116 tokens