Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

matchms

Skill by davila7

Matchms is an open-source Python library for mass spectrometry data processing. It imports spectra, standardizes metadata, filters peaks and calculates spectral similarities for metabolomics work.

  • Score 94
  • 34k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install matchms

Built from the published package, never by AI.

git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.claude/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/scientific/matchms ~/.claude/skills/matchms

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install matchms in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Matchms is an open-source Python library for mass spectrometry data processing and analysis. It imports spectra from formats such as mzML, mzXML, MGF, MSP, JSON and pickle, and can export processed spectra back out. Users can filter peaks, standardize metadata with default filters, and build reproducible multi-step processing pipelines.

Spectra can be compared with similarity functions including cosine (greedy and Hungarian), modified cosine, neutral losses cosine, fingerprint similarity and metadata matching. The skill also covers chemical annotation, such as deriving InChI and InChIKey values and adding fingerprints, plus spectrum plotting. It is aimed at metabolomics and MS data processing, and it points to reference files for filters, similarity metrics, I/O and workflows.

Written from the project's SKILL.md and checked against it.

What it can do

  • Import and export spectraLoads MGF, mzML, MSP and JSON files and saves spectra as MGF, MSP or JSON.
  • Spectrum filteringApplies filters such as default_filters, normalize_intensities and select_by_relative_intensity.
  • Spectral similarityScores spectra with CosineGreedy, CosineHungarian, ModifiedCosine and NeutralLossesCosine.
  • Processing pipelinesChains several filters into a reusable SpectrumProcessor for all spectra.
  • Spectrum objects and plottingCreates Spectrum objects and plots a spectrum or compares it with a reference.
  • Metadata harmonizationStandardizes metadata keys so fields such as precursor_mz can be read consistently.
  • Chemical annotationDerives InChI, InChIKey and fingerprints from SMILES or other structure data.

What you need

  • Python
  • uv (for the install command shown in the source)
  • matchms[chemistry] extra for SMILES and InChI processing

Try asking

  • Load spectra from an MGF file and filter peaks by relative intensity.
  • Compare my query spectra against a reference library using modified cosine.
  • Derive InChI and InChIKey from SMILES for my spectra.

Good to know

  • Structure-related functions such as SMILES and InChI need the chemistry extra installed.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: cli-tool/components/skills/scientific/matchms/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB
  • references/filtering.md10 KB
  • references/importing_exporting.md11 KB
  • references/similarity.md13 KB
  • references/workflows.md22 KB

Alternatives to matchms

All alternatives →

Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database

matchms: common questions

What file formats does matchms support?

The source lists mzML and mzXML, MGF, MSP, JSON (GNPS-compatible), metabolomics-USI references and Pickle.

Which similarity measures does matchms provide?

The source lists CosineGreedy, CosineHungarian, ModifiedCosine, NeutralLossesCosine, FingerprintSimilarity, MetadataMatch and PrecursorMzMatch or ParentMassMatch.

How many filters does matchms include?

The source says matchms provides 40+ filters and refers to references/filtering.md for the complete reference.

How do I install matchms?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is matchms free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is matchms safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to matchms?

Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.

matchms Install

Add to stack

Loading.