pub struct Peptide {
pub sequence: String,
pub values: Vec<u32>,
pub unique: bool,
pub purity: f32,
pub scan: usize,
}Expand description
Peptide-level TMT quantification data
Fields§
§sequence: StringPeptide sequence
values: Vec<u32>Raw isobaric ion intensity values
unique: boolIs this a unique peptide?
purity: f32§scan: usizeImplementations§
Source§impl Peptide
impl Peptide
Sourcepub fn tryptic(&self) -> bool
pub fn tryptic(&self) -> bool
Return a boolean indicating whether the peptide has 2 tryptic sites
Sourcepub fn ratios(&self) -> Vec<f64>
pub fn ratios(&self) -> Vec<f64>
Return a vector of normalized ratios, where the signal intensity for each channel is divided by the sum of all channels
Sourcepub fn swap_channels(&mut self, a: usize, b: usize)
pub fn swap_channels(&mut self, a: usize, b: usize)
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§
Source§impl PartialOrd for Peptide
impl PartialOrd for Peptide
impl StructuralPartialEq for Peptide
Auto Trait Implementations§
impl Freeze for Peptide
impl RefUnwindSafe for Peptide
impl Send for Peptide
impl Sync for Peptide
impl Unpin for Peptide
impl UnwindSafe for Peptide
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