agentsclimarketplace

Metabolite annotation mapping

Skill HolobiomicsLab/asb-skill-collections/collections/metabolomics/v2/skills/metabolite-annotation-mapping

Use when you have a MultiAssayExperiment object with metabolite measurements (assay slot) and basic rowData (e.g., metabolite names or mass-to-charge ratios), but lack standardized chemical identifiers or pathway assignments.From its SKILL.md

Install
npx -y skills add HolobiomicsLab/asb-skill-collections --skill metabolite-annotation-mapping

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 15 stars15 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

6.8 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it

metabolite-annotation-mapping

License: restricted — no clear open-source license detected for the underlying tool; verify licensing before commercial use or redistribution. <!-- asb-license-banner -->

Summary

Retrieve and map standardized metabolite identifiers (HMDB, KEGG, ChEBI) to pathway and chemical annotations from external databases (SMPDB). This enriches rowData in a MultiAssayExperiment object with biochemical context, enabling downstream pathway-level analysis and metabolite classification.

When to use

You have a MultiAssayExperiment object with metabolite measurements (assay slot) and basic rowData (e.g., metabolite names or mass-to-charge ratios), but lack standardized chemical identifiers or pathway assignments. Use this skill before performing correlation network analysis, module identification, or pathway enrichment to ground metabolites in SMPDB, KEGG, or HMDB nomenclature.

When NOT to use

  • Metabolite rowData already contains curated pathway or functional annotations from a prior annotation step.
  • The input identifiers (KEGG, HMDB, ChEBI) are absent or unmapped; SMPDB annotation will fail silently or return sparse results.
  • You require real-time pathway databases or organism-specific pathway context not available in SMPDB.

Inputs

  • MultiAssayExperiment object with metabolite assay and rowData
  • rowData columns containing KEGG, HMDB, or ChEBI identifiers (or NA if absent)

Outputs

  • MultiAssayExperiment object with enriched rowData
  • Annotated rowData table with SMPDB pathway, SUB_PATHWAY, and chemical metadata columns

How to apply

Load the MultiAssayExperiment object and invoke the get_SMPDBanno function, specifying which rowData columns contain KEGG IDs, HMDB IDs, and/or ChEBI IDs (e.g., column_kegg_id=6, column_hmdb_id=7, column_chebi_id=NA). The function queries the Small Molecular Pathway Database (SMPDB) to retrieve pathway annotations and chemical metadata for each metabolite. The enriched object is returned with additional annotation columns in rowData (e.g., SUB_PATHWAY, pathway names, chemical class). Verify that the returned rowData contains non-null pathway entries for the majority of metabolites and that SUB_PATHWAY entries can be extracted for module naming or pathway stratification in downstream steps.

Related tools

  • MetaboDiff (Provides the get_SMPDBanno function to retrieve SMPDB annotations and enrich rowData.) — https://github.com/andreasmock/MetaboDiff
  • Small Molecular Pathway Database (SMPDB) (External database queried by get_SMPDBanno to supply metabolite pathway, chemical class, and functional annotations.)
  • MultiAssayExperiment (Bioconductor container class that stores metabolite assays and rowData; enriched by annotation mapping.)

Examples

met <- get_SMPDBanno(met, column_kegg_id=6, column_hmdb_id=7, column_chebi_id=NA)

Evaluation signals

  • rowData contains new non-null columns for SUB_PATHWAY, pathway names, or other SMPDB metadata post-annotation.
  • Percentage of metabolites with assigned SUB_PATHWAY entries is ≥80% (or visibly higher than pre-annotation).
  • Module naming downstream (e.g., in WGCNA workflow) successfully uses most abundant SUB_PATHWAY per module, indicating annotations are populated.
  • No warnings or silent failures (NA returns) for metabolites with valid KEGG/HMDB/ChEBI IDs in the input.
  • Annotated metabolites can be grouped and stratified by pathway in exploratory plots (e.g., heatmaps, correlation networks).

Limitations

  • Annotation coverage depends on SMPDB database completeness; metabolites with rare or novel identifiers may remain unmapped.
  • SMPDB queries require valid, standardized KEGG, HMDB, or ChEBI identifiers in rowData; incorrect or obsolete IDs will yield null or erroneous mappings.
  • The function is synchronous and may be slow for large metabolite tables (>1000 metabolites) due to repeated database lookups.
  • SMPDB annotations are organism-agnostic; human-specific pathway context is not guaranteed for non-human datasets.

Evidence

  • [methods] Metabolite annotation can be retrieved from the Small Molecular Pathway Database (SMPDB) if HMDB, KEGG or ChEBI ids are part of the rowData object: "Metabolite annotation can be retrieved from the Small Molecular Pathway Database (SMPDB) if HMDB, KEGG or ChEBI ids are part of the rowData object"
  • [methods] The function create_mae merges all objects into a so called MultiAssayExperiment object to simplify all downstream analysis.: "The function create_mae merges all objects into a so called MultiAssayExperiment object to simplify all downstream analysis."
  • [other] For each module, identify the most abundant SUB_PATHWAY annotation and assign module names accordingly.: "For each module, identify the most abundant SUB_PATHWAY annotation and assign module names accordingly."
  • [readme] The MetaboDiff packages aims to provide a low-level entry to differential metabolomic analysis with R by starting off with the table of metabolite measurements.: "The MetaboDiff packages aims to provide a low-level entry to differential metabolomic analysis with R by starting off with the table of metabolite measurements."

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.