bulkrna-coexpression

bulkrna-coexpression is a skill for Claude Code, Codex from TianGzlab/OmicsClaw. It costs 73 tokens per session (1,250 once invoked), scanned A, original, Apache-2.0.

A bulk RNA-seq analysis that groups genes with similar activity across samples into co-expression modules and identifies central hub genes. Bulk RNA-seq measures average gene activity across a mixed sample rather than individual cells.

In plain words
What is it for?
Use it on a cohort of bulk RNA-seq samples to find gene modules, hub genes, module-to-trait relationships, and supporting plots.
Why use it?
Looking at genes one at a time can hide groups that change together. The analysis reveals coordinated gene programs and how those groups relate to sample traits.

Skill for Claude CodeCodex

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

Good fit Use it on a cohort of bulk RNA-seq samples to find gene…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tiangzlab/omicsclaw/bulkrna-coexpression
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 bulkrna-coexpression
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 bulkrna-coexpression

README.md
[![agentmods](https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/bulkrna-coexpression.svg)](https://agentmods.dev/skills/tiangzlab/omicsclaw/bulkrna-coexpression)
Your own site
<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/bulkrna-coexpression"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/bulkrna-coexpression.svg" alt="Measured on agentmods" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,250 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.00073 $0.01250
Opus 5 $0.00036 $0.00625
Sonnet 5 $0.00015 $0.00250
Haiku 4.5 $0.00007 $0.00125

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

Security

Grade A, and why

bulkrna-coexpression 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 7d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (bulkrna_coexpression.py, tests/__init__.py, tests/test_bulkrna_coexpression.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/bulkrna/bulkrna-coexpression/SKILL.md · 92 lines

How it starts

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

bulkrna-coexpression

When to use

Run on a bulk RNA-seq cohort (≥15 samples recommended; works on smaller sets but module structure is unstable below that) when you want to find groups of co-regulated genes ("modules") and the hub genes within each. Soft-thresholded correlation network in the WGCNA style; outputs module assignments, hub genes, and module-trait correlations.

Inputs & Outputs

Inputs

  • File types: .csv

Outputs

  • tables/counts.csv
  • tables/gene_modules.csv
  • tables/hub_genes.csv
  • tables/module_assignments.csv
  • tables/soft_power_table.csv
  • tables/threshold_fit.csv
  • figures/module_dendrogram.png
  • figures/module_sizes.png
  • figures/scale_free_fit.png
  • wgcna_info.json
  • report.md
  • result.json

Flow

  1. Load count matrix; validate --input (bulkrna_coexpression.py:721,724 parser-error / FileNotFoundError). Demo path uses :54's built-in fixture.
  2. Validate sample count: :377 raises ValueError("WGCNA requires >= 8 samples ...") below 8; :382 warns "Low sample count" between 8 and 15 but proceeds.
  3. Try the R WGCNA bridge (_run_wgcna_r via subprocess); :390 raises RuntimeError("R WGCNA failed: ...") if R or the WGCNA package is unavailable.
  4. The Python helper _select_soft_threshold (:70) is a sanity-check / diagnostic that scores candidate powers by scale-free R² — used as a fallback / exploratory aid, not the production estimator. R WGCNA's own pickSoftThreshold drives the real run.
  5. Build modules in R; collect assignments + hub genes; emit module_assignments.csv, hub_genes.csv, threshold_fit.csv.

Gotchas

  • WGCNA hard-fails below 8 samples. bulkrna_coexpression.py:377 raises ValueError. Between 8 and 15 the run proceeds but :382 warns "Low sample count (N). WGCNA recommends >= 15 samples for reliable module detection." — treat any modules from <15-sample cohorts as exploratory.
  • R WGCNA is required for the production path. :390 raises RuntimeError with installation instructions if R or the WGCNA package isn't importable. There is no Python-only fallback that produces module assignments — installing R+WGCNA is mandatory for non-demo runs.
  • Per-power scale-free R² is in tables/threshold_fit.csv, not result.json. The summary dict (:455-464) carries soft_power (the chosen power) but no R² value; inspect the threshold-fit table to assess scale-free quality. Below R² ≈ 0.8 the network is not scale-free and modules become noise.
  • No biological-replicate filter. Unlike PyDESeq2, this skill makes no distinction between technical and biological replicates. Modules built on a cohort with hidden batch structure will reflect the batch, not biology — run bulkrna-batch-correction upstream if PCA shows batch separation.
  • Gene IDs must match between counts and traits. No automatic mapping — feed counts and traits with consistent identifier system, or run bulkrna-geneid-mapping first.
  • Hub genes are connectivity-based, not necessarily biology-load-bearing. A hub in WGCNA means "highest intramodular correlation" — useful as a starting hypothesis but not proof of regulatory primacy. Validate with knockdown / knockout data or eQTL evidence.

Read the full file on GitHub · 92 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. 7d ago First seen · 92 lines · 73 tokens per session scan A 96394e8417ec

Subscribe to this mod's changes

bulkrna-coexpression is a skill published in the GitHub repository TianGzlab/OmicsClaw (160 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 73 tokens to every session and 1,250 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-08-30.

Related

Other skills, from other repositories

cellxgene-census-query

Query CZ CELLxGENE Census (61M+ cells). Filter by cell type/tissue/disease, retrieve expression data, and integrate with scanpy/PyTorch for population-scale single-cell analysis. Use this skill when: (1) Querying single-cell expression data by cell type, tissue, or disease, (2) Exploring available single-cell datasets…

PharMolix/OpenBioMed · 105 tokens

single-cell-multi-omics-analysis-scvi

Probabilistic deep learning framework for single-cell multi-omics data analysis. Use this skill when: (1) Analyzing single-cell RNA-seq data with batch correction, (2) Integrating multi-modal data (CITE-seq, ATAC-seq, multi-omics), (3) Performing cell type annotation with scANVI, (4) Spatial transcriptomics…

PharMolix/OpenBioMed · 94 tokens

bids

Use this skill when working with Brain Imaging Data Structure (BIDS) datasets: organizing neuroscience and biomedical data (MRI, EEG, MEG, iEEG, PET, microscopy, NIRS, motion capture, EMG, MR spectroscopy, behavioral), querying BIDS layouts, validating compliance, converting DICOM to BIDS, writing metadata sidecars…

K-Dense-AI/scientific-agent-skills · 80 tokens

bulk-rnaseq

End-to-end bulk RNA-seq orchestrator — takes raw FASTQ reads through QC and trimming (FastQC, fastp/Trim Galore), alignment and quantification (STAR, Salmon, featureCounts), assembles a gene-level counts matrix, then hands off to differential expression (pydeseq2), pathway/GSEA enrichment (pathway-enrichment), and…

K-Dense-AI/scientific-agent-skills · 218 tokens

torch-geometric

PyTorch Geometric (PyG) for graph neural networks — node/link/graph classification, message passing (GCN, GAT, GraphSAGE, GIN), heterogeneous graphs, neighbor sampling, and custom datasets. Use when working with torchgeometric, not for general NetworkX analytics or non-graph PyTorch models.

K-Dense-AI/scientific-agent-skills · 71 tokens

esm

Use when working directly with the esm Python SDK, ESM3 or ESMC model IDs, Forge/Biohub inference clients, or ESMFold2 folding workflows.

K-Dense-AI/scientific-agent-skills · 39 tokens