41 #ifndef _MOLDMITOCHONDRIALGENETICCODE_H_ 42 #define _MOLDMITOCHONDRIALGENETICCODE_H_ 45 #include "../Alphabet/NucleicAlphabet.h" 71 std::vector<int> v(2);
78 std::vector<std::string> v(2);
87 return (state == 48 || state == 50);
92 return (i == 48 || i == 50);
98 return (state == 12 || state == 13 || state == 15 || state == 30 || state == 46 || state == 60 || state == 62);
103 return (i == 12 || i == 13 || i == 15 || i == 30 || i == 46 || i == 60 || i == 62);
110 #endif //_MOLDMITOCHONDRIALGENETICCODE_H_ bool isAltStart(const std::string &state) const
Tells is a particular codon is an alternative start codon.
This class implements the mold, protozoan, and coelenterate mitochondrial code and the Mycoplasma/Spi...
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.
This alphabet is used to deal NumericAlphabet.
virtual ~MoldMitochondrialGeneticCode()
std::vector< std::string > getStopCodonsAsChar() const
CodonAlphabet codonAlphabet_
bool isStop(int state) const
Tells is a particular codon is a stop codon.
std::vector< int > getStopCodonsAsInt() const
bool isAltStart(int state) const
Tells is a particular codon is an alternative start codon.
bool isStop(const std::string &state) const
Tells is a particular codon is a stop codon.
MoldMitochondrialGeneticCode(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.
size_t getNumberOfStopCodons() const
virtual MoldMitochondrialGeneticCode * clone() const
The abstract base class for nucleic alphabets.
std::string intToChar(int state) const
Give the string description of a state given its int description.