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.
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/matchmsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/davila7/claude-code-templates /tmp/claude-code-templates && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-code-templates/cli-tool/components/skills/scientific/matchms ~/.gemini/antigravity-cli/skills/matchmsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
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.
