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