sc-grn

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

A gene-regulation analysis that infers links between transcription factors and the genes they may control, then scores the activity of those regulatory groups in each cell. A transcription factor is a protein that helps switch genes on or off.

In plain words
What is it for?
Use it to build regulatory networks, identify target-gene groups, and compare regulon activity across cells.
Why use it?
It helps move from lists of expressed genes toward possible explanations for why cells have different states.

Skill for Claude CodeCodex

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

Good fit Use it to build regulatory networks, identify target-gene groups, and compare regulon activity across cells.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tiangzlab/omicsclaw/sc-grn
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 TianGzlab/OmicsClaw --skill sc-grn
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-grn

README.md
[![agentmods](https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/sc-grn/github.svg)](https://agentmods.dev/skills/tiangzlab/omicsclaw/sc-grn)
Your own site
<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/sc-grn"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/sc-grn/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 sc-grn

Your own site · 80×15
<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/sc-grn"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/sc-grn.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,767 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Rogue Agent · line 3
    Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
    Fix: Prevent the skill from modifying its own code, SKILL.md, or configuration files. Treat skill files as read-only at runtime.
How audits are shown
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.00100 $0.01767
Opus 5.5 $0.00040 $0.00707
Sonnet 5.5 $0.00020 $0.00353
Haiku 4.5 $0.00010 $0.00177

Measured 1mo ago against content hash e2d0e1a6ac8c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sc-grn 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 1mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (_api.py, examples/example_step.py, sc_grn.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-grn/SKILL.md · 149 lines

How it starts

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

sc-grn

Use from a step

grn = load_skill("sc-grn")
adata = read_input("expression.h5ad")
edges = grn.infer_adjacencies(adata, tfs=["SPI1", "IRF8", "STAT1"],
                              method="correlation", n_top=50)
regulons = grn.regulons_from_adjacencies(edges)
scores = grn.score_regulons(adata, regulons, method="mean")
write_output(edges, "tables/adjacencies.csv")
write_output(scores, "tables/mean_target_expression.csv")

Functions do not annotate the input automatically. The PBMC example in examples/example_step.py uses caller-supplied TFs and explicitly labeled mean-expression scores.

API

infer_adjacencies(adata, *, tfs, method: str='grnboost2', layer: str | None=None, random_state: int=42, n_top: int=50, n_jobs: int=4) -> pd.DataFrame

Return TF, target and importance columns using the caller's TF list.

grnboost2 retains the CLI's fallback to absolute Spearman correlation when its backend fails or returns no edges. Correlation excludes supplied TFs from candidate targets and keeps n_top targets per TF. No motif validation occurs here; a warning and run_info report any fallback.

:param tfs: TF names; only names present in the selected matrix are used. :param method: grnboost2 (default) or correlation. :param layer: Explicit expression layer; None prefers counts, aligned raw, then X. :param random_state: GRNBoost2 seed, default 42. Correlation is deterministic. :param n_top: Correlation targets per TF, default 50. :param n_jobs: GRNBoost2 workers, default 4. :returns: A new DataFrame; input AnnData is not modified. :raises ValueError: The method or budget is invalid, or no TF overlaps.

run_info(adjacencies: pd.DataFrame, *, keep: bool=True) -> dict

Return an independent backend/fallback record; keep=False removes it from attrs.

prune_regulons(adjacencies: pd.DataFrame, *, database_glob: str, motif_annotations: str, n_top: int=50, rank_threshold: int=5000, auc_threshold: float=0.05, nes_threshold: float=3.0, n_jobs: int=4) -> list[dict]

Read the full file on GitHub · 149 lines

Files

What ships with it

8 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. 1mo ago Changed · +14 lines e2d0e1a6ac8c
  2. 2mo ago First seen · 135 lines · 100 tokens per session scan A 88a9b68bd070

Subscribe to this mod's changes

sc-grn is a skill published in the GitHub repository TianGzlab/OmicsClaw (161 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 100 tokens to every session and 1,767 once invoked, about $0.0004 per session on Opus 5.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

sc-grn compared with skills from other repositories

sc-grn next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sc-grnTianGzlab/OmicsClawSkill1611mo agoApache-2.0A100Claude Code, Codex
Virtual Embryo — atlas data + knowledge grapharistoteleo/PantheonOSSkill499todayBSD-2-ClauseA170Claude Code, Codex
molview-specPDBeurope/PDBe-MCP-ServersSkill4814d agoApache-2.0A57Claude Code, Codex
onekgpdK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA143Claude Code
neuropixels-analysisK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA99Claude Code, Codex
pkpd-modelingK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA273Claude Code
pydicomK-Dense-AI/scientific-agent-skillsSkill59k7d agoMITA52Claude Code, Codex