pub struct FeatureFindingOutput {
pub hills: Vec<Hill>,
pub features: Vec<ScoredFeature>,
pub ms2_hills: Vec<Hill>,
}Expand description
Owned, in-memory result of a full run — the convenience shape for consumers
(like uno) that just want the final lists rather than a streaming callback.
features is exactly the vector the binary hands to its feature writer
before the writer’s own presentation step (which drops charge == 0
features and sorts by descending intensity). Consumers that want the
on-disk row set can replicate that with
features.iter().filter(|f| f.feature.charge > 0).
Fields§
§hills: Vec<Hill>§features: Vec<ScoredFeature>§ms2_hills: Vec<Hill>Finalized MS2 (DIA fragment) hills, partitioned by precursor isolation
window — populated only when PipelineOptions::emit_ms2 is true
(empty otherwise). Each carries its window in Hill::isolation_window;
group with group_ms2_hills_by_window.
Trait Implementations§
Source§impl Debug for FeatureFindingOutput
impl Debug for FeatureFindingOutput
Source§impl Default for FeatureFindingOutput
impl Default for FeatureFindingOutput
Source§fn default() -> FeatureFindingOutput
fn default() -> FeatureFindingOutput
Source§impl PipelineSink for FeatureFindingOutput
Collecting everything into owned vectors: the sink behind
run_pipeline_from_spectra and koth-ms’s run_pipeline.
impl PipelineSink for FeatureFindingOutput
Collecting everything into owned vectors: the sink behind
run_pipeline_from_spectra and koth-ms’s run_pipeline.
Source§fn on_hills(&mut self, hills: Vec<Hill>)
fn on_hills(&mut self, hills: Vec<Hill>)
hill_ids (post-split, post-filter) and are identical to
the rows of hills.{tsv,parquet}. Ownership is transferred: feature
structs already hold their own (cheap, Arc-backed) hill clones, so the
pipeline no longer needs this vector.Source§fn on_feature(&mut self, feature: ScoredFeature)
fn on_feature(&mut self, feature: ScoredFeature)
Source§fn on_ms2_hills(&mut self, hills: Vec<Hill>)
fn on_ms2_hills(&mut self, hills: Vec<Hill>)
PipelineOptions::emit_ms2 is true. Default no-op. Read moreAuto Trait Implementations§
impl Freeze for FeatureFindingOutput
impl RefUnwindSafe for FeatureFindingOutput
impl Send for FeatureFindingOutput
impl Sync for FeatureFindingOutput
impl Unpin for FeatureFindingOutput
impl UnsafeUnpin for FeatureFindingOutput
impl UnwindSafe for FeatureFindingOutput
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> 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<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
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.