pub struct AlignmentRegulator { /* private fields */ }
Expand description
Definition for the alignment results.
Implementations§
Source§impl AlignmentRegulator
impl AlignmentRegulator
Sourcepub fn new(
mismatch_penalty: u32,
gap_open_penalty: u32,
gap_extend_penalty: u32,
minimum_alignment_length: u32,
maximum_penalty_per_alignment_length: f32,
) -> Result<Self, RegulatorError>
pub fn new( mismatch_penalty: u32, gap_open_penalty: u32, gap_extend_penalty: u32, minimum_alignment_length: u32, maximum_penalty_per_alignment_length: f32, ) -> Result<Self, RegulatorError>
Generate new aligner.
Sourcepub fn get_mismatch_penalty(&self) -> u32
pub fn get_mismatch_penalty(&self) -> u32
Get mismatch penalty
Sourcepub fn get_gap_open_penalty(&self) -> u32
pub fn get_gap_open_penalty(&self) -> u32
Get gap-open penalty
Sourcepub fn get_gap_extend_penalty(&self) -> u32
pub fn get_gap_extend_penalty(&self) -> u32
Get gap-extend penalty
Sourcepub fn get_minimum_length(&self) -> u32
pub fn get_minimum_length(&self) -> u32
Get minimum length
Sourcepub fn get_maximum_penalty_per_length(&self) -> f32
pub fn get_maximum_penalty_per_length(&self) -> f32
Get maximum penalty per length
Sourcepub fn get_pattern_size(&self) -> u32
pub fn get_pattern_size(&self) -> u32
Get size of pattern
Trait Implementations§
Source§impl Clone for AlignmentRegulator
impl Clone for AlignmentRegulator
Source§fn clone(&self) -> AlignmentRegulator
fn clone(&self) -> AlignmentRegulator
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 Debug for AlignmentRegulator
impl Debug for AlignmentRegulator
Source§impl Ord for AlignmentRegulator
impl Ord for AlignmentRegulator
Source§fn cmp(&self, other: &AlignmentRegulator) -> Ordering
fn cmp(&self, other: &AlignmentRegulator) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AlignmentRegulator
impl PartialEq for AlignmentRegulator
Source§impl PartialOrd for AlignmentRegulator
impl PartialOrd for AlignmentRegulator
impl Eq for AlignmentRegulator
impl StructuralPartialEq for AlignmentRegulator
Auto Trait Implementations§
impl Freeze for AlignmentRegulator
impl RefUnwindSafe for AlignmentRegulator
impl Send for AlignmentRegulator
impl Sync for AlignmentRegulator
impl Unpin for AlignmentRegulator
impl UnwindSafe for AlignmentRegulator
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