pub struct CandidateOpts {
pub min_rt_jaccard: f32,
pub ms2_rt_guard_sec: f64,
pub rt_bucket_width: f64,
pub max_ms1_rt_span_sec: Option<f64>,
pub max_ms2_rt_span_sec: Option<f64>,
pub min_raw_sum: ThresholdMode,
pub max_rt_apex_delta_sec: Option<f32>,
pub max_scan_apex_delta: Option<usize>,
pub min_im_overlap_scans: usize,
pub reject_frag_inside_precursor_tile: bool,
}Expand description
Options for the simple candidate enumeration. Rule = RT overlap (seconds) AND group eligibility (mz ∩ isolation AND scans ∩ program).
Fields§
§min_rt_jaccard: f32Require at least this Jaccard in RT (set 0.0 for “any overlap”).
ms2_rt_guard_sec: f64Guard pad on MS2 time bounds (applied symmetrically), in seconds.
rt_bucket_width: f64RT bucket width (seconds).
max_ms1_rt_span_sec: Option<f64>Pre-filters to drop weird clusters.
max_ms2_rt_span_sec: Option<f64>§min_raw_sum: ThresholdModeMinimum intensity sum for a cluster to be considered. Use ThresholdMode::AdaptiveNoise(N) for N × noise (recommended), or ThresholdMode::Fixed(val) for a hard threshold.
max_rt_apex_delta_sec: Option<f32>Maximum allowed |rt_apex_MS1 - rt_apex_MS2| in seconds (None disables).
max_scan_apex_delta: Option<usize>Maximum allowed |im_apex_MS1 - im_apex_MS2| in global scans (None disables).
min_im_overlap_scans: usizeRequire at least this many scan-overlap between MS1 and MS2 IM windows.
reject_frag_inside_precursor_tile: boolIf true, drop pairs where the fragment cluster’s own selection (mz, scan) lies inside the same DIA program slice that could select the precursor. This suppresses residual, unfragmented precursor intensity being treated as a fragment.
Implementations§
Source§impl CandidateOpts
impl CandidateOpts
Sourcepub fn with_fixed_raw_sum(self, val: f32) -> Self
pub fn with_fixed_raw_sum(self, val: f32) -> Self
Create with a fixed raw_sum threshold (legacy behavior).
Sourcepub fn with_adaptive_raw_sum(self, sigma_multiplier: f32) -> Self
pub fn with_adaptive_raw_sum(self, sigma_multiplier: f32) -> Self
Create with adaptive noise-based raw_sum threshold.
Sourcepub fn legacy_defaults() -> Self
pub fn legacy_defaults() -> Self
Legacy defaults (exact old behavior with min_raw_sum: 1.0).
Trait Implementations§
Source§impl Clone for CandidateOpts
impl Clone for CandidateOpts
Source§fn clone(&self) -> CandidateOpts
fn clone(&self) -> CandidateOpts
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CandidateOpts
impl Debug for CandidateOpts
Auto Trait Implementations§
impl Freeze for CandidateOpts
impl RefUnwindSafe for CandidateOpts
impl Send for CandidateOpts
impl Sync for CandidateOpts
impl Unpin for CandidateOpts
impl UnwindSafe for CandidateOpts
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.