sc-perturb

sc-perturb is a skill for Claude Code, Codex from TianGzlab/OmicsClaw. It costs 84 tokens per session (1,579 once invoked), scanned A, original, Apache-2.0.

A tool for analysing Perturb-seq or CRISPR-screen single-cell data, where each cell already has a perturbation label. It classifies cells as successfully perturbed, non-perturbed, or possible escapees.

In plain words
What is it for?
Classifying cells by perturbation status and summarising responders and non-responders for each intervention or group.
Why use it?
It helps separate cells that responded to a genetic intervention from cells that did not, making perturbation results easier to interpret.

Skill for Claude CodeCodex

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

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.

agentmods
npx agentmods add skills/tiangzlab/omicsclaw/sc-perturb
Any agent
npx skills add TianGzlab/OmicsClaw --skill sc-perturb
Clone the repo
git clone --depth 1 https://github.com/TianGzlab/OmicsClaw

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 sc-perturb

README.md
[![agentmods](https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/sc-perturb.svg)](https://agentmods.dev/skills/tiangzlab/omicsclaw/sc-perturb)
Your own site
<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/sc-perturb"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/sc-perturb.svg" alt="Measured on agentmods" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,579 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00084 $0.01579
Opus 5 $0.00042 $0.00790
Sonnet 5 $0.00017 $0.00316
Haiku 4.5 $0.00008 $0.00158

Measured 2d ago against content hash 24d9ac4d3868, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

sc-perturb 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 2d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (sc_perturb.py, tests/test_sc_perturb_methods.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/singlecell/scrna/sc-perturb/SKILL.md · 120 lines

How it starts

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

sc-perturb

When to use

The user has a scRNA AnnData from a CRISPR perturbation screen (Perturb-seq style) where each cell already carries a perturbation label in obs[--pert-key] plus a control category. The skill runs pertpy's Mixscape workflow to:

  1. Compute a per-cell perturbation signature (subtracts the matched control profile in obsm["X_pca"]).
  2. Classify cells as KO / NT / NP (non-perturbed / escapers).
  3. Report responder vs non-responder structure per perturbation + --split-by group.

Single backend: mixscape (forward-compatible CLI choice). For attaching guide labels to expression first, use sc-perturb-prep. For predicting perturbation effects on unperturbed data, use sc-in-silico-perturbation.

Inputs & Outputs

Inputs

  • Modalities: scrna
  • File types: .h5ad

Outputs

  • tables/cell_metadata.csv
  • tables/cell_type_counts.csv
  • tables/mixscape_cell_classes.csv
  • tables/mixscape_class_counts.csv
  • tables/mixscape_global_class_counts.csv
  • tables/mixscape_global_classes.csv
  • figures/mixscape_global_classes.png
  • figures/r_perturbation_barplot.png
  • analysis_summary.txt
  • processed.h5ad
  • report.md
  • result.json
  • Processed AnnData (saves_h5ad) — adds obs: mixscape_class, mixscape_class_global, mixscape_class_p_<lower(perturbation_type)>

Flow

  1. Load AnnData (--input) or generate demo Perturb-seq data.
  2. Validate obs[--pert-key] exists and --control is a real category in that column.
  3. Warn-and-disable --split-by if the column is absent (does NOT raise).
  4. Compute obsm["X_pca"] if missing (auto-runs sc.pp.pca).
  5. Run pertpy.tools.Mixscape (perturbation signature + KO/NT/NP classification).
  6. Detect degenerate output (e.g., everything classified as NP) and write troubleshooting hints.
  7. Save processed.h5ad, tables, figure, report.md, result.json.

Read the full file on GitHub · 120 lines

Files

What ships with it

7 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. 2d ago First seen · 120 lines · 84 tokens per session scan A 24d9ac4d3868

Subscribe to this mod's changes

sc-perturb is a skill published in the GitHub repository TianGzlab/OmicsClaw (160 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 84 tokens to every session and 1,579 once invoked, about $0.0004 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-09-03.

Related

Other skills, from other repositories

Virtual Embryo — atlas data + knowledge graph

Query the Virtual Embryo knowledge graph (mouse/human developmental biology: genes, anatomy, Theiler/Carnegie stages, gene expression, diseases, papers) and its 3D atlas catalog (anatomical OPT/light-sheet volumes + 3D spatial- transcriptomics datasets), and visualise those datasets in 3D with the volume3d / spatial3d…

aristoteleo/PantheonOS · 170 tokens

motif-for-claude-science-skill

Prepares, shares, inspects, or explains the standalone Motif for Claude Science artifact, including sequence inventories, alignments, traces, and browser review.

jvogan/motif · 43 tokens

motif

Use Motif to create and open interactive molecular-biology workbenches for DNA, RNA, and protein records, annotations, alignments, traces, results, and construct designs.

jvogan/motif · 39 tokens

motif-for-codex

Use Motif for molecular-biology work with DNA, RNA, and protein records, including sequence exploration, editing, annotation, alignment, construct comparison, trace analysis, cloning design, results, and portable workbench creation.

jvogan/motif · 51 tokens

motif-for-claude-science

Opens bounded sequence data in the connected Motif workbench or creates a self-contained Motif HTML artifact for visual review.

jvogan/motif · 34 tokens

generate_perturbation_hypothesis

Generate candidate perturbation hypotheses (targets, mechanism, expected signature, experiment plan) for a given biological context and phenotype goal.

Azealoo/miniAgent · 34 tokens