[][src]Struct census_proteomics::Peptide

pub struct Peptide<'s> {
    pub sequence: &'s str,
    pub values: Vec<u32>,
    pub unique: bool,
}

Peptide-level TMT quantification data

Fields

sequence: &'s str

Peptide sequence

values: Vec<u32>

Raw isobaric ion intensity values

unique: bool

Is this a unique peptide?

Methods

impl<'s> Peptide<'s>[src]

pub fn tryptic(&self) -> bool[src]

Return a boolean indicating whether the peptide has 2 tryptic sites

pub fn ratios(&self) -> Vec<f64>[src]

Return a vector of normalized ratios, where the signal intensity for each channel is divided by the sum of all channels

pub fn swap_channels(&mut self, a: usize, b: usize)[src]

Swap channels A and B, which are 0 indexed into the peptide values vector.

May panic

May panic if A or B exceed the length of the vector

Trait Implementations

impl<'s> Clone for Peptide<'s>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'s> PartialOrd<Peptide<'s>> for Peptide<'s>[src]

impl<'s> PartialEq<Peptide<'s>> for Peptide<'s>[src]

impl<'s> Debug for Peptide<'s>[src]

Auto Trait Implementations

impl<'s> Send for Peptide<'s>

impl<'s> Sync for Peptide<'s>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]