matchms
Skill by K-Dense-AI
Processes, cleans, compares, and searches tandem mass spectra with the matchms 0.33.1 Python package. Aimed at researchers doing MS/MS library search and spectral similarity work.
Install matchms
Built from the published package, never by AI.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/matchms ~/.claude/skills/matchmsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/scientific-agent-skills/skills/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
The matchms skill guides an AI assistant through importing, cleaning, processing and comparing tandem mass spectra (MS/MS) with the matchms Python package, pinned to version 0.33.1. It covers MGF, MSP, mzML, mzXML, JSON, mzSpecLib and metabolomics-USI inputs, metadata harmonization, peak filtering, and scoring methods such as cosine, modified cosine, neutral-loss and entropy. It also covers library search, score matrices, and molecular-similarity networks.
It is aimed at researchers doing MS/MS library matching and spectral similarity work. The skill says to use pyopenms instead for LC-MS feature detection or proteomics pipelines, and it warns that similarity scores are evidence rather than proof of identity. Local file workflows need no credentials, while metabolomics-USI loading needs network access.
Written from the project's SKILL.md and checked against it.
What it can do
- Spectrum file importLoads MGF, MSP, mzML, mzXML, JSON and mzSpecLib files, plus metabolomics-USI sources.
- Metadata harmonizationHarmonizes spectrum metadata keys when loading, with precursor and adduct handling.
- Peak filteringApplies filters such as intensity normalization, relative intensity selection and spectrum validity checks.
- Spectral similarity scoringScores spectra with cosine, modified cosine, neutral-loss, approximate and entropy methods.
- Library searchRanks reference library spectra against query spectra and extracts top hits.
- Score matricesBuilds structured all-pairs score matrices with guidance on estimating pair counts first.
- Molecular-similarity networksSupports spectral networks and fingerprint-based molecular structure similarity.
- Bundled library-search CLIRuns a reproducible query-versus-library search script with CSV output.
What you need
- Python 3.10 to 3.14
- uv
- matchms 0.33.1
- Network access for metabolomics-USI loading
Try asking
- Load my MGF file and filter peaks before scoring against a library
- Run a modified cosine library search and export the top 5 hits
- Compare all my spectra pairwise and build a similarity network
Good to know
- Similarity scores are evidence, not proof of compound identity.
- Not a replacement for pyopenms in LC-MS feature detection or proteomics.
- Vendor raw files must be converted to mzML or mzXML first.
- Never load pickle files from an untrusted source.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/matchms/SKILL.md, skills/matchms/scripts/library_search.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Read Write Edit Bash
-
SKILL.md13 KB -
references/filtering.md12 KB -
references/importing_exporting.md11 KB -
references/migration.md8 KB -
references/similarity.md14 KB
Show all 8 files
-
references/sources.md10 KB -
references/workflows.md14 KB -
scripts/library_search.py21 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 does matchms do?
It imports, cleans, and compares tandem mass spectra, including library search and score matrices. The skill targets matchms 0.33.1.
Can matchms detect LC-MS features?
No. The skill says to use pyopenms for LC-MS feature detection, chromatographic alignment, or proteomics pipelines.
Does matchms need credentials?
Local file workflows need no credentials. Metabolomics-USI loading requires network access.
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.
