5 #ifndef BPP_SEQ_GENETICCODE_VERTEBRATEMITOCHONDRIALGENETICCODE_H
6 #define BPP_SEQ_GENETICCODE_VERTEBRATEMITOCHONDRIALGENETICCODE_H
9 #include "../Alphabet/NucleicAlphabet.h"
40 return std::vector<int>({8, 10, 48, 50});
45 return std::vector<std::string>({
"AGA",
"AGG",
"TAA",
"TAG"});
52 return state == 48 || state == 50 || state == 8 || state == 10;
55 bool isStop(
const std::string& state)
const
58 return i == 48 || i == 50 || i == 8 || i == 10;
65 return state == 12 || state == 13 || state == 15 || state == 46;
71 return i == 12 || i == 13 || i == 15 || i == 46;
Partial implementation of the Transliterator interface for genetic code object.
std::shared_ptr< const CodonAlphabet > codonAlphabet_
This class implements the vertebrate mitochondrial genetic code as describe on the NCBI web site: htt...
virtual ~VertebrateMitochondrialGeneticCode()
bool isStop(const std::string &state) const
Tells is a particular codon is a stop codon.
bool isAltStart(const std::string &state) const
Tells is a particular codon is an alternative start codon.
virtual VertebrateMitochondrialGeneticCode * clone() const
std::vector< std::string > getStopCodonsAsChar() const
VertebrateMitochondrialGeneticCode(std::shared_ptr< const NucleicAlphabet > alphabet)
bool isAltStart(int state) const
Tells is a particular codon is an alternative start codon.
bool isStop(int state) const
Tells is a particular codon is a stop codon.
std::vector< int > getStopCodonsAsInt() const
size_t getNumberOfStopCodons() const
This alphabet is used to deal NumericAlphabet.