Agent skill

Sc Grn

by TianGzlab in TianGzlab/OmicsClaw

Load when inferring TF → target gene regulatory networks on a normalised scRNA AnnData via pySCENIC (GRNBoost2 + cisTarget + AUCell) or correlation-based GRN fallback (when arboreto is unavailable…

Apache-2.0Auto-check passedData & Analytics

Install Sc Grn

skills CLI
$ npx skills add TianGzlab/OmicsClaw --skill sc-grn -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install TianGzlab/OmicsClaw sc-grn --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/TianGzlab/OmicsClaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/singlecell/scrna/sc-grn .claude/skills/sc-grn && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
sc-grn
GitHub stars
161
Token cost
~1.7k tokens
SKILL.md length
638 words
Files
9 (incl. references)
Skills in repo
88
Repo updated
First seen
Licence
Apache-2.0

At a glance

Load when inferring TF → target gene regulatory networks on a normalised scRNA AnnData via pySCENIC (GRNBoost2 + cisTarget + AUCell) or correlation-based GRN fallback (when arboreto is unavailable…

  • Tasks that involve Bioinformatics
  • SKILL.md covers Use from a step, API, Methods and parameters and Gotchas, plus 3 more sections
  • Runs Python scripts from its folder; calls python
  • Tasks that involve DataFrames

What it does

Sc Grn is an agent skill from TianGzlab/OmicsClaw. Load when inferring TF → target gene regulatory networks on a normalised scRNA AnnData via pySCENIC (GRNBoost2 + cisTarget + AUCell) or correlation-based GRN fallback (when arboreto is unavailable, in --demo, or with --allow-simplified-grn). Skip when computing ligand-receptor cell-cell signalling (use sc-cell-communication); predicting genetic-KO effects (use sc-in-silico-perturbation).

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files, including reference files (for example `_api.py`, `examples/example_step.py` and `references/methodology.md`).

It sits in Data & Analytics, covering Bioinformatics and DataFrames. It works with AnnData. The repository describes itself as: Conversational & memory-enabled AI research partner for multi-omics analysis. CLI + Desktop App (installers in Releases). From biological idea to full research paper. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Bioinformatics
  • Tasks that involve DataFrames

Example prompts

  • “/sc-grn”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 90a3bec. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Sc Grn loads about 1.7k tokens when it runs, and up to ~3.5k if it reads all its reference files. Until then it costs about 99 tokens; SKILL.md has 638 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~99
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from TianGzlab/OmicsClaw at commit 90a3bec, republished under its Apache-2.0 licence (© TianGzlab). 638 words, ~1,708 tokens.

Download SKILL.mdSave it as .claude/skills/sc-grn/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.
name
sc-grn
description
Load when inferring TF → target gene regulatory networks on a normalised scRNA AnnData via pySCENIC (GRNBoost2 + cisTarget + AUCell) or correlation-based GRN fallback (when arboreto is unavailable, in --demo, or with --allow-simplified-grn). Skip when computing ligand-receptor cell-cell signalling (use sc-cell-communication); predicting genetic-KO effects (use sc-in-silico-perturbation).
trigger
grn, gene regulatory, scenic, pyscenic, regulon, transcription factor, grnboost
tags
singlecell, scrna, grn, gene-regulatory-network, scenic, pyscenic, grnboost2, aucell, cistarget

sc-grn

Use from a step

python
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

<!-- api:begin generated from _api.py; regenerate with run.py api <skill dir> --write -->
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]

Return motif-pruned regulon dictionaries using the existing cisTarget bridge.

Requires pySCENIC and caller-provided databases and motif annotations. Thresholds retain the CLI defaults: rank 5000, AUC 0.05, NES 3 and 50 targets. Backend and resource errors propagate; no data are downloaded.

regulons_from_adjacencies(adjacencies: pd.DataFrame, *, n_top: int=50) -> list[dict]

Group the strongest edges per TF without motif validation; default 50 targets.

score_regulons(adata, regulons: list[dict], *, method: str='aucell', random_state: int=42, n_jobs: int=4) -> pd.DataFrame

Return per-cell regulon scores without annotating the input.

aucell requires pySCENIC and ranks count-layer/aligned-raw/X expression. mean averages each regulon's targets in X, matching the old simplified CLI. It is not AUCell, an enrichment statistic, or motif validation.

:param method: aucell (default) or mean; no automatic scoring fallback. :param random_state: AUCell seed, default 42; mean is deterministic. :param n_jobs: AUCell workers, default 4. :returns: DataFrame indexed by cell; attrs names the scoring_method and is_aucell. :raises ValueError: The scoring method is unknown. :raises ImportError: AUCell's optional backend is unavailable.

regulon_heatmap_figure(scores: pd.DataFrame, *, groups: pd.Series | None=None)

Return a score heatmap, optionally averaged over aligned cell groups.

<!-- api:end -->
Show full SKILL.md (269 more words)Show less

Methods and parameters

infer_adjacencies defaults to GRNBoost2, with random_state=42 and n_jobs=4. Its legacy fallback is absolute Spearman correlation, retaining n_top=50 targets per TF. run_info(edges) records the actual method and fallback reason, also emitted as a warning. method="correlation" runs directly without arboreto.

The simplified path now respects the caller's TF list. Correlation gives co-expression candidates, not validated regulatory edges. regulons_from_adjacencies only groups these candidates; prune_regulons needs pySCENIC, caller-provided cisTarget databases and motif annotations. It retains rank threshold 5000, AUC threshold 0.05 and NES threshold 3; it does not download resources.

score_regulons(method="aucell") requires pySCENIC and uses seed 42. method="mean" averages target expression in X, matching the old simplified CLI. Mean expression is not AUCell and has no enrichment p-value.

Gotchas

  • Inference selects an explicit layer, else counts, aligned raw, then X. Mean scoring uses X; verify its normalization separately (_api.py:15, _api.py:98).
  • run_info is stored in DataFrame attrs; CSV does not preserve attrs. Save the diagnostics separately when exporting edges (_api.py:61).
  • GRNBoost2/backend failure can trigger correlation; inspect the record. The full pySCENIC path also needs external resources and was not validated merely by running the correlation example (_api.py:68).
  • The CLI preserves legacy grn_auc_matrix.csv and regulon_<TF> names for compatibility even for mean scores. Check result.json["data"]["scoring_method"].
  • Correlation targets exclude the TFs supplied in the same call. No TF overlap raises an error in the API (_api.py:15).

Inputs & Outputs

The API returns adjacency tables, regulon dictionaries, score tables and Figures. The CLI writes processed.h5ad, tables/grn_adjacencies.csv, tables/grn_regulons.csv, tables/grn_regulon_targets.csv, tables/grn_auc_matrix.csv, report.md and result.json. Plots and their figure-data manifests depend on available scores.

Key CLI

bash
python skills/singlecell/scrna/sc-grn/sc_grn.py --demo --output /tmp/sc_grn_demo
python skills/singlecell/scrna/sc-grn/sc_grn.py --input expression.h5ad --tf-list tfs.txt --allow-simplified-grn --output results/
python skills/singlecell/scrna/sc-grn/sc_grn.py --input expression.h5ad --tf-list tfs.txt --db '/refs/*.feather' --motif motifs.tbl --output results/

Dependencies

anndata, arboreto, dask, matplotlib, networkx, numpy, pandas, pyscenic, scanpy, scikit-learn, scipy, seaborn

© TianGzlab, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 8 other files (references) in skills/singlecell/scrna/sc-grn of TianGzlab/OmicsClaw.

  • SKILL.md
  • _api.py
  • examples/example_step.py
  • references/methodology.md
  • references/output_contract.md
  • references/parameters.md
  • references/r_visualization.md
  • sc_grn.py
  • tests/test_grn_api.py

Open the folder on GitHubat commit 90a3bec

Compare with similar skills

Sc Grn next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Sc Grn compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Sc Grn this skillTianGzlab/OmicsClaw161—~1.7kAutomated safety check: PassApache-2.0
Polars BioClawBio/ClawBio1.2k—~3.4kAutomated safety check: PassApache-2.0
Polars BioK-Dense-AI/scientific-agent-skills48k1 repos~3.2kAutomated safety check: NotesApache-2.0
Pydeseqaipoch/medical-research-skills2k—~1.8kAutomated safety check: PassMIT
Bio Genome Intervals Gtf Gff HandlingGPTomics/bioSkills1.2k1 repos~4.6kAutomated safety check: PassMIT
Lamindb Data Managementjaechang-hits/SciAgent-Skills3712 repos~4kAutomated safety check: PassApache-2.0

Similar skills

  • Polars Bio

    ClawBio/ClawBio

    Fast genomic interval operations (overlap, nearest, merge, coverage, cluster, complement, subtract, count-overlaps), multi-format bioinformatics I/O, DataFusion SQL, and pileup on Polars DataFrames…

    1.2k GitHub stars~3.4k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Polars Bio

    K-Dense-AI/scientific-agent-skills

    Performs genomic interval overlap, nearest, merge, coverage, complement and subtraction on Polars DataFrames, and reads or writes BED, VCF, BCF, BAM, CRAM, GFF, GTF, FASTA and FASTQ data.

    48k GitHub starsUsed in 1 repo~3.2k tokens
    Data & AnalyticsAuto-check: notes
  • Pydeseq

    aipoch/medical-research-skills

    Differential gene expression analysis for bulk RNA-seq count matrices using a DESeq2-like workflow in Python; use when you need Wald tests, FDR correction, and optional LFC shrinkage for…

    2k GitHub stars~1.8k tokensUpdated 22 days ago
    Data & AnalyticsAuto-check passed
  • Parses, queries, converts, and extracts from GTF and GFF3 gene-model annotation files - walking the gene/transcript/exon/CDS hierarchy with gffutils (queryable SQLite DB), converting formats and…

    1.2k GitHub starsUsed in 1 repo~4.6k tokens
    Data & AnalyticsAuto-check passed
  • Lamindb Data Management

    jaechang-hits/SciAgent-Skills

    Open-source FAIR biology data framework. An agent skill from jaechang-hits/SciAgent-Skills.

    371 GitHub starsUsed in 2 repos~4k tokens
    Research & ScienceAuto-check passed
  • Stores and operates on sparse expression matrices for single-cell and large bulk RNA-seq, covering dgCMatrix/dgRMatrix/dgTMatrix when-each-is-fast, the dgCMatrix (CSC, R) <- CSR (Python) implicit…

    1.2k GitHub starsUsed in 1 repo~5.6k tokens
    Research & ScienceAuto-check passed

More from TianGzlab/OmicsClaw

All 88 skills in this repo
  • Bulkrna Cosinor Rhythm

    TianGzlab/OmicsClaw

    Load when the user needs Deterministic fixed-period 24-hour single-component cosinor OLS rhythm analysis for a bulk RNA time-course CSV.

    161 GitHub stars~840 tokensUpdated 2 days ago
    Auto-check passed
  • Bulkrna Batch Correction

    TianGzlab/OmicsClaw

    Load when correcting batch effects in bulk expression using R sva ComBat or the legacy Python parametric approximation.

    161 GitHub stars~1.2k tokensUpdated 2 days ago
    Auto-check passed
  • Bulkrna Coexpression

    TianGzlab/OmicsClaw

    Load when discovering bulk gene co-expression modules and hub genes with R WGCNA.

    161 GitHub stars~1.3k tokensUpdated 2 days ago
    Auto-check passed
  • Bulkrna De

    TianGzlab/OmicsClaw

    Load when comparing gene expression between two conditions in bulk RNA-seq count data.

    161 GitHub stars~867 tokensUpdated 2 days ago
    Auto-check passed
  • Bulkrna Deconvolution

    TianGzlab/OmicsClaw

    Load when estimating cell-type proportions in bulk RNA-seq samples from a single-cell or signature-matrix reference.

    161 GitHub stars~757 tokensUpdated 2 days ago
    Auto-check passed
  • Bulkrna Enrichment

    TianGzlab/OmicsClaw

    Load when running pathway / GO term enrichment on a bulk RNA-seq DE result list.

    161 GitHub stars~860 tokensUpdated 2 days ago
    Auto-check passed

Works with

Questions about Sc Grn

What does Sc Grn do?

Load when inferring TF → target gene regulatory networks on a normalised scRNA AnnData via pySCENIC (GRNBoost2 + cisTarget + AUCell) or correlation-based GRN fallback (when arboreto is unavailable…. Sc Grn is an agent skill from TianGzlab/OmicsClaw. Load when inferring TF → target gene regulatory networks on a normalised scRNA AnnData via pySCENIC (GRNBoost2 + cisTarget + AUCell) or correlation-based GRN fallback (when arboreto is unavailable, in --demo, or with --allow-simplified-grn).

When should I use Sc Grn?

Sc Grn fits situations like: tasks that involve Bioinformatics; tasks that involve DataFrames.

How do I install Sc Grn in Claude Code?

Run `npx skills add TianGzlab/OmicsClaw --skill sc-grn -a claude-code`. Or copy the skill folder (skills/singlecell/scrna/sc-grn in TianGzlab/OmicsClaw) into .claude/skills/sc-grn in your project. Claude Code loads it when a task matches its description.

How do I install Sc Grn in Codex?

Run `npx skills add TianGzlab/OmicsClaw --skill sc-grn -a codex`. Or copy the skill folder (skills/singlecell/scrna/sc-grn in TianGzlab/OmicsClaw) into .agents/skills/sc-grn in your project. Codex loads it when a task matches its description.

Can I use Sc Grn in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add TianGzlab/OmicsClaw --skill sc-grn -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sc-grn, .gemini/skills/sc-grn, .github/skills/sc-grn and .opencode/skills/sc-grn in your project.

What does Sc Grn need to run?

Going by SKILL.md and its folder, Sc Grn needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Sc Grn access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Sc Grn safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Sc Grn use?

Sc Grn is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Sc Grn use?

About 1.7k tokens (SKILL.md is roughly 6.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.8k tokens, read only when the agent opens those files.

What are the alternatives to Sc Grn?

Skills that share tags, products or a category with Sc Grn: Polars Bio (ClawBio/ClawBio, 1.2k stars), Polars Bio (K-Dense-AI/scientific-agent-skills, 48k stars), Pydeseq (aipoch/medical-research-skills, 2k stars) and Bio Genome Intervals Gtf Gff Handling (GPTomics/bioSkills, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Sc Grn?

TianGzlab (a GitHub organization) maintains it in TianGzlab/OmicsClaw, which has 161 GitHub stars. The repository holds 88 skills in this directory. The repository was last updated on October 7, 2026.

Source: TianGzlab/OmicsClaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.