pub struct AlignParams {
pub gap_open: f64,
pub gap_ext: f64,
}Expand description
Affine-gap penalties, on the same scale as CostModel costs ([0, 1] per step).
Defaults are the spike-validated values (notebook 001–003).
Fields§
§gap_open: f64Cost of the first step of a gap run.
gap_ext: f64Cost of each further step extending an open gap run.
Implementations§
Source§impl AlignParams
impl AlignParams
Sourcepub fn validated(self) -> Result<Self, ParamError>
pub fn validated(self) -> Result<Self, ParamError>
Check the aligner’s invariants, passing self through unchanged when they hold.
§Errors
The first violated invariant, as a ParamError.
Trait Implementations§
Source§impl Clone for AlignParams
impl Clone for AlignParams
Source§fn clone(&self) -> AlignParams
fn clone(&self) -> AlignParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AlignParams
Source§impl Debug for AlignParams
impl Debug for AlignParams
Source§impl Default for AlignParams
impl Default for AlignParams
Source§impl PartialEq for AlignParams
impl PartialEq for AlignParams
impl StructuralPartialEq for AlignParams
Auto Trait Implementations§
impl Freeze for AlignParams
impl RefUnwindSafe for AlignParams
impl Send for AlignParams
impl Sync for AlignParams
impl Unpin for AlignParams
impl UnsafeUnpin for AlignParams
impl UnwindSafe for AlignParams
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