Class Specialization
AminoAcid
Iupac code for amino acids.
AminoAcid
Specialization of
Implements
Metafunctions
IsSimpleTests type to be simple. (SimpleType)
SpecThe spec of a class. (SimpleType)
ValueType of the items in the container. (SimpleType)
Functions
assignAssigns one object to another object. (SimpleType)
convertResidueToFrequencyDistCoverts a residue to a frequency distribution (profile).
ordValueMaps an alphabet 1-to-1 to the interval [0..ValueSize). (SimpleType)
Remarks
The ValueSize of AminoAcid is 24.
The amino acids are enumerated from 0 to 15 in this order:
'A'=0, 'R', 'N', 'D', 'C', 'Q', 'E', 'G', 'H', 'I', 'L', 'K', 'M', 'F', 'P', 'S', 'T', 'W', 'Y', 'V'=19.
The remaining 4 symbols are:
'B'=20 (Aspartic Acid, Asparagine), 'Z'=21 (Glutamic Acid, Glutamine), 'X'=22 (unknown), '*'=23 (terminator)
Objects of type AminoAcid can be converted to char and vice versa. Unkown values are converted to 'X'.
AminoAcid is typedef for SimpleType<char,_AminoAcid>, while _AminoAcid is a helper specialization tag class.
Example Programs
SeqAn - Sequence Analysis Library - www.seqan.de