pub struct ConsensusFeature {Show 14 fields
pub ref_mz: f64,
pub ref_rt: f64,
pub ref_im: f64,
pub charge: u8,
pub theoretical_pattern: Vec<f64>,
pub neutral_mass: f64,
pub seed_combined_score: f64,
pub seed_run_idx: usize,
pub n_contributing_runs: usize,
pub per_run_feature: Vec<Option<u32>>,
pub members: Vec<(usize, u32)>,
pub seed_feature_idx: u32,
pub group_score: f64,
pub group_qvalue: f64,
}Expand description
One row in the multi-run consensus feature list.
Fields§
§ref_mz: f64Monoisotopic m/z in reference-run space.
ref_rt: f64Retention time apex in reference-run space (minutes).
ref_im: f64Ion mobility apex in reference-run space (0.0 if not available).
charge: u8§theoretical_pattern: Vec<f64>Theoretical averagine isotope pattern (normalised), from the seed’s ScoredFeature.
neutral_mass: f64Neutral monoisotopic mass in reference space.
seed_combined_score: f64combined_score (isotope × chromato cosine) of the seed feature.
seed_run_idx: usizeIndex into the runs slice that supplied the seed.
n_contributing_runs: usizeHow many runs contributed at least one feature to this group.
per_run_feature: Vec<Option<u32>>For each run index in runs, the per-run feature index that joined this
group (highest combined_score among that run’s contributing features) or
None if the run contributed nothing. Length = n_runs.
Used by lfq::quantify to take the per-run feature’s
total_intensity() directly for contributing runs, falling back to XIC
re-integration only for runs that did not contribute (MBR transfer).
members: Vec<(usize, u32)>Every original member, including alternatives to the primary per run.
seed_feature_idx: u32Original feature index of the seed in its source run. Search-guided candidates have no feature seed and use u32::MAX; their ID provenance is carried separately by SearchGuidance.
group_score: f64Continuous cross-run evidence; the detector score is not a probability.
group_qvalue: f64Experimental permuted-RT group q-value, separate from cell confidence.
Trait Implementations§
Source§impl Clone for ConsensusFeature
impl Clone for ConsensusFeature
Auto Trait Implementations§
impl Freeze for ConsensusFeature
impl RefUnwindSafe for ConsensusFeature
impl Send for ConsensusFeature
impl Sync for ConsensusFeature
impl Unpin for ConsensusFeature
impl UnsafeUnpin for ConsensusFeature
impl UnwindSafe for ConsensusFeature
Blanket Implementations§
impl<T> Allocation for T
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§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).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.