seal 0.1.6

Implementation of Needleman-Wunsch & Smith-Waterman sequence alignment.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::pair::{cursor::Cursor, step_mask::StepMask};

pub mod in_memory;
pub mod memory_mapped;

pub trait AlignmentMatrix: Sized {
    type Error;

    fn new(width: usize, height: usize) -> Result<Self, Self::Error>;

    fn width(&self) -> usize;
    fn height(&self) -> usize;

    fn at(&self, cursor: &Cursor) -> StepMask;
    fn set_at(&mut self, cursor: &Cursor, step_mask: StepMask);
}