Skip to main content

smith_waterman

Function smith_waterman 

Source
pub fn smith_waterman(
    query: &[u8],
    target: &[u8],
    gap: GapPenalty,
    score_fn: impl Fn(u8, u8) -> i32,
) -> AlignmentResult
Expand description

Smith-Waterman local alignment with affine gap penalties. Allocates O(m×n) DP tables — caller should respect MAX_SEQ_LEN.