40 #ifndef _VERTEBRATEMITOCHONDRIALGENETICCODE_H_ 41 #define _VERTEBRATEMITOCHONDRIALGENETICCODE_H_ 44 #include "../Alphabet/NucleicAlphabet.h" 69 std::vector<int> v(4);
78 std::vector<std::string> v(4);
89 return (state == 48 || state == 50 || state == 8 || state == 10);
94 return (i == 48 || i == 50 || i == 8 || i == 10);
100 return (state == 12 || state == 13 || state == 15 || state == 46);
105 return (i == 12 || i == 13 || i == 15 || i == 46);
112 #endif //_VERTEBRATEMITOCHONDRIALGENETICCODE_H_ bool isStop(int state) const
Tells is a particular codon is a stop codon.
size_t getNumberOfStopCodons() const
An alphabet exception thrown when trying to specify a bad char to the alphabet.
virtual ~VertebrateMitochondrialGeneticCode()
int charToInt(const std::string &state) const
Give the int description of a state given its string description.
This alphabet is used to deal NumericAlphabet.
bool isAltStart(const std::string &state) const
Tells is a particular codon is an alternative start codon.
virtual VertebrateMitochondrialGeneticCode * clone() const
This class implements the vertebrate mitochondrial genetic code as describe on the NCBI web site: htt...
CodonAlphabet codonAlphabet_
std::vector< std::string > getStopCodonsAsChar() const
std::vector< int > getStopCodonsAsInt() const
bool isStop(const std::string &state) const
Tells is a particular codon is a stop codon.
bool isAltStart(int state) const
Tells is a particular codon is an alternative start codon.
VertebrateMitochondrialGeneticCode(const NucleicAlphabet *alphabet)
An alphabet exception thrown when trying to specify a bad int to the alphabet.
Partial implementation of the Transliterator interface for genetic code object.
The abstract base class for nucleic alphabets.
std::string intToChar(int state) const
Give the string description of a state given its int description.