metabolomics-normalization

metabolomics-normalization is a skill for Claude Code, Codex from TianGzlab/OmicsClaw. It costs 71 tokens per session (1,080 once invoked), scanned A, original, Apache-2.0.

A data-cleaning tool for normalising a table of metabolomics measurements, where rows are measured chemical features and columns are samples. It adjusts the values so samples can be compared more fairly.

In plain words
What is it for?
Use it to apply median, quantile, total-sum, probabilistic quotient, or log normalisation to a CSV and produce a normalised table with a report and result file.
Why use it?
Raw samples can differ in overall scale for reasons unrelated to the biology being studied. Normalisation reduces those unwanted differences before further analysis.

Skill for Claude CodeCodex

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/metabolomics-normalization
Any agent
npx skills add TianGzlab/OmicsClaw --skill metabolomics-normalization
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 metabolomics-normalization

README.md
[![agentmods](https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/metabolomics-normalization.svg)](https://agentmods.dev/skills/tiangzlab/omicsclaw/metabolomics-normalization)
Your own site
<a href="https://agentmods.dev/skills/tiangzlab/omicsclaw/metabolomics-normalization"><img src="https://agentmods.dev/badge/skills/tiangzlab/omicsclaw/metabolomics-normalization.svg" alt="Measured on agentmods" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,080 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 $0.00071 $0.01080
Opus 5 $0.00036 $0.00540
Sonnet 5 $0.00014 $0.00216
Haiku 4.5 $0.00007 $0.00108

Measured 4d ago against content hash 28b57459b685, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

metabolomics-normalization 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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (metabolomics_normalization.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/metabolomics/metabolomics-normalization/SKILL.md · 95 lines

How it starts

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

metabolomics-normalization

When to use

The user has a feature × sample metabolomics intensity table and wants normalisation only (no imputation). Five methods:

  • median (default) — divide each sample by its median.
  • quantile — quantile normalisation across samples.
  • total — divide by per-sample total (TIC).
  • pqn — Probabilistic Quotient Normalisation (Dieterle 2006).
  • log — log2(x+1) per-cell.

For combined imputation + normalisation use metabolomics-quantification.

Inputs & Outputs

Inputs

  • File types: .csv
  • Accepts artifact metabolomics.peak_table (csv)

Outputs

  • tables/normalized.csv
  • report.md
  • result.json
  • Produces artifact metabolomics.feature_matrix as tables/normalized.csv (csv)

Flow

  1. Load CSV (--input <features.csv>) or generate a demo (--demo).
  2. Dispatch on --method; reject unknown via ValueError("Unknown method: {method}. Choose from {SUPPORTED_METHODS}") at metabolomics_normalization.py:151.
  3. Apply the chosen normalisation; write tables/normalized.csv (metabolomics_normalization.py:258) + report.md + result.json.

Gotchas

  • --method choices are exact: median / quantile / total / pqn / log. metabolomics_normalization.py:36 defines SUPPORTED_METHODS. Aliases like tic (= total) are NOT accepted — pass total explicitly. (Note: sibling metabolomics-quantification accepts tic as a normalize choice; the two skills' vocabularies differ.)
  • --input REQUIRED unless --demo. metabolomics_normalization.py:248 raises ValueError("--input required when not using --demo").
  • pqn requires non-zero reference values. Probabilistic Quotient Normalisation divides by per-feature reference (median sample); features with all zeros yield NaN quotients. Pre-filter zero-prevalent features.
  • log is log2(x+1). Negative values raise / propagate NaN. Pre-clip upstream.
  • No imputation is performed. NaN values pass through normalisation untouched (most methods skipna; quantile may NaN-propagate). Pre-impute with metabolomics-quantification if NaNs are problematic.
  • Method-specific behaviour with NaN may differ. median / total use np.nanmedian / np.nansum; quantile may collapse rows with NaN; pqn expects all-numeric.

Read the full file on GitHub · 95 lines

Files

What ships with it

5 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. 4d ago First seen · 95 lines · 71 tokens per session scan A 28b57459b685

Subscribe to this mod's changes

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