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
r0001merges split peak, drops noise and precursor ionpassed
peak_count= 22lockedexact matchbase_peak_mz137.024 ± 1e-06137.024lockedunder 0.01 % of the tolerance usedtotal_intensity1400 ± 1e-061400lockedunder 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 |
|---|---|---|---|
peaks | Measured MS2 peaks as [[mz, intensity], ...]. | ||
min_mz | 1 | 0.0 | |
max_mz | 1 | 2000.0 | |
min_rel_intensity | 1 | 0.01 | |
merge_tol_da | Da | 0.01 | |
max_peaks | 200 | ||
precursor_mz | 1 | ||
precursor_window_da | Da | 1.5 |
Readings
| Name | Unit | Meaning |
|---|---|---|
input_peak_count | 1 | |
peak_count | 1 | |
removed_count | 1 | |
base_peak_mz | 1 | |
total_intensity | 1 | |
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.