Invntr
Source

All instruments

spectrum_clean

Preprocesses an MS2 fragment peak list: m/z windowing, optional precursor-region removal, centroid merging within tolerance, relative noise cutoff, top-N filtering, and base-peak normalization.

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 replayspectrum_clean 0.1.0 · files de0d47b0fb65…0ebb
  1. r0001merges split peak, drops noise and precursor ionpassed

    peak_count= 22lockedexact match
    base_peak_mz137.024 ± 1e-06137.024lockedunder 0.01 % of the tolerance used
    total_intensity1400 ± 1e-061400lockedunder 0.01 % of the tolerance used
1 of 1 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
peaksMeasured MS2 peaks as [[mz, intensity], ...].
min_mz10.0
max_mz12000.0
min_rel_intensity10.01
merge_tol_daDa0.01
max_peaks200
precursor_mz1
precursor_window_daDa1.5

Readings

NameUnitMeaning
input_peak_count1
peak_count1
removed_count1
base_peak_mz1
total_intensity1
peaks
cleaned_spectrum.tsv

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