pub struct Protease {
pub n_term: Vec<Option<Vec<AminoAcid>>>,
pub c_term: Vec<Option<Vec<AminoAcid>>>,
}
Expand description
A protease defined by it ability to cut at any site identified by the right amino acids at the n and c terminal.
Each position is identified by an option, a none means that there is no specificity at this position. If there is
a specificity at a certain position any amino acid that is contained in the set is allowed (see AminoAcid::canonical_identical
).
Fields§
§n_term: Vec<Option<Vec<AminoAcid>>>
The amino acids n terminal of the cut site.
c_term: Vec<Option<Vec<AminoAcid>>>
The amino acids c terminal of the cut site.
Implementations§
source§impl Protease
impl Protease
sourcepub fn new(n_term: &[AminoAcid], c_term: &[AminoAcid]) -> Self
pub fn new(n_term: &[AminoAcid], c_term: &[AminoAcid]) -> Self
Define a simple protease that cuts exactly between the specified sequences.
sourcepub fn n_terminal_of(residues: &[AminoAcid]) -> Self
pub fn n_terminal_of(residues: &[AminoAcid]) -> Self
Define a protease that cuts on the n terminal side of the provided amino acids.
sourcepub fn c_terminal_of(residues: &[AminoAcid]) -> Self
pub fn c_terminal_of(residues: &[AminoAcid]) -> Self
Define a protease that cuts on the c terminal side of the provided amino acids.
sourcepub fn match_locations(&self, sequence: &[SequenceElement]) -> Vec<usize>
pub fn match_locations(&self, sequence: &[SequenceElement]) -> Vec<usize>
All locations in the given sequence where this protease could cut
Auto Trait Implementations§
impl Freeze for Protease
impl RefUnwindSafe for Protease
impl Send for Protease
impl Sync for Protease
impl Unpin for Protease
impl UnwindSafe for Protease
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