aa-similarity

stability-experimental Rust Documentation Crates.io version

Usage

Add the following to your Cargo.toml

toml [dependencies] aa-similarity = "0.1.0"

Examples

```rust use aa_similarity::{Blosum65, Similarity, AminoAcid};

assert_eq!( Blosum65::similarity( AminoAcid::GlutamicAcid, AminoAcid::AsparticAcid ), 2 ); ```

aa-similarity re-exports AminoAcid from [aa-name]. Amino acids from an alignment can be converted from chars or string like so:

```rust use aa_similarity::{Blosum62, Similarity, AminoAcid};

let ala = AminoAcid::tryfrom('A')?; let tyr = AminoAcid::tryfrom('Y')?;

assert_eq!(Blosum62::similarity(ala, tyr), -2); ```

See: [aa-name].

Supported matrices

Source: ftp://ftp.ncbi.nih.gov/blast/matrices/

Contributing

The project is maintained by Jean Manguy. Please submit a bug report or a feature request on the Github issues page.

License

aa-similarity is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT for details.