40 #ifndef _ASCIDIANMITOCHONDRIALGENETICCODE_H_ 41 #define _ASCIDIANMITOCHONDRIALGENETICCODE_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);
94 return (i == 48 || i == 50);
100 return (state == 12 || state == 46 || state == 62);
105 return (i == 12 || i == 46 || i == 62);
112 #endif //_ASCIDIANMITOCHONDRIALGENETICCODE_H_ size_t getNumberOfStopCodons() 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.
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 isStop(int state) const
Tells is a particular codon is a stop codon.
This alphabet is used to deal NumericAlphabet.
AscidianMitochondrialGeneticCode(const NucleicAlphabet *alphabet)
std::vector< std::string > getStopCodonsAsChar() const
virtual ~AscidianMitochondrialGeneticCode()
This class implements the ascidian mitochondrial genetic code as describe on the NCBI web site: http:...
CodonAlphabet codonAlphabet_
std::vector< int > getStopCodonsAsInt() const
bool isAltStart(const std::string &state) const
Tells is a particular codon is an alternative start codon.
virtual AscidianMitochondrialGeneticCode * clone() const
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.