Skip to main content

project_time

Function project_time 

Source
pub fn project_time(
    peptides: &[PeptideScalar],
    timeline: &EventTimeline,
    target_p: f64,
    step_size: f64,
    num_threads: usize,
) -> Vec<Vec<(usize, f64)>>
Expand description

Time projection: for each peptide, the (global_event_index, abundance) list over every acquisition event in the run (MS1 and MS2 alike), integrating the EMG over each event’s true [start, end] exposure interval. The index is the position in timeline.events (i.e. EventSlot::global_index), so MS2 events receive their own RT abundance rather than reusing the MS1 value — this matches the legacy frame_occurrence/frame_abundance, which span all frames.