5 #ifndef BPP_SEQ_GENETICCODE_INVERTEBRATEMITOCHONDRIALGENETICCODE_H
6 #define BPP_SEQ_GENETICCODE_INVERTEBRATEMITOCHONDRIALGENETICCODE_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 == 46 || state == 62;
72 return i == 12 || i == 13 || i == 15 || i == 46 || i == 62;
Partial implementation of the Transliterator interface for genetic code object.
std::shared_ptr< const CodonAlphabet > codonAlphabet_
This class implements the Invertebrate Mitochondrial genetic code as describe on the NCBI website: ht...
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.
bool isAltStart(const std::string &state) const
Tells is a particular codon is an alternative start codon.
std::vector< int > getStopCodonsAsInt() const
bool isStop(const std::string &state) const
Tells is a particular codon is a stop codon.
std::vector< std::string > getStopCodonsAsChar() const
virtual InvertebrateMitochondrialGeneticCode * clone() const
size_t getNumberOfStopCodons() const
InvertebrateMitochondrialGeneticCode(std::shared_ptr< const NucleicAlphabet > alphabet)
virtual ~InvertebrateMitochondrialGeneticCode()
This alphabet is used to deal NumericAlphabet.