pub struct ConsecutiveAlignment<'lifetime, A> {
pub alignments: Vec<Vec<(Allele<'lifetime>, Alignment<&'lifetime Peptidoform<UnAmbiguous>, Peptidoform<A>>)>>,
}Expand description
A consecutive alignment, which align one sequence to multiple sequences.
Fields§
§alignments: Vec<Vec<(Allele<'lifetime>, Alignment<&'lifetime Peptidoform<UnAmbiguous>, Peptidoform<A>>)>>All underlying alignments, per gene there is a vector containing all options for that gene.
Implementations§
Source§impl<'lifetime, A> ConsecutiveAlignment<'lifetime, A>
impl<'lifetime, A> ConsecutiveAlignment<'lifetime, A>
Sourcepub fn main_alignment(
&self,
) -> Vec<&(Allele<'lifetime>, Alignment<&'lifetime Peptidoform<UnAmbiguous>, Peptidoform<A>>)>
pub fn main_alignment( &self, ) -> Vec<&(Allele<'lifetime>, Alignment<&'lifetime Peptidoform<UnAmbiguous>, Peptidoform<A>>)>
Get the main alignment, the alignment taking the best alignment for each gene.
Source§impl<A: AtMax<Linear>> ConsecutiveAlignment<'_, A>
impl<A: AtMax<Linear>> ConsecutiveAlignment<'_, A>
Sourcepub fn regions(&self) -> Vec<(Peptidoform<A>, Region)>
pub fn regions(&self) -> Vec<(Peptidoform<A>, Region)>
Break up in the main alignment into the regions as annotated in the alleles.
Trait Implementations§
Source§impl<'lifetime, A: Clone> Clone for ConsecutiveAlignment<'lifetime, A>
impl<'lifetime, A: Clone> Clone for ConsecutiveAlignment<'lifetime, A>
Source§fn clone(&self) -> ConsecutiveAlignment<'lifetime, A>
fn clone(&self) -> ConsecutiveAlignment<'lifetime, A>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'lifetime, A: Debug> Debug for ConsecutiveAlignment<'lifetime, A>
impl<'lifetime, A: Debug> Debug for ConsecutiveAlignment<'lifetime, A>
Source§impl<'lifetime, A: PartialEq> PartialEq for ConsecutiveAlignment<'lifetime, A>
impl<'lifetime, A: PartialEq> PartialEq for ConsecutiveAlignment<'lifetime, A>
Source§fn eq(&self, other: &ConsecutiveAlignment<'lifetime, A>) -> bool
fn eq(&self, other: &ConsecutiveAlignment<'lifetime, A>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'lifetime, A: Eq> Eq for ConsecutiveAlignment<'lifetime, A>
impl<'lifetime, A> StructuralPartialEq for ConsecutiveAlignment<'lifetime, A>
Auto Trait Implementations§
impl<'lifetime, A> Freeze for ConsecutiveAlignment<'lifetime, A>
impl<'lifetime, A> !RefUnwindSafe for ConsecutiveAlignment<'lifetime, A>
impl<'lifetime, A> Send for ConsecutiveAlignment<'lifetime, A>where
A: Send,
impl<'lifetime, A> Sync for ConsecutiveAlignment<'lifetime, A>where
A: Sync,
impl<'lifetime, A> Unpin for ConsecutiveAlignment<'lifetime, A>where
A: Unpin,
impl<'lifetime, A> !UnwindSafe for ConsecutiveAlignment<'lifetime, A>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> HighestOf<T> for T
impl<T> HighestOf<T> for T
Source§type HighestLevel = T
type HighestLevel = T
This is the highest complexity level out of Self and the type parameter
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more