needleman 0.2.0

needleman is a needleman-wunsch algorithm implement
Documentation
  • Coverage
  • 13.33%
    2 out of 15 items documented0 out of 6 items with examples
  • Size
  • Source code size: 9.88 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.64 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • chuxiuhong/needleman
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • chuxiuhong

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);