pub enum AminoAcid {
Show 26 variants
Alanine = 0,
Arginine = 1,
Asparagine = 2,
AsparticAcid = 3,
Cysteine = 4,
Glutamine = 5,
GlutamicAcid = 6,
Glycine = 7,
Histidine = 8,
Isoleucine = 9,
Leucine = 10,
AmbiguousLeucine = 11,
Lysine = 12,
Methionine = 13,
Phenylalanine = 14,
Proline = 15,
Serine = 16,
Threonine = 17,
Tryptophan = 18,
Tyrosine = 19,
Valine = 20,
Selenocysteine = 21,
Pyrrolysine = 22,
Unknown = 23,
AmbiguousAsparagine = 24,
AmbiguousGlutamine = 25,
}Expand description
An amino acid, alongside the standard ones some ambiguous (J/X) and non-standard (U/O) are included. https://www.insdc.org/submitting-standards/feature-table/#7.4.3
Variants§
Alanine = 0
Arginine = 1
Asparagine = 2
AsparticAcid = 3
Cysteine = 4
Glutamine = 5
GlutamicAcid = 6
Glycine = 7
Histidine = 8
Isoleucine = 9
Leucine = 10
AmbiguousLeucine = 11
Lysine = 12
Methionine = 13
Phenylalanine = 14
Proline = 15
Serine = 16
Threonine = 17
Tryptophan = 18
Tyrosine = 19
Valine = 20
Selenocysteine = 21
Pyrrolysine = 22
Unknown = 23
AmbiguousAsparagine = 24
AmbiguousGlutamine = 25
Implementations§
source§impl AminoAcid
impl AminoAcid
pub const A: Self = Self::Alanine
pub const B: Self = Self::AmbiguousAsparagine
pub const C: Self = Self::Cysteine
pub const D: Self = Self::AsparticAcid
pub const E: Self = Self::GlutamicAcid
pub const F: Self = Self::Phenylalanine
pub const G: Self = Self::Glycine
pub const H: Self = Self::Histidine
pub const I: Self = Self::Isoleucine
pub const J: Self = Self::AmbiguousLeucine
pub const K: Self = Self::Lysine
pub const L: Self = Self::Leucine
pub const M: Self = Self::Methionine
pub const N: Self = Self::Asparagine
pub const O: Self = Self::Pyrrolysine
pub const P: Self = Self::Proline
pub const Q: Self = Self::Glutamine
pub const R: Self = Self::Arginine
pub const S: Self = Self::Serine
pub const T: Self = Self::Threonine
pub const U: Self = Self::Selenocysteine
pub const V: Self = Self::Valine
pub const W: Self = Self::Tryptophan
pub const X: Self = Self::Unknown
pub const Y: Self = Self::Tyrosine
pub const Z: Self = Self::AmbiguousGlutamine
pub const Ala: Self = Self::Alanine
pub const Cys: Self = Self::Cysteine
pub const Asn: Self = Self::Asparagine
pub const Asp: Self = Self::AsparticAcid
pub const Asx: Self = Self::AmbiguousAsparagine
pub const Glu: Self = Self::GlutamicAcid
pub const Phe: Self = Self::Phenylalanine
pub const Gly: Self = Self::Glycine
pub const His: Self = Self::Histidine
pub const Ile: Self = Self::Isoleucine
pub const Xle: Self = Self::AmbiguousLeucine
pub const Lys: Self = Self::Lysine
pub const Leu: Self = Self::Leucine
pub const Met: Self = Self::Methionine
pub const Pyl: Self = Self::Pyrrolysine
pub const Pro: Self = Self::Proline
pub const Gln: Self = Self::Glutamine
pub const Glx: Self = Self::AmbiguousGlutamine
pub const Arg: Self = Self::Arginine
pub const Ser: Self = Self::Serine
pub const Thr: Self = Self::Threonine
pub const Sec: Self = Self::Selenocysteine
pub const Val: Self = Self::Valine
pub const Trp: Self = Self::Tryptophan
pub const Tyr: Self = Self::Tyrosine
pub const Xaa: Self = Self::Unknown
pub fn satellite_ion_fragments(&self) -> Vec<MolecularFormula>
pub fn fragments( &self, n_term: &[(MolecularFormula, String)], c_term: &[(MolecularFormula, String)], modifications: &MolecularFormula, charge_carriers: &MolecularCharge, sequence_index: usize, sequence_length: usize, ions: &PossibleIons<'_>, peptide_index: usize ) -> Vec<Fragment>
pub const fn char(&self) -> char
Trait Implementations§
source§impl Chemical for AminoAcid
impl Chemical for AminoAcid
source§fn formula(&self) -> MolecularFormula
fn formula(&self) -> MolecularFormula
Get the molecular formula
source§impl<'de> Deserialize<'de> for AminoAcid
impl<'de> Deserialize<'de> for AminoAcid
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for AminoAcid
impl Ord for AminoAcid
source§impl PartialEq for AminoAcid
impl PartialEq for AminoAcid
source§impl PartialOrd for AminoAcid
impl PartialOrd for AminoAcid
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for AminoAcid
impl Eq for AminoAcid
impl StructuralEq for AminoAcid
impl StructuralPartialEq for AminoAcid
Auto Trait Implementations§
impl RefUnwindSafe for AminoAcid
impl Send for AminoAcid
impl Sync for AminoAcid
impl Unpin for AminoAcid
impl UnwindSafe for AminoAcid
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
§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.