lib-matchms

Compare mass spectra and identify compounds using the matchms Python library.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/biomaps-infra/blender-opencode --skill lib-matchms
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lib-matchms
Source: https://github.com/biomaps-infra/blender-opencode/tree/main/.opencode/skills/lib-matchms
Command: npx skills add https://github.com/biomaps-infra/blender-opencode --skill lib-matchms

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of comparing mass spectra and identifying unknown compounds by leveraging spectral libraries, saving researchers significant time in metabolomics and drug discovery.

Core Features & Use Cases

  • Spectral Comparison: Compute similarity scores between mass spectra using various algorithms (e.g., cosine, modified cosine).
  • Compound Identification: Match unknown spectra against curated spectral libraries to identify potential compounds.
  • Data Preprocessing: Standardize and clean mass spectrometry data using a comprehensive suite of filtering functions.
  • Use Case: A researcher has an unknown mass spectrum from an LC-MS/MS experiment and wants to identify the corresponding metabolite. They can use this Skill to compare their spectrum against a public spectral library (like GNPS) and receive a ranked list of potential matches with similarity scores.

Quick Start

Use the lib-matchms skill to compare the spectrum in 'unknown.mgf' against the library in 'library.mgf' and list the top 5 matches.

Frequently Asked Questions about lib-matchms

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

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

To identify unknown compounds from mass spectrometry data, you compare your experimental spectra against curated spectral libraries. This Skill computes similarity scores to match unknowns against public libraries like GNPS, returning a ranked list of potential metabolite matches.

What mass spectrometry file formats are supported for metabolomics data processing?

Supported mass spectrometry file formats for metabolomics data processing include MGF, mzML, and MSP. The Skill standardizes and cleans these file formats using extensive filtering functions to ensure reproducible analytical workflows.

How do I calculate spectral similarity scores for LC-MS/MS experiments?

To calculate spectral similarity scores for LC-MS/MS experiments, you apply algorithms like cosine or modified cosine. This process compares mass spectra peaks to compute scores, enabling compound identification against reference libraries.

Can I clean and standardize mass spectra before compound identification?

Yes, you can clean and standardize mass spectra before compound identification. The Skill provides a comprehensive suite of filtering functions to preprocess mass spectrometry data, ensuring spectra are properly formatted for accurate library matching.

What is the best way to compare an unknown mass spectrum against a public library?

The best way to compare an unknown mass spectrum against a public library is to use spectral similarity calculations. This Skill matches your input spectra against library entries and generates a ranked list of potential compound matches with similarity scores.