use libwfa2::affine_wavefront::AffineWavefronts; pub fn main() { println!("Example1\n"); let aligner = AffineWavefronts::default(); // pattern means query let pattern = b"TCTTTACTCGCGCGTTGGAGAAATACAATAGT"; // Text means reference let text = b"TCTATACTGCGCGTTTGGAGAAATAAAATAGT"; aligner.align(pattern, text); println!("Pattern: {}", String::from_utf8_lossy(pattern)); println!("Text: {}\n", String::from_utf8_lossy(text)); println!("Score: {}", aligner.score()); println!("Cigar: {}", String::from_utf8_lossy(aligner.cigar())); }