New to Claude Skills? Learn how to install them →

mims-harvard on GitHub

Metabolomics Analysis

Free

End-to-end analysis for metabolomics data.

Get this skill

Free · Opens the source repo

What Metabolomics Analysis does

The Metabolomics Analysis skill provides a comprehensive framework for analyzing metabolomics data, covering everything from metabolite identification to pathway interpretation. It is designed for researchers and professionals working with mass spectrometry output, including LC-MS, GC-MS, and NMR data. This skill facilitates the entire workflow, ensuring that users can accurately quantify metabolites, perform differential analyses, and understand metabolic pathways relevant to their studies.

At its core, the skill emphasizes the importance of normalization methods, such as Total Ion Current (TIC) normalization and internal standard normalization, which are critical for obtaining reliable metabolomics data. Users are guided through various phases of analysis, including quality control, exploratory data analysis, and differential analysis, ensuring that they can identify significant changes in metabolite levels across different conditions. The skill also incorporates robust statistical methods to support valid conclusions.

Additionally, the Metabolomics Analysis skill supports multi-omics integration, allowing users to correlate metabolite data with other omics layers, such as transcriptomics. This feature is particularly valuable for researchers interested in understanding the broader biological implications of their metabolomics findings. By leveraging established databases like KEGG and HMDB, users can confidently identify metabolites and their associated pathways, enhancing the interpretability of their results.

This skill is an essential tool for anyone engaged in metabolomics research, whether they are looking to discover biomarkers for diseases, analyze metabolic pathways, or conduct complex statistical analyses. Its structured approach ensures that users can navigate the complexities of metabolomics data with ease and accuracy.

When to use it

Use this skill when you have metabolomics data from mass spectrometry and need to perform comprehensive analyses, including differential analysis and pathway interpretation.

When not to use it

This skill may not be suitable for users who require real-time data processing or those working outside the metabolomics domain, as it focuses specifically on metabolomics workflows.

What you can build with it

Differential Metabolite Analysis

Analyze LC-MS data to identify significant changes in metabolite levels between different experimental conditions.

Pathway Enrichment

Perform pathway analysis to determine which metabolic pathways are significantly affected in your samples.

Biomarker Discovery

Identify potential metabolite biomarkers for disease classification based on your metabolomics data.

How to install Metabolomics Analysis

View source

1. Install with the skills CLI

npx skills add mims-harvard/tooluniverse/tooluniverse-metabolomics-analysis --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by mims-harvard

Metabolomics Analysis

Comprehensive analysis of metabolomics data from metabolite identification through quantification, statistical analysis, pathway interpretation, and integration with other omics layers.

Domain Reasoning

Metabolomics quantification depends critically on normalization. Total ion current (TIC) normalization corrects for sample-loading variation and works well for global abundance changes; internal standard normalization is more accurate for targeted analysis where specific metabolite concentrations matter. Missing values in a peak table may reflect signal below the detection limit — not true absence — and should be imputed or handled explicitly rather than treated as zero. Failing to account for batch effects across instrument runs is a frequent source of spurious differential metabolites.

LOOK UP DON'T GUESS

  • Metabolite identities: use Metabolite_search and Metabolite_get_info to confirm names, CIDs, and HMDB IDs; never assume identity from m/z alone.
  • Pathway memberships: query KEGG, MetaCyc, or Reactome tools; do not list pathways from memory.
  • Disease associations: retrieve from CTD via Metabolite_get_diseases; do not infer clinical relevance without database evidence.
  • CV thresholds and QC criteria: apply the values defined in this workflow (CV < 30%, blank ratio > 3x); do not override with guesses.

When to Use This Skill

Triggers:

  • User has metabolomics data (LC-MS, GC-MS, NMR)
  • Questions about metabolite abundance or concentrations
  • Differential metabolite analysis requests
  • Metabolic pathway analysis
  • Multi-omics integration with metabolomics
  • Metabolic biomarker discovery
  • Flux balance analysis or metabolic modeling
  • Metabolite-enzyme correlation

Example Questions:

  1. "Analyze this LC-MS metabolomics data for differential metabolites"
  2. "Which metabolic pathways are dysregulated between conditions?"
  3. "Identify metabolite biomarkers for disease classification"
  4. "Correlate metabolite levels with enzyme expression"
  5. "Perform pathway enrichment for differential metabolites"
  6. "Integrate metabolomics with transcriptomics data"

Core Capabilities

CapabilityDescription
Data ImportLC-MS, GC-MS, NMR, targeted/untargeted platforms
Metabolite IdentificationMatch to HMDB, KEGG, PubChem, spectral libraries
Quality ControlPeak quality, blank subtraction, internal standard normalization
NormalizationProbabilistic quotient, total ion current, internal standards
Statistical AnalysisUnivariate and multivariate (PCA, PLS-DA, OPLS-DA)
Differential AnalysisIdentify significant metabolite changes
Pathway EnrichmentKEGG, Reactome, BioCyc metabolic pathway analysis
Metabolite-Enzyme IntegrationCorrelate with expression data
Flux AnalysisMetabolic flux balance analysis (FBA)
Biomarker DiscoveryMulti-metabolite signatures

Workflow Overview

Input: Metabolomics Data (Peak Table or Spectra)
    |
    v
Phase 1: Data Import & Metabolite Identification
    |-- Load peak table or process raw spectra
    |-- Match features to HMDB, KEGG (accurate mass +/- 5 ppm)
    |-- Confidence scoring (Level 1-4)
    |
    v
Phase 2: Quality Control & Filtering
    |-- CV in QC samples (<30%)
    |-- Blank subtraction (sample/blank > 3)
    |-- Remove features with >50% missing
    |
    v
Phase 3: Normalization
    |-- Sample-wise: TIC, PQN, or internal standards
    |-- Transformation: log2, Pareto, or auto-scaling
    |-- Batch effect correction (if multi-batch)
    |
    v
Phase 4: Exploratory Analysis
    |-- PCA for sample clustering
    |-- PLS-DA for supervised separation
    |-- Outlier detection
    |
    v
Phase 5: Differential Analysis
    |-- t-test / ANOVA / Wilcoxon
    |-- Fold change + FDR correction
    |-- Volcano plots, heatmaps
    |
    v
Phase 6: Pathway Analysis
    |-- Metabolite set enrichment (MSEA)
    |-- KEGG/Reactome pathway mapping
    |-- Pathway topology (hub/bottleneck metabolites)
    |
    v
Phase 7: Multi-Omics Integration
    |-- Metabolite-enzyme Spearman correlation
    |-- Pathway-level concordance scoring
    |-- Metabolic flux inference
    |
    v
Phase 8: Generate Report
    |-- Summary statistics, differential metabolites
    |-- Pathway diagrams, biomarker panel

Phase Summaries

Phase 1: Data Import & Identification

Load peak tables (CSV/TSV) or process raw spectra (mzML). Match features to HMDB by accurate mass (+/- 5 ppm). Assign confidence levels: L1 (standard match), L2 (MS/MS), L3 (mass only), L4 (unknown).

Phase 2: Quality Control

Assess CV in QC samples (reject >30%), compute blank ratios (keep >3x blank), filter features with >50% missing values. Check internal standard recovery (95-105% acceptable).

Phase 3: Normalization

Three methods available: TIC (simple, assumes similar total abundance), PQN (robust to large changes, recommended), Internal Standard (most accurate with spiked standards). Follow with log2 transform or Pareto scaling.

Phase 4: Exploratory Analysis

PCA reveals sample grouping and batch effects. PLS-DA provides supervised separation (report R2 and Q2 for model quality). Flag and investigate outliers.

Phase 5: Differential Analysis

Welch's t-test (two groups) or ANOVA (multiple groups) with Benjamini-Hochberg FDR correction. Significance thresholds: adj. p < 0.05 and |log2FC| > 1.0.

Phase 6: Pathway Analysis

Map differential metabolites to KEGG compound IDs. Perform MSEA for pathway enrichment. Consider topology: metabolites at pathway hubs (high degree/betweenness centrality) have greater impact.

Phase 7: Multi-Omics Integration

Correlate metabolite levels with enzyme expression (Spearman). Expected: substrate-enzyme negative correlation (consumption), product-enzyme positive correlation (production). Score pathway dysregulation using combined metabolite + gene evidence.

Phase 8: Report

See report_template.md for full example output.


Integration with ToolUniverse

SkillUsed ForPhase
tooluniverse-gene-enrichmentPathway enrichmentPhase 6
tooluniverse-rnaseq-deseq2Enzyme expression for integrationPhase 7
tooluniverse-proteomics-analysisProtein levels for integrationPhase 7
tooluniverse-multi-omics-integrationComprehensive integrationPhase 7

Quantified Minimums

ComponentRequirement
MetabolitesAt least 50 identified metabolites
ReplicatesAt least 3 per condition
QCCV < 30% in QC samples, blank subtraction
Statistical testt-test or Wilcoxon with FDR correction
Pathway analysisMSEA with KEGG or Reactome
ReportQC, differential metabolites, pathways, visualizations

Limitations

  • Identification: Many features remain unidentified (Level 4)
  • Coverage: Cannot detect all metabolites (depends on method)
  • Quantification: Relative abundance (not absolute without standards)
  • Isomers: Difficult to distinguish structural isomers
  • Ion suppression: Matrix effects can affect quantification
  • Dynamic range: Limited compared to targeted methods

References

Methods:

Databases:


Reference Files

  • code_examples.md - Python code for all phases (data loading, QC, normalization, statistics, pathway analysis)
  • report_template.md - Full example report (LC-MS disease vs control)

Frequently asked questions about Metabolomics Analysis

Similar skills