5 #ifndef BPP_SEQ_GENETICCODE_YEASTMITOCHONDRIALGENETICCODE_H
6 #define BPP_SEQ_GENETICCODE_YEASTMITOCHONDRIALGENETICCODE_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;
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...
std::vector< int > getStopCodonsAsInt() const
bool isAltStart(int state) const
Tells is a particular codon is an alternative start codon.
std::vector< std::string > getStopCodonsAsChar() const
virtual YeastMitochondrialGeneticCode * clone() const
virtual ~YeastMitochondrialGeneticCode()
size_t getNumberOfStopCodons() const
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.
bool isStop(int state) const
Tells is a particular codon is a stop codon.
YeastMitochondrialGeneticCode(std::shared_ptr< const NucleicAlphabet > alphabet)
This alphabet is used to deal NumericAlphabet.