pub struct IonScalar {
pub ion_id: u32,
pub peptide_id: u32,
pub sequence: String,
pub charge: i8,
pub relative_abundance: f32,
pub mz: f64,
pub ccs: f64,
pub inv_mobility_std: f64,
pub simulated_spectrum: MzSpectrum,
pub condition_id: Option<i64>,
}Expand description
Scalar-native ion: trunk physics with no scan-occurrence vectors. Stores CCS
as canonical; 1/K0 is derived per instrument via inv_mobility.
Fields§
§ion_id: u32§peptide_id: u32§sequence: String§charge: i8§relative_abundance: f32§mz: f64§ccs: f64§inv_mobility_std: f64Legacy mobility spread (conformer width) in 1/K0 units as stored — not
CCS-space (renamed from a misleading ccs_std). Transforming the spread
into CCS space is deferred; until then read it as a 1/K0 std.
Held as f64 (DB column is REAL) so the scan-distribution projection reads it at the precision the column writer used (see PeptideScalar::rt_mu).
simulated_spectrum: MzSpectrumIsotope composition (m/z + relative intensity), pre-detector.
condition_id: Option<i64>Implementations§
Source§impl IonScalar
impl IonScalar
Sourcepub fn inv_mobility(&self, env: &MobilityEnv) -> f64
pub fn inv_mobility(&self, env: &MobilityEnv) -> f64
Derive this ion’s 1/K0 under the given instrument mobility environment.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IonScalar
impl RefUnwindSafe for IonScalar
impl Send for IonScalar
impl Sync for IonScalar
impl Unpin for IonScalar
impl UnsafeUnpin for IonScalar
impl UnwindSafe for IonScalar
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.