40 #ifndef _STANDARDGENETICCODE_H_ 41 #define _STANDARDGENETICCODE_H_ 44 #include "../Alphabet/NucleicAlphabet.h" 69 std::vector<int> v(3);
77 std::vector<std::string> v(3);
87 return (state == 48 || state == 50 || state == 56);
92 return (i == 48 || i == 50 || i == 56);
98 return (state == 62 || state == 30);
103 return (i == 62 || i == 30);
110 #endif //_STANDARDGENETICCODE_H_ virtual ~StandardGeneticCode()
std::vector< int > getStopCodonsAsInt() const
An alphabet exception thrown when trying to specify a bad char to the alphabet.
int charToInt(const std::string &state) const
Give the int description of a state given its string description.
bool isAltStart(int state) const
Tells is a particular codon is an alternative start codon.
This alphabet is used to deal NumericAlphabet.
std::vector< std::string > getStopCodonsAsChar() const
StandardGeneticCode(const NucleicAlphabet *alphabet)
bool isAltStart(const std::string &state) const
Tells is a particular codon is an alternative start codon.
CodonAlphabet codonAlphabet_
bool isStop(int state) const
Tells is a particular codon is a stop codon.
virtual StandardGeneticCode * clone() const
bool isStop(const std::string &state) const
Tells is a particular codon is a stop codon.
An alphabet exception thrown when trying to specify a bad int to the alphabet.
size_t getNumberOfStopCodons() const
Partial implementation of the Transliterator interface for genetic code object.
This class implements the standard genetic code as describe on the NCBI web site: http://www...
The abstract base class for nucleic alphabets.
std::string intToChar(int state) const
Give the string description of a state given its int description.