spectral_match
Computes greedy-matched cosine similarity, mass-shifted modified (analog) cosine similarity, and peak-count & intensity-weighted spectral coverage between two MS2 spectra.
- Field
- Mass spectrometry
- Version
- 0.1.0
- Runs as
- Compiled (Rust)
- Typical run
- 0.05 s
Compiled from source: run sh packs/install.sh once before admitting it.
Known answers it must pass
r0001identical spectra give cosine 1.0 and 100% coveragepassed
cosine_similarity1 ± 1e-091lockedunder 0.01 % of the tolerance usedpeak_coverage1 ± 1e-091lockedunder 0.01 % of the tolerance usedintensity_coverage1 ± 1e-091lockedunder 0.01 % of the tolerance usedr0002CH2-shifted analog (+14.01565 Da) has cosine 0.0 but modified cosine 1.0passed
cosine_similarity0 ± 1e-090lockedunder 0.01 % of the tolerance usedmodified_cosine1 ± 1e-091lockedunder 0.01 % of the tolerance used
Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.
Inputs
| Name | Unit | Default | Meaning |
|---|---|---|---|
query_peaks | |||
ref_peaks | |||
tol_da | Da | 0.01 | |
query_precursor_mz | 1 | ||
ref_precursor_mz | 1 |
Readings
| Name | Unit | Meaning |
|---|---|---|
cosine_similarity | 1 | |
modified_cosine | 1 | |
matched_peaks | 1 | |
peak_coverage | 1 | |
intensity_coverage | 1 |
Try the call
Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.