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§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§
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> 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