5 #ifndef BPP_SEQ_GENETICCODE_MOLDMITOCHONDRIALGENETICCODE_H
6 #define BPP_SEQ_GENETICCODE_MOLDMITOCHONDRIALGENETICCODE_H
9 #include "../Alphabet/NucleicAlphabet.h"
41 return std::vector<int>({48, 50});
46 return std::vector<std::string>({
"TAA",
"TAG"});
53 return state == 48 || state == 50;
56 bool isStop(
const std::string& state)
const
59 return i == 48 || i == 50;
66 return state == 12 || state == 13 || state == 15 || state == 30 || state == 46 || state == 60 || state == 62;
72 return i == 12 || i == 13 || i == 15 || i == 30 || i == 46 || i == 60 || i == 62;
Partial implementation of the Transliterator interface for genetic code object.
std::shared_ptr< const CodonAlphabet > codonAlphabet_
This class implements the mold, protozoan, and coelenterate mitochondrial code and the Mycoplasma/Spi...
bool isStop(int state) const
Tells is a particular codon is a stop codon.
virtual ~MoldMitochondrialGeneticCode()
virtual MoldMitochondrialGeneticCode * clone() const
std::vector< int > getStopCodonsAsInt() const
bool isAltStart(const std::string &state) const
Tells is a particular codon is an alternative start codon.
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.
std::vector< std::string > getStopCodonsAsChar() const
size_t getNumberOfStopCodons() const
MoldMitochondrialGeneticCode(std::shared_ptr< const NucleicAlphabet > alphabet)
This alphabet is used to deal NumericAlphabet.