Antkeeper  0.0.1
Functions
genetics::amino_acid Namespace Reference

Functions which operate on IUPAC amino acid symbols. More...

Functions

template<class Matrix >
std::remove_all_extents< Matrix >::type score (char a, char b, const Matrix &matrix)
 Scores two amino acids using a substitution matrix. More...
 

Detailed Description

Functions which operate on IUPAC amino acid symbols.

Function Documentation

◆ score()

template<class Matrix >
std::remove_all_extents< Matrix >::type genetics::amino_acid::score ( char  a,
char  b,
const Matrix &  matrix 
)

Scores two amino acids using a substitution matrix.

Parameters
aIUPAC amino acid code of first amino acid.
bIUPAC amino acid code of second amino acid.
matrixSubstitution matrix.
Returns
Score of the two amino acids.

Definition at line 42 of file amino-acid.hpp.