Crates.io | needleman |
lib.rs | needleman |
version | 0.2.0 |
source | src |
created_at | 2023-02-25 05:48:50.135659 |
updated_at | 2023-03-01 01:56:59.08822 |
description | needleman is a needleman-wunsch algorithm implement |
homepage | https://github.com/chuxiuhong/needleman |
repository | https://github.com/chuxiuhong/needleman |
max_upload_size | |
id | 794189 |
size | 10,354 |
needleman is a needleman-wunsch algorithm implement in Rust.
Add it to your Cargo.toml
needleman = "*"
use needleman::needleman::needleman;
let s1 = "ACTA";
let s2 = "CGAC";
// match_score = 4, mismatch_score=-3, gap_score=-4, ignore_case=true,anychar='N'
let ag = needleman(s1,s2,4,-3,-4,true,'N');
println!("score = {}",ag.score);
println!("align1 = {}, align2 = {}",ag.res1,ag.res2);
Banded needleman
use needleman::needleman::kband_needleman;
let s1 = "ACTA";
let s2 = "CGAC";
let ag = kband_needleman(s1,s2,0,-1,-1,true,'N');
println!("score = {}",ag.score);
println!("align1 = {}, align2 = {}",ag.res1,ag.res2);
println!("k_band = {}",ag.k_band);