41 #ifndef _INVERTEBRATEMITOCHONDRIALGENETICCODE_H_ 42 #define _INVERTEBRATEMITOCHONDRIALGENETICCODE_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 == 46 || state == 62);
103 return (i == 12 || i == 13 || i == 15 || i == 46 || i == 62);
110 #endif //_INVERTEBRATEMITOCHONDRIALGENETICCODE_H_ virtual ~InvertebrateMitochondrialGeneticCode()
An alphabet exception thrown when trying to specify a bad char to the alphabet.
size_t getNumberOfStopCodons() const
bool isAltStart(const std::string &state) const
Tells is a particular codon is an alternative start codon.
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(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.
InvertebrateMitochondrialGeneticCode(const NucleicAlphabet *alphabet)
virtual InvertebrateMitochondrialGeneticCode * clone() const
bool isStop(int state) const
Tells is a particular codon is a stop codon.
This class implements the Invertebrate Mitochondrial genetic code as describe on the NCBI website: ht...
CodonAlphabet codonAlphabet_
An alphabet exception thrown when trying to specify a bad int to the alphabet.
Partial implementation of the Transliterator interface for genetic code object.
std::vector< std::string > getStopCodonsAsChar() const
std::vector< int > getStopCodonsAsInt() 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.