Invntr
Source

All instruments

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

Admission replayspectral_match 0.1.0 · files b23d1720519f…0f8d
  1. r0001identical spectra give cosine 1.0 and 100% coveragepassed

    cosine_similarity1 ± 1e-091lockedunder 0.01 % of the tolerance used
    peak_coverage1 ± 1e-091lockedunder 0.01 % of the tolerance used
    intensity_coverage1 ± 1e-091lockedunder 0.01 % of the tolerance used
  2. r0002CH2-shifted analog (+14.01565 Da) has cosine 0.0 but modified cosine 1.0passed

    cosine_similarity0 ± 1e-090lockedunder 0.01 % of the tolerance used
    modified_cosine1 ± 1e-091lockedunder 0.01 % of the tolerance used
2 of 2 cases passed · sandbox macos-seatbeltrecorded from the kernel in a fresh lab

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

NameUnitDefaultMeaning
query_peaks
ref_peaks
tol_daDa0.01
query_precursor_mz1
ref_precursor_mz1

Readings

NameUnitMeaning
cosine_similarity1
modified_cosine1
matched_peaks1
peak_coverage1
intensity_coverage1

Try the call

Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.

Terminal
MCP call