COSine: An Open, GUI-Based Tool for Robust Cosine-Similarity Scoring and Mirror Plotting of High-Resolution Mass Spectra Matching

Accurate and reproducible comparison of high-resolution tandem mass spectra is essential for suspect and non-target screening workflows. Although cosine similarity scoring and its variants are widely used for spectral library searches, practical comparability is often limited by non-transparent preprocessing decisions, proprietary text formats, parsing challenges, and inconsistent peak-matching criteria. This study presents COSine, a Java-based desktop application that makes parsing, normalization, tolerance selection, peak matching, and scoring inspectable. COSine v1.7.3 reads experimental MS2 fragmentation spectra from CSV/TXT and predicted MS2 fragmentation spectra from CSV or CFM-ID TXT files directly, retains source-precision m/z values, supports explicit Da or ppm tolerances and collision-energy handling, and reports standard, square-root, weighted, binary, and reverse cosine scores with matched-peak tables and mirror plots. Eight compounds are retained as illustrative case studies. A retrospective, nonblind closed-set analysis across all 23 available identity-matched pairs and 246 same-polarity nonmatching pairs yielded 19/23 top-1 and 20/23 top-5 retrieval, with a pair-level square-root-cosine ROC AUC of 0.931. By making spectral-matching decisions explicit and inspectable, COSine supports reproducible interpretation of LC-HRMS/MS spectra while its scores remain descriptive evidence rather than standalone identification thresholds.

Authors

Institutions

Publication Details

Journal
Analytica—A Journal of Analytical Chemistry and Chemical Analysis
Published
2026-10-28
DOI
https://doi.org/10.3390/analytica7040087
Primary Topic
Mass Spectrometry Techniques and Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

COSine: An Open, GUI-Based Tool for Robust Cosine-Similarity Scoring and Mirror Plotting of High-Resolution Mass Spectra Matching

Javad Mottaghipisheh, Rajneesh Kumar Gautam, Lutz Ahrens
2 links
Analytica—A Journal of Analytical Chemistry and Chemical Analysis
Mass Spectrometry Techniques and Applications
article

COSine: An Open, GUI-Based Tool for Robust Cosine-Similarity Scoring and Mirror Plotting of High-Resolution Mass Spectra Matching

Javad Mottaghipisheh, Rajneesh Kumar Gautam, Lutz Ahrens
article en

Abstract

Accurate and reproducible comparison of high-resolution tandem mass spectra is essential for suspect and non-target screening workflows. Although cosine similarity scoring and its variants are widely used for spectral library searches, practical comparability is often limited by non-transparent preprocessing decisions, proprietary text formats, parsing challenges, and inconsistent peak-matching criteria. This study presents COSine, a Java-based desktop application that makes parsing, normalization, tolerance selection, peak matching, and scoring inspectable. COSine v1.7.3 reads experimental MS2 fragmentation spectra from CSV/TXT and predicted MS2 fragmentation spectra from CSV or CFM-ID TXT files directly, retains source-precision m/z values, supports explicit Da or ppm tolerances and collision-energy handling, and reports standard, square-root, weighted, binary, and reverse cosine scores with matched-peak tables and mirror plots. Eight compounds are retained as illustrative case studies. A retrospective, nonblind closed-set analysis across all 23 available identity-matched pairs and 246 same-polarity nonmatching pairs yielded 19/23 top-1 and 20/23 top-5 retrieval, with a pair-level square-root-cosine ROC AUC of 0.931. By making spectral-matching decisions explicit and inspectable, COSine supports reproducible interpretation of LC-HRMS/MS spectra while its scores remain descriptive evidence rather than standalone identification thresholds.

Analytica—A Journal of Analytical Chemistry and Chemical AnalysisVol. 7(4)
Swedish University of Agricultural Sciences (SE)
Openalex Percentile: Top 27%
Mass Spectrometry Techniques and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon