fn compare_to_full_alignment_local(x: TextSlice<'_>, y: TextSlice<'_>) {
        let score = |a: u8, b: u8| if a == b { 1i32 } else { -1i32 };

        let mut banded_aligner =
            banded::Aligner::with_capacity(x.len(), y.len(), -5, -1, &score, 10, 10);
        let banded_alignment = banded_aligner.local(x, y);
        // banded_aligner.visualize(&banded_alignment);

        let mut full_aligner = pairwise::Aligner::with_capacity(x.len(), y.len(), -5, -1, &score);
        let full_alignment = full_aligner.local(x, y);

        assert_eq!(banded_alignment, full_alignment);
    }
// Check that the banded alignment is equivalent to the exhaustive SW alignment
Check that the banded alignment is equivalent to the exhaustive SW alignment
Check that the banded alignment is equivalent to the exhaustive SW alignment
fn compare_to_full_alignment_local(x: TextSlice<'_>, y: TextSlice<'_>) {
        let score = |a: u8, b: u8| if a == b { 1i32 } else { -1i32 };
        let mut banded_aligner =
            banded::Aligner::with_capacity(x.len(), y.len(), -5, -1, &score, 10, 10);
        let banded_alignment = banded_aligner.local(x, y);
        // banded_aligner.visualize(&banded_alignment);
        let mut full_aligner = pairwise::Aligner::with_capacity(x.len(), y.len(), -5, -1, &score);
        let full_alignment = full_aligner.local(x, y);
        assert_eq!(banded_alignment, full_alignment);
    }
fn compare_to_full_alignment_local ( x : TextSlice < ' _ > , y : TextSlice < ' _ > ) { let score = | a : u8 , b : u8 | if a == b { 1i32 } else { - 1i32 } ; let mut banded_aligner = banded :: Aligner :: with_capacity ( x . len ( ) , y . len ( ) , - 5 , - 1 , & score , 10 , 10 ) ; let banded_alignment = banded_aligner . local ( x , y ) ; // banded_aligner.visualize(&banded_alignment); let mut full_aligner = pairwise :: Aligner :: with_capacity ( x . len ( ) , y . len ( ) , - 5 , - 1 , & score ) ; let full_alignment = full_aligner . local ( x , y ) ; assert_eq ! ( banded_alignment full_alignment ) ; }
Check that the banded alignment is equivalent to the exhaustive SW alignment
Check that the banded alignment is equivalent to the exhaustive SW alignment
x
TextSlice<'_>
y
TextSlice<'_>
x
TextSlice<'_>
y
TextSlice<'_>