matchms

Compare mass spectra and identify unknown compounds from spectral libraries.

Updated May 17, 2026
One-click install
npx skills add https://github.com/galeep/plugin-place --skill matchms-galeep
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: matchms
Source: https://github.com/galeep/plugin-place/tree/main/plugins/sci-proteomics-mass-spec/skills/matchms
Command: npx skills add https://github.com/galeep/plugin-place --skill matchms-galeep

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires matchms, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies the process of comparing mass spectra and identifying unknown compounds from spectral libraries, streamlining metabolomics analysis.

Core Features & Use Cases

  • Spectral Similarity: Compare mass spectra using various similarity metrics like cosine, modified cosine, and neutral losses.
  • Compound Identification: Identify unknown compounds from spectral libraries.
  • Use Case: Imagine you have a mass spectrum of an unknown compound and you want to identify it. Use this Skill to compare the spectrum against a library of known compounds and find the best match.

Quick Start

Use the matchms skill to compare the spectrum in 'unknown_spectrum.mgf' against the 'library.mgf' and get the top 5 matches.

Frequently Asked Questions about matchms

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify unknown compounds from mass spectrometry libraries?

Compound identification from mass spectrometry libraries involves comparing your unknown spectrum against known references using similarity metrics. This Skill matches spectra to identify metabolites, returning the top ranked library hits for your unknown compounds.

Can I compare mass spectra using modified cosine and neutral losses?

Yes, comparing mass spectra supports modified cosine and neutral losses metrics. Spectral similarity calculations use these varied mathematical approaches to evaluate fragment matches, allowing you to assess how closely unknown spectra align with library references.

What's the best way to search spectral libraries for metabolomics workflows?

The best way to search spectral libraries for metabolomics workflows is using Python-based spectral processing to compare unknown spectra against reference libraries. This approach streamlines library searching and returns ranked compound matches for metabolite identification.

Do I need Python to run spectral comparison and compound identification?

Yes, you need Python to run spectral comparison and compound identification. This Skill utilizes Python libraries, specifically requiring matchms, to process mass spectrometry data and execute similarity calculations for metabolomics analysis.

Does matchms support MGF files for spectral similarity analysis?

matchms supports MGF files for spectral similarity analysis by processing spectrum files against library files. You can compare an unknown spectrum in MGF format against a library MGF file to retrieve the top matching compound results.