/// Create new Scoring instance with given gap open, gap extend penalties
/// match and mismatch scores. 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_score` - the score for a match
/// * `mismatch_score` - the score for a mismatch
Create new Scoring instance with given gap open, gap extend penalties
match and mismatch scores. The clip penalties are set to `MIN_SCORE` by default
Create new Scoring instance with given gap open gap extend penalties match and mismatch scores . The clip penalties are set to ` MIN_SCORE ` by default
pub fn from_scores(
        gap_open: i32,
        gap_extend: i32,
        match_score: i32,
        mismatch_score: i32,
    ) -> 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: MatchParams::new(match_score, mismatch_score),
            match_scores: Some((match_score, mismatch_score)),
            xclip_prefix: MIN_SCORE,
            xclip_suffix: MIN_SCORE,
            yclip_prefix: MIN_SCORE,
            yclip_suffix: MIN_SCORE,
        }
    }
pub fn from_scores ( gap_open : i32 , gap_extend : i32 , match_score : i32 , mismatch_score : i32 , ) -> Self { assert ! ( gap_open 0 " " ) ; assert ! ( gap_extend 0 " " ) ; Scoring { gap_open , gap_extend , match_fn : MatchParams :: new ( match_score , mismatch_score ) , match_scores : Some ( ( match_score , mismatch_score ) ) , 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
match and mismatch scores.
Create new Scoring instance with given gap open gap extend penalties match and mismatch scores .
gap_open
i32
gap_extend
i32
match_score
i32
mismatch_score
i32