If you're working with mass spectrometry data in metabolomics or proteomics, this handles the grunt work of loading mzML, MGF, and MSP files, cleaning up messy metadata, and running spectral similarity calculations. The filtering pipeline is solid with 40+ functions for things like normalizing intensities, removing noise peaks, and harmonizing compound annotations. Spectral matching uses cosine similarity variants including modified cosine that accounts for precursor mass differences. The SpectrumProcessor lets you chain filters into reproducible workflows instead of writing the same boilerplate every time. It's Python native, open source, and frankly one of the better designed libraries in the computational mass spec space.

skills.sh installs
214
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill matchms --agent claude-code

Installs into .claude/skills of the current project.

Files

Matchms

Overview

Matchms is an open-source Python library for mass spectrometry data processing and analysis. Import spectra from various formats, standardize metadata, filter peaks, calculate spectral similarities, and build reproducible analytical workflows.

Core Capabilities

1. Importing and Exporting Mass Spectrometry Data

Load spectra from multiple file formats and export processed data:

from matchms.importing import load_from_mgf, load_from_mzml, load_from_msp, load_from_json
from matchms.exporting import save_as_mgf, save_as_msp, save_as_json

# Import spectra
spectra = list(load_from_mgf("spectra.mgf"))
spectra = list(load_from_mzml("data.mzML"))
spectra = list(load_from_msp("library.msp"))

# Export processed spectra
save_as_mgf(spectra, "output.mgf")
save_as_json(spectra, "output.json")

Supported formats:

  • mzML and mzXML (raw mass spectrometry formats)
  • MGF (Mascot Generic Format)
  • MSP (spectral library format)
  • JSON (GNPS-compatible)
  • metabolomics-USI references
  • Pickle (Python serialization)

For detailed importing/exporting documentation, consult references/importing_exporting.md.

2. Spectrum Filtering and Processing

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Category
Data Science & ML
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1cdeistopened avataramazon-category-researchcdeistopened/skill-stackResearch profitable Amazon KDP categories for book publishing. Use when planning a book launch, analyzing competition, or optimizing category selection for disc210skills.sh installs
2yonatangross avataranalyticsyonatangross/orchestkitQueries local analytics across OrchestKit projects for agent usage, skill frequency, hook timing, team activity, session replay, cost estimation, and model dele210skills.sh installs
3sickn33 avatarml-pipeline-workflowsickn33/antigravity-awesome-skillsml pipeline workflow204skills.sh installs
4borghei avatarpeople-analyticsborghei/claude-skillsPeople analytics across workforce metrics, predictive modeling, and employee insights. Use when building turnover models, analyzing engagement surveys, running 203skills.sh installs
5borghei avataranalytics-engineerborghei/claude-skillsAnalytics engineering across data modeling, dbt, transformation, and semantic layers. Use when building dbt models, designing star schemas, writing staging or m202skills.sh installs
6charleswiltgen avataraxiom-apple-docs-researchcharleswiltgen/axiomUse when researching Apple frameworks, APIs, or WWDC sessions - provides techniques for retrieving full transcripts, code samples, and documentation using Chrom202skills.sh installs