pub struct AlignType {
pub left: Side,
pub right: Side,
}Expand description
The type of alignment to perform
Fields§
§left: SideThe settings for the left side
right: SideThe settings for the right side
Implementations§
Source§impl AlignType
impl AlignType
Sourcepub const GLOBAL: Self
pub const GLOBAL: Self
Global alignment, which tries to find the best alignment to link both sequences fully to each other, like the Needleman Wunsch algorithm
Sourcepub const LOCAL: Self
pub const LOCAL: Self
Local alignment, which tries to find the best patch of both sequences to align to each other, this could lead to trailing ends on both sides of both sequences, like the Smith Waterman
Sourcepub const GLOBAL_A: Self
pub const GLOBAL_A: Self
Hybrid alignment, the first sequence will be fully aligned to the second sequence, this could lead to trailing ends on the second sequence but not on the first.
Sourcepub const GLOBAL_B: Self
pub const GLOBAL_B: Self
Hybrid alignment, the second sequence will be fully aligned to the first sequence, this could lead to trailing ends on the first sequence but not on the second.
Sourcepub const GLOBAL_LEFT: Self
pub const GLOBAL_LEFT: Self
Hybrid alignment, globally align the left (start) side of the alignment
Sourcepub const GLOBAL_RIGHT: Self
pub const GLOBAL_RIGHT: Self
Hybrid alignment, globally align the right (end) side of the alignment
Sourcepub const EITHER_GLOBAL: Self
pub const EITHER_GLOBAL: Self
Alignment where on both side either of the sequences has to be aligned globally, see Side::EitherGlobal.
Sourcepub fn description(self) -> String
pub fn description(self) -> String
Get a descriptive name for this alignment type
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AlignType
impl<'de> Deserialize<'de> for AlignType
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>,
Source§impl Ord for AlignType
impl Ord for AlignType
Source§impl PartialOrd for AlignType
impl PartialOrd for AlignType
impl Copy for AlignType
impl Eq for AlignType
impl StructuralPartialEq for AlignType
Auto Trait Implementations§
impl Freeze for AlignType
impl RefUnwindSafe for AlignType
impl Send for AlignType
impl Sync for AlignType
impl Unpin for AlignType
impl UnwindSafe for AlignType
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
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
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>
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>
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