mutexpect 0.2.7

Utility functions for determining potential point mutations in a genetic sequence and their statisical probability
Documentation
pub struct PointMutation {
    pub chromosome: String,
    pub position: usize,
    pub reference: char,
    pub alternative: char,
}

pub struct Indel {
    pub chromosome: String,
    pub position: usize,
    pub anchor: char,
    pub deleted: Vec<char>,
    pub inserted: Vec<char>,
}

impl Indel {
    pub fn is_inframe(&self) -> bool {
        let net_length: isize = self.inserted.len() as isize - self.deleted.len() as isize;
        net_length.rem_euclid(3) == 0
    }
}