pub struct Feature {Show 17 fields
pub mass: f64,
pub mz: f64,
pub charge: u8,
pub rt: f64,
pub im: Option<f64>,
pub combined_score: f64,
pub n_contributing_runs: u32,
pub n_isotopes: Option<f64>,
pub n_scans: Option<f64>,
pub isoerror: Option<f64>,
pub isoerror2: Option<f64>,
pub rt_width: Option<f64>,
pub cosine_score: Option<f64>,
pub isotope_score: Option<f64>,
pub ppm_error: Option<f64>,
pub neutron_offset: Option<f64>,
pub intensities: Vec<f64>,
}Expand description
One LC-MS feature from a single run: a deisotoped, charge-resolved precursor mass at an apex RT, that we try to assign a peptide to.
Fields§
§mass: f64Monoisotopic neutral mass (Da).
mz: f64Monoisotopic m/z.
charge: u8§rt: f64Apex retention time (minutes).
im: Option<f64>Ion mobility (1/K0); None when the data has no IM dimension.
combined_score: f64Feature-quality score (isotope x coelution), in [0, 1]. Defaults to 1.0
when the input has no combined_score column.
n_contributing_runs: u32Number of original runs contributing to a consensus feature; always 1 for single-run input. Does not count MBR-filled intensity cells.
n_isotopes: Option<f64>Per-feature shape descriptors: number of isotopic peaks and number of
scans the feature spans (biosaur2 nIsotopes/nScans). None if absent.
n_scans: Option<f64>§isoerror: Option<f64>biosaur2 isotope-pattern fit error (deviation of the observed isotope envelope from theory) and RT peak width (minutes). Real peptides fit theory tightly; random mass coincidences (and shuffled decoys) do not.
isoerror2: Option<f64>§rt_width: Option<f64>§cosine_score: Option<f64>Per-feature PFM-quality columns. These are the target/decoy discriminators
the PFM ML rescorer relies on (the same signal ms1searchpy’s LightGBM PFM
filter uses to drop the random-match rate). None if the column is absent.
isotope_score: Option<f64>§ppm_error: Option<f64>§neutron_offset: Option<f64>§intensities: Vec<f64>One apex intensity for single-run input, or per-run integrated LFQ intensities for matrix input. The estimators are not interchangeable.
Trait Implementations§
impl StructuralPartialEq for Feature
Auto Trait Implementations§
impl Freeze for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnsafeUnpin for Feature
impl UnwindSafe for Feature
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar 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.