Skip to content
Skill

matchms

by ovachiever

AI Summary

Matchms is a Python library for mass spectrometry data processing, enabling researchers to load spectral data from multiple formats, standardize metadata, calculate spectral similarities, and identify compounds for metabolomics workflows.

Install

Copy this and paste it into Claude Code, Cursor, or any AI assistant:

I want to install the "matchms" skill in my project.

Please run this command in my terminal:
# Install skill into the correct directory (5 files)
mkdir -p .claude/skills/matchms && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/matchms/SKILL.md "https://raw.githubusercontent.com/ovachiever/droid-tings/master/skills/matchms/SKILL.md" && mkdir -p .claude/skills/matchms/references && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/matchms/references/filtering.md "https://raw.githubusercontent.com/ovachiever/droid-tings/master/skills/matchms/references/filtering.md" && mkdir -p .claude/skills/matchms/references && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/matchms/references/importing_exporting.md "https://raw.githubusercontent.com/ovachiever/droid-tings/master/skills/matchms/references/importing_exporting.md" && mkdir -p .claude/skills/matchms/references && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/matchms/references/similarity.md "https://raw.githubusercontent.com/ovachiever/droid-tings/master/skills/matchms/references/similarity.md" && mkdir -p .claude/skills/matchms/references && curl --retry 3 --retry-delay 2 --retry-all-errors -o .claude/skills/matchms/references/workflows.md "https://raw.githubusercontent.com/ovachiever/droid-tings/master/skills/matchms/references/workflows.md"

Then restart Claude Code (or reload the window in Cursor) so the skill is picked up.

Description

Mass spectrometry analysis. Process mzML/MGF/MSP, spectral similarity (cosine, modified cosine), metadata harmonization, compound ID, for metabolomics and MS data processing.

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.

1. Importing and Exporting Mass Spectrometry Data

Load spectra from multiple file formats and export processed data: `python 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.

Discussion

0/2000
Loading comments...

Health Signals

MaintenanceCommitted 4mo ago
Stale
AdoptionUnder 100 stars
25 ★ · Niche
DocsREADME + description
Well-documented

GitHub Signals

Stars25
Forks3
Issues0
Updated4mo ago
View on GitHub
No License

My Fox Den

Community Rating

Sign in to rate this booster

Works With

Claude Code