INNER CODE UNIT · Rust

SCORE_MISMATCH

David-OConnor/plascad · src/alignment.rs:6

const SCORE_MISMATCH: i32 = -1;
const GAP_OPEN: i32 = -5;
const GAP_EXTEND: i32 = -1;

/// Characters per row of the alignment's text display.
const DISPLAY_WIDTH: usize = 120;

/// Lower than any real score, but with room to add penalties to without overflowing.
const SCORE_NONE: i32 = i32::MIN / 4;

#[derive(Clone, Copy, PartialEq)]
pub enum AlignmentMode {
    Dna,
    AminoAcid,
}

impl Default for AlignmentMode {
    fn default() -> Self {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…