INNER CODE UNIT · Rust
GAP_OPEN
David-OConnor/plascad · src/alignment.rs:7
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 {
Self::Dna