If you're doing metabolomics and need to identify unknown compounds from mass spectra, this handles the grunt work of loading data from mzML, MGF, or MSP files, cleaning it up with 40+ filters, and running similarity searches against spectral libraries. The modified cosine similarity accounts for precursor mass differences, which matters for fragment matching. It's built for reproducible pipelines, so you can chain filters together and process entire libraries consistently. Note this is for small molecule metabolomics, if you're doing proteomics LC-MS/MS work, you want pyopenms instead. The SpectrumProcessor class makes it easy to standardize everything before similarity scoring.

skills.sh installs
2K
GitHub stars
56.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add k-dense-ai/scientific-agent-skills --skill matchms --agent claude-code

Installs into .claude/skills of the current project.

Files

Matchms

Purpose and Scope

Matchms is a Python package for importing, cleaning, processing, and comparing tandem mass spectra. This skill targets matchms 0.33.1, released 2026-06-08, verified again on 2026-10-01. Older tutorials can use removed names; see the migration reference.

Use matchms for:

  • MS/MS library search and query-versus-reference scoring
  • Metadata harmonization, adduct/precursor handling, and peak filtering
  • Cosine, modified-cosine, neutral-loss, approximate, and entropy scoring
  • Structured score matrices, top-hit extraction, and spectral networks
  • MGF, MSP, mzML, mzXML, JSON, mzSpecLib, and metabolomics-USI workflows

Do not use matchms as a replacement for:

  • LC-MS feature detection, chromatographic alignment, peptide identification, or protein quantification — use pyopenms
  • Vendor raw-file conversion — convert to mzML/mzXML first
  • A validated compound-identification protocol — similarity is evidence, not proof of identity

Install the Verified Release

Create or activate an environment, then install the release used by this skill:

uv pip install "matchms==0.33.1"

Verify the runtime:

Sponsors

Details

Repository
github.com/k-dense-ai/scientific-agent-skills
Categories
AI & Agent Building, Data Science & ML
First seen
Jun 3, 2026

More from k-dense-ai/scientific-agent-skills

All 137
1k-dense-ai avatarhistolabk-dense-ai/scientific-agent-skillsLightweight WSI tile extraction and preprocessing. Use for basic slide processing, tissue detection, tile extraction, and stain normalization for H&E images. Be2Kskills.sh installs
2k-dense-ai avatarpolars-biok-dense-ai/scientific-agent-skillsHigh-performance genomic interval operations and bioinformatics file I/O on Polars DataFrames. Overlap, nearest, merge, coverage, complement, subtract for BED/V2Kskills.sh installs
3kotlin avatarkotlin-tooling-cocoapods-spm-migrationkotlin/kotlin-agent-skillsMigrate KMP projects from CocoaPods (kotlin("native.cocoapods")) to Swift Package Manager (swiftPMDependencies DSL) — replaces pod() with swiftPackage(), transf2Kskills.sh installs
4k-dense-ai avatarpyopenmsk-dense-ai/scientific-agent-skillsComplete mass spectrometry analysis platform. Use for proteomics and metabolomics workflows—feature detection, peptide/protein identification, label-free and is2Kskills.sh installs
5k-dense-ai avatardnanexus-integrationk-dense-ai/scientific-agent-skillsBuild and operate reproducible genomics workloads on DNAnexus with the dx CLI, dxpy, apps/applets, native workflows, dxCompiler, and Nextflow. Use for DNAnexus 2Kskills.sh installs
6k-dense-ai avatarqutipk-dense-ai/scientific-agent-skillsSimulate and audit closed and open quantum-system models with QuTiP 5, including deterministic, trajectory, steady-state, spectral, and phase-space workflows. U2Kskills.sh installs