needleman

Crates.ioneedleman
lib.rsneedleman
version0.2.0
sourcesrc
created_at2023-02-25 05:48:50.135659
updated_at2023-03-01 01:56:59.08822
descriptionneedleman is a needleman-wunsch algorithm implement
homepagehttps://github.com/chuxiuhong/needleman
repositoryhttps://github.com/chuxiuhong/needleman
max_upload_size
id794189
size10,354
(chuxiuhong)

documentation

https://docs.rs/crate/needleman

README

needleman

needleman is a needleman-wunsch algorithm implement in Rust.

Installation

Add it to your Cargo.toml

needleman = "*"

Usage

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);
Commit count: 9

cargo fmt