Tooluniverse metabolomics pathway

From mims-harvard/ToolUniverse · View interactive version

Tooluniverse metabolomics pathway is an AI agent skill from the GitHub repository mims-harvard/ToolUniverse. Metabolomics pathway analysis — metabolite identification (HMDB, KEGG, ChEBI), pathway mapping (Reactome, KEGG, MetaCyc), disease associations, enzyme/gene linkage. Use for metabolite-to-pathway-to-disease connections, BridgeDb-based ID conversion, and integrating metabolomics with gene-level pathwa

How to use this skill

Skill file

Metabolomics Pathway Analysis

Identify metabolites, map to metabolic pathways, find disease associations, and connect to enzymes/genes.

Domain Reasoning

Metabolite-to-pathway mapping requires correct, database-specific identifiers. HMDB IDs link to KEGG/Reactome but must be converted via BridgeDb; PubChem CIDs need explicit cross-referencing. Always verify metabolite identity first: the same common name can refer to structurally distinct isomers, and PubChem names frequently differ from CTD/KEGG names.

LOOK UP DON'T GUESS


COMPUTE, DON'T DESCRIBE

When analysis requires computation (statistics, data processing, scoring, enrichment), write and run Python code via Bash. Don't describe what you would do — execute it and report actual results. Use ToolUniverse tools to retrieve data, then Python (pandas, scipy, statsmodels, matplotlib) to analyze it.

Workflow

Phase 0: Identify & Resolve → Phase 1: Characterize → Phase 2: Pathway Map →
Phase 3: Enzyme/Gene Linkage → Phase 4: Disease Associations → Phase 5: Cross-DB Enrichment → Report

Phase 0: Metabolite Identification & Resolution

By Name

Metabolite_search: query (REQUIRED), search_type ("name"/"formula"). Returns PubChem matches with CID, name, formula, MW, SMILES.

MetabolomicsWorkbench_search_compound_by_name: name (REQUIRED). Cross-reference with RefMet.

By Mass/Formula

MetabolomicsWorkbench_search_by_mz: mz (REQUIRED), adduct (e.g., "M+H"), tolerance. Uses moverz/REFMET/{mz}/{adduct}/{tolerance}.

MetabolomicsWorkbench_search_by_exact_mass: exact_mass (REQUIRED), tolerance. Uses moverz/REFMET/{mass}/M/{tolerance}.

By ID

Metabolite_get_info: compound_name, hmdb_id (e.g., "HMDB0000122"), or pubchem_cid. Returns HMDB ID, CID, InChIKey, classification.

KEGG_get_compound: compound_id (e.g., "C00031"). Returns linked pathways, enzymes, reactions.

ID Cross-Referencing

BridgeDb_xrefs: identifier (REQUIRED), source (REQUIRED: "Ch"=HMDB, "Cs"=ChemSpider, "Ck"=KEGG, "Ce"=ChEBI), target (optional).

BridgeDb_search: query (REQUIRED), organism. Free-text metabolite search.


Phase 1: Metabolite Characterization

Metabolite_get_info: classification (super_class/class/sub_class), biological_roles, cellular_locations.

MetabolomicsWorkbench_get_refmet_info: refmet_name (REQUIRED). Standardized RefMet classification.

KEGG_get_compound: linked enzyme/reaction/pathway IDs.


Phase 2: Pathway Mapping

MetaCyc

KEGG

Reactome


Phase 3: Enzyme & Gene Linkage

CTD_get_chemical_gene_interactions: input_terms (chemical name). Returns interacting genes.

KEGG_get_gene_pathways: which pathways an enzyme gene participates in.

BridgeDb_attributes: identifier, source, organism. Get attributes for identifier.

Workflow: KEGG compound -> enzyme IDs -> MetaCyc reaction -> enzyme names -> Reactome uniprot -> pathways -> MyGene for gene info.


Phase 4: Disease Associations

CTD_get_chemical_diseases: input_terms (chemical name, MeSH, CAS RN). Curated associations with direct/inferred evidence.

CTD_get_gene_diseases: input_terms (gene name). For metabolite-processing genes from Phase 3.

Metabolite_get_diseases: compound_name/hmdb_id/pubchem_cid, limit (default 50). CTD-backed.


Phase 5: Cross-Database Enrichment

MetabolomicsWorkbench_get_study: study_id (e.g., "ST000001").

MetabolomicsWorkbench_get_compound_by_pubchem_cid: pubchem_cid.

PubMed_search_articles / EuropePMC_search_articles: literature context.

For metabolite list enrichment: (1) convert names to gene/enzyme IDs via CTD, (2) run ReactomeAnalysis_pathway_enrichment with space-separated identifiers, (3) use KEGG_get_gene_pathways per enzyme.


Common Mistakes to Avoid

| Mistake | Correction |

|---------|-----------|

| Array to ReactomeAnalysis_pathway_enrichment | Must be space-separated string |

| HMDB IDs in CTD_get_chemical_diseases | CTD uses common names or MeSH IDs |

| Not resolving names first | Always start with Metabolite_search |

| gene_id without organism prefix for KEGG | Need "hsa:5230" not "5230" |

| Expecting HMDB API | No open API; use Metabolite_get_info (PubChem-backed) |

| PubChem title to CTD when names differ | Try both PubChem name and common synonyms |

| MetabolomicsWorkbench exactmass | Use moverz/REFMET/{mass}/M/{tolerance} (exactmass broken) |


Fallback Strategies


Evidence Grading

| Tier | Criteria | Sources |

|------|----------|---------|

| T1 | Curated disease association, direct evidence | CTD curated, OMIM |

| T2 | Multiple database pathway concordance | MetaCyc + KEGG + Reactome agreement |

| T3 | Inferred or single-database | CTD inferred, single pathway DB |

| T4 | Computational prediction or text-mining | Literature, RefMet classification |


Limitations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.