align

Function align 

Source
pub fn align<const STEPS: u16, A: HasPeptidoform<SimpleLinear>, B: HasPeptidoform<SimpleLinear>>(
    seq_a: A,
    seq_b: B,
    scoring: AlignScoring<'_>,
    align_type: AlignType,
) -> Alignment<A, B>
Expand description

Create an alignment of two peptides based on mass and homology. The substitution matrix is in the exact same order as the definition of AminoAcid. The AlignScoring sets the rules and exact scores while scoring. The AlignType controls the alignment behaviour, global/local or anything in between.

ยงPanics

It panics when the length of seq_a or seq_b is bigger than isize::MAX.