Metabolite annotation turns untargeted LC-MS/MS features (m/z, RT, MS/MS) into named compounds, but the central job is honesty: every name must carry a confidence level. This skill guards against the field's recurring failures -- reporting a database hit as an identification, treating a high cosine score as proof, claiming a specific isomer MS/MS cannot resolve, and letting ambiguous annotations poison downstream pathway analysis.
pip install matchms
# SIRIUS 6 (in-silico formula/structure/class): https://v6.docs.sirius-ms.io/ (free academic account/license)
# MetFrag (transparent in-silico fragmenter): MetFragCommandLine.jar
Conceptual prerequisites: a feature table from upstream preprocessing (metabolomics/xcms-preprocessing or metabolomics/msdial-preprocessing) with ion families already collapsed (adducts, isotopes, in-source fragments); the ion mode and expected adducts; and the distinction between annotation (a hypothesis with a level) and identification (Level 1, an in-house standard).
Tell your AI agent what you want to do: - "Match my MS/MS spectra against a reference library and report the matched-peak count, not just the score" - "Run SIRIUS for molecular formula and compound class on features with no library spectrum" - "Assign a defensible MSI/Schymanski confidence level to each annotation given the evidence I have" - "Tell me which annotations are safe to carry into pathway analysis and which are Level 3 hypotheses"
"Score my query MS/MS against MassBank using modified cosine with a 0.7 score and 6-peak floor." "Use spectral entropy similarity for identity matching and flag anything below the 0.75 natural-products threshold."
"Run the SIRIUS 6 subcommand chain for formulas, fingerprints, structures against the bio database, and CANOPUS." "I trust formula more than structure -- report the ZODIAC formula and only call a structure confident if COSMIC FDR is set."
"Given a library match but no in-house standard, what Schymanski level is this and why?" "Collapse my evidence set into a single confidence level and explain what would promote it."
"Check whether any of these annotations claim a specific isomer that MS/MS cannot resolve." "Before pathway analysis, flag features whose ambiguous candidate sets would inflate enrichment."