What problem does it solve?
Matchms streamlines metabolomics mass-spectrometry analysis by standardizing spectra, computing spectral similarity, and matching unknown compounds against reference libraries.
Core Features & Use Cases
- Spectral import/export: Load spectra from common formats (MGF, mzML, MSP, JSON, pickle) and save processed results for reuse.
- Preprocessing pipelines: Harmonize metadata, normalize peak intensities, filter peaks, and enforce quality thresholds.
- Similarity scoring & identification: Compute cosine-based and precursor-aware similarity scores to rank candidate identifications from spectral libraries.
- Structure/metadata augmentation: Derive InChI/InChIKey/SMILES, generate fingerprints, and enrich spectra for improved matching.
Quick Start
Use the matchms skill to match an unknown spectrum file against a reference spectral library by loading both datasets, applying default preprocessing, computing cosine similarity with an m/z tolerance, and returning the top-scoring candidate compounds.