/// Create new Scoring instance with given gap open, gap extend penalties
/// and the score function. The clip penalties are set to MIN_SCORE by default
///
/// # Arguments
///
/// * `gap_open` - the score for opening a gap (should not be positive)
/// * `gap_extend` - the score for extending a gap (should not be positive)
/// * `match_fn` - function that returns the score for substitutions (also see bio::scores)
Create new Scoring instance with given gap open, gap extend penalties
and the score function. The clip penalties are set to MIN_SCORE by default
Create new Scoring instance with given gap open gap extend penalties and the score function . The clip penalties are set to MIN_SCORE by default
pub fn new(gap_open: i32, gap_extend: i32, match_fn: F) -> Self {
        assert!(gap_open <= 0, "gap_open can't be positive");
        assert!(gap_extend <= 0, "gap_extend can't be positive");
        Scoring {
            gap_open,
            gap_extend,
            match_fn,
            match_scores: None,
            xclip_prefix: MIN_SCORE,
            xclip_suffix: MIN_SCORE,
            yclip_prefix: MIN_SCORE,
            yclip_suffix: MIN_SCORE,
        }
    }
pub fn new ( gap_open : i32 , gap_extend : i32 , match_fn : F ) -> Self { assert ! ( gap_open 0 " " ) ; assert ! ( gap_extend 0 " " ) ; Scoring { gap_open , gap_extend , match_fn , match_scores : None , xclip_prefix : MIN_SCORE , xclip_suffix : MIN_SCORE , yclip_prefix : MIN_SCORE , yclip_suffix : MIN_SCORE , } }
Create new Scoring instance with given gap open, gap extend penalties
and the score function.
Create new Scoring instance with given gap open gap extend penalties and the score function .
gap_open
i32
gap_extend
i32
match_fn
F