Skip to main content

ProteinSequence

Type Alias ProteinSequence 

Source
pub type ProteinSequence = ValidatedSeq<ProteinAlphabet>;
Expand description

A validated protein/amino acid sequence.

Aliased Type§

pub struct ProteinSequence { /* private fields */ }

Implementations§

Source§

impl ProteinSequence

Source

pub fn molecular_weight(&self) -> f64

Estimated molecular weight in Daltons.

Sum of residue weights minus (n-1) water molecules lost in peptide bonds.

Source

pub fn kmers(&self, k: usize) -> Result<KmerIter<'_>>

Iterate over k-mers of length k.