INNER CODE UNIT · Rust

new

google/best · src/stats.rs:197

    pub fn new(stats: &AlnStats) -> Self {
        Self {
            num_reads: 1,
            matches: stats.matches,
            mismatches: stats.mismatches,
            non_hp_ins: stats.non_hp_ins,
            non_hp_del: stats.non_hp_del,
            hp_ins: stats.hp_ins,
            hp_del: stats.hp_del,
        }
    }

    pub fn assign_add(&mut self, o: &Self) {
        self.num_reads += o.num_reads;
        self.matches += o.matches;
        self.mismatches += o.mismatches;
        self.non_hp_ins += o.non_hp_ins;
        self.non_hp_del += o.non_hp_del;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…