Skip to main content

fragment_prefix_exists

Function fragment_prefix_exists 

Source
pub fn fragment_prefix_exists<V>(
    map: &BTreeMap<(u32, i8, i32), V>,
    peptide_id: u32,
    charge: i8,
) -> bool
Expand description

Whether ANY collision-energy entry exists for (peptide, charge). Used at render time to distinguish a legitimate “this precursor has no predicted fragments” skip (prefix absent) from a real “fragments exist but none near the applied CE” mismatch (prefix present) — the latter means the prediction set does not cover the instrument’s applied CE and is a hard error.