Skip to main content

MultiLayerIonMobilityFrame

Struct MultiLayerIonMobilityFrame 

Source
pub struct MultiLayerIonMobilityFrame<C: FeatureLike<MZ, IonMobility> = Feature<MZ, IonMobility>, D: FeatureLike<Mass, IonMobility> + KnownCharge = ChargedFeature<Mass, IonMobility>> {
    pub arrays: Option<BinaryArrayMap3D>,
    pub features: Option<FeatureMap<MZ, IonMobility, C>>,
    pub deconvoluted_features: Option<FeatureMap<Mass, IonMobility, D>>,
    pub description: IonMobilityFrameDescription,
}
Expand description

An ion mobility dimension-equivalent of MultiLayerSpectrum.

An ion mobility frame is just like a mass spectrum, except the signal is spread across multiple ion mobility “points”. This means that instead producing “points” in the mass coordinate system, this produces traces-over-time or “features”.

An ion mobility frames can usually be inter-converted with spectra.

Fields§

§arrays: Option<BinaryArrayMap3D>

The raw data arrays, split by ion mobility point

§features: Option<FeatureMap<MZ, IonMobility, C>>

The (potentially absent) m/z coordinate feature map

§deconvoluted_features: Option<FeatureMap<Mass, IonMobility, D>>

The (potentially absent) neutral mass coordinate feature map

§description: IonMobilityFrameDescription

Implementations§

Source§

impl<C: FeatureLike<MZ, IonMobility> + BuildFromArrayMap3D, D: FeatureLike<Mass, IonMobility> + KnownCharge + BuildFromArrayMap3D> MultiLayerIonMobilityFrame<C, D>

Source

pub fn try_build_features( &mut self, ) -> Result<RefFeatureDataLevel<'_, C, D>, SpectrumConversionError>

Try to build extracted feature maps from the raw BinaryArrayMap3D

This fails if the BinaryArrayMap3D is not present, or if the required arrays for C and D are absent.

Source§

impl<C: FeatureLike<MZ, IonMobility>, D: FeatureLike<Mass, IonMobility> + KnownCharge> MultiLayerIonMobilityFrame<C, D>

Source

pub fn new( arrays: Option<BinaryArrayMap3D>, features: Option<FeatureMap<MZ, IonMobility, C>>, deconvoluted_features: Option<FeatureMap<Mass, IonMobility, D>>, description: IonMobilityFrameDescription, ) -> Self

Create a new MultiLayerIonMobilityFrame from a IonMobilityFrameDescription and any/all/none of the different levels of processing details for signal data.

Trait Implementations§

Source§

impl<C: Clone + FeatureLike<MZ, IonMobility>, D: Clone + FeatureLike<Mass, IonMobility> + KnownCharge> Clone for MultiLayerIonMobilityFrame<C, D>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<C: Debug + FeatureLike<MZ, IonMobility>, D: Debug + FeatureLike<Mass, IonMobility> + KnownCharge> Debug for MultiLayerIonMobilityFrame<C, D>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<C: Default + FeatureLike<MZ, IonMobility>, D: Default + FeatureLike<Mass, IonMobility> + KnownCharge> Default for MultiLayerIonMobilityFrame<C, D>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<C: FeatureLike<MZ, IonMobility>, D: FeatureLike<Mass, IonMobility> + KnownCharge> IonMobilityFrameLike<C, D> for MultiLayerIonMobilityFrame<C, D>

Source§

fn description(&self) -> &IonMobilityFrameDescription

The method to access the spectrum description itself, which supplies the data for most other methods on this trait.
Source§

fn description_mut(&mut self) -> &mut IonMobilityFrameDescription

The method to access the spectrum descript itself, mutably.
Source§

fn raw_arrays(&self) -> Option<&BinaryArrayMap3D>

Obtain a reference to the BinaryArrayMap3D if one is available for the feature information. This may not be the most refined version of the feature signal if it has been processed further.
Source§

fn features(&self) -> RefFeatureDataLevel<'_, C, D>

Retrieve the most processed representation of the ion mobility frame’s signal
Source§

fn into_features_and_parts( self, ) -> (FeatureDataLevel<C, D>, IonMobilityFrameDescription)

Consume the ion mobility frame, decomposing it into the IonMobilityFrameDescription and an owning FeatureDataLevel. Read more
Source§

fn ion_mobility_unit(&self) -> Unit

The unit of measure of the ion mobility dimension
Source§

fn ion_mobility_unit_mut(&mut self) -> &mut Unit

Get a mutable reference to the ion mobility dimension’s unit
Source§

fn acquisition(&self) -> &Acquisition

Access the acquisition information for this frame.
Source§

fn precursor(&self) -> Option<&Precursor>

Access the precursor information, if it exists.
Source§

fn precursor_iter(&self) -> impl Iterator<Item = &Precursor> + ExactSizeIterator

Iterate over all precursors of the frame
Source§

fn precursor_count(&self) -> usize

The number of precursor levels recorded
Source§

fn precursor_mut(&mut self) -> Option<&mut Precursor>

Mutably access the precursor information, if it exists
Source§

fn precursor_iter_mut( &mut self, ) -> impl Iterator<Item = &mut Precursor> + ExactSizeIterator

Iterate over all precursors of the frame mutably
Source§

fn add_precursor(&mut self, precursor: Precursor)

Add a precursor to the list of precursors for this frame. Read more
Source§

fn remove_precursor(&mut self, index: usize) -> Precursor

Remove the precursor entry at index in the precursor list. Read more
Source§

fn start_time(&self) -> f64

A shortcut method to retrieve the scan start time of a spectrum
Source§

fn ms_level(&self) -> u8

Access the MS exponentiation level
Source§

fn id(&self) -> &str

Access the native ID string for the spectrum
Source§

fn index(&self) -> usize

Access the index of the spectrum in the source file
Source§

fn signal_continuity(&self) -> SignalContinuity

Access a description of how raw the signal is, whether a profile spectrum is available or only centroids are present. Read more
Source§

fn polarity(&self) -> ScanPolarity

Access a description of the spectrum polarity
Source§

impl<C: FeatureLike<MZ, IonMobility>, D: FeatureLike<Mass, IonMobility> + KnownCharge> ParamDescribed for MultiLayerIonMobilityFrame<C, D>

Source§

fn params(&self) -> &[Param]

Obtain an immutable slice over the encapsulated Param list
Source§

fn params_mut(&mut self) -> &mut ParamList

Obtain an mutable slice over the encapsulated Param list
Source§

fn add_param(&mut self, param: Param)

Add a new Param to the entity
Source§

fn extend_params(&mut self, it: impl IntoIterator<Item = Param>)

Add all parameters from an iterator of Param to the entity
Source§

fn remove_param(&mut self, index: usize) -> Param

Remove the ith Param from the entity.
Source§

fn get_param_by_name(&self, name: &str) -> Option<&Param>

Find the first Param whose name matches name
Source§

fn get_param_by_curie(&self, curie: &CURIE) -> Option<&Param>

Find the first Param whose CURIE matches curie
Source§

fn get_param_by_accession(&self, accession: &str) -> Option<&Param>

Find the first Param whose Param::accession matches accession Read more
Source§

fn iter_params(&self) -> Iter<'_, Param> ⓘ

Iterate over the encapsulated parameter list
Source§

fn iter_params_mut(&mut self) -> IterMut<'_, Param> ⓘ

Iterate mutably over the encapsulated parameter list
Source§

impl<C: FeatureLike<MZ, IonMobility> + BuildArrayMap3DFrom, D: FeatureLike<Mass, IonMobility> + KnownCharge + BuildArrayMap3DFrom> TryFrom<MultiLayerIonMobilityFrame<C, D>> for RawSpectrum

A MultiLayerIonMobilityFrame can be converted to RawSpectrum by flattening the feature data into a BinaryArrayMap.

Source§

type Error = ArrayRetrievalError

The type returned in the event of a conversion error.
Source§

fn try_from( value: MultiLayerIonMobilityFrame<C, D>, ) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<CFeat: FeatureLike<MZ, IonMobility> + BuildArrayMap3DFrom, DFeat: FeatureLike<Mass, IonMobility> + KnownCharge + BuildArrayMap3DFrom, CPeak: CentroidLike + BuildFromArrayMap, DPeak: DeconvolutedCentroidLike + BuildFromArrayMap> TryFrom<MultiLayerIonMobilityFrame<CFeat, DFeat>> for MultiLayerSpectrum<CPeak, DPeak>

A MultiLayerIonMobilityFrame can be converted to MultiLayerSpectrum by flattening the feature data into a BinaryArrayMap.

Source§

type Error = ArrayRetrievalError

The type returned in the event of a conversion error.
Source§

fn try_from( value: MultiLayerIonMobilityFrame<CFeat, DFeat>, ) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<CFeat: FeatureLike<MZ, IonMobility>, DFeat: FeatureLike<Mass, IonMobility> + KnownCharge, CPeak: CentroidLike, DPeak: DeconvolutedCentroidLike> TryFrom<MultiLayerSpectrum<CPeak, DPeak>> for MultiLayerIonMobilityFrame<CFeat, DFeat>

§Errors

This will fail if BinaryArrayMap3D::stack fails

Source§

type Error = ArrayRetrievalError

The type returned in the event of a conversion error.
Source§

fn try_from( value: MultiLayerSpectrum<CPeak, DPeak>, ) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<CFeat: FeatureLike<MZ, IonMobility>, DFeat: FeatureLike<Mass, IonMobility> + KnownCharge> TryFrom<RawSpectrum> for MultiLayerIonMobilityFrame<CFeat, DFeat>

RawSpectrum instances can be converted to MultiLayerIonMobilityFrame by using BinaryArrayMap3D::stack on the flat RawSpectrum::arrays.

§Errors

This will fail if BinaryArrayMap3D::stack fails

Source§

type Error = ArrayRetrievalError

The type returned in the event of a conversion error.
Source§

fn try_from(value: RawSpectrum) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.