Struct parasailors::Matrix [] [src]

pub struct Matrix {
    // some fields omitted
}

A substitution matrix to use when aligning DNA or protein. Can be reused in many profiles.

Methods

impl Matrix
[src]

fn new(matrix_type: MatrixType) -> Self

Either create a dynamic substitution matrix (as in MatrixType::Identity) or look up a statically allocated matrix (as in any of the native parasail PAM and BLOSUM matrices).

Examples

// create & lookup substitution matrices
let identity_matrix = Matrix::new(MatrixType::Identity);
let blosum62 = Matrix::new(MatrixType::Blosum62);
let pam120 = Matrix::new(MatrixType::Pam120);