5 #ifndef BPP_SEQ_GENETICCODE_ASCIDIANMITOCHONDRIALGENETICCODE_H
6 #define BPP_SEQ_GENETICCODE_ASCIDIANMITOCHONDRIALGENETICCODE_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 == 8 || state == 10 || state == 48 || state == 50;
55 bool isStop(
const std::string& state)
const
64 return state == 12 || state == 46 || state == 62;
70 return i == 12 || i == 46 || i == 62;
This class implements the ascidian mitochondrial genetic code as describe on the NCBI web site: http:...
bool isStop(const std::string &state) const
Tells is a particular codon is a stop codon.
virtual ~AscidianMitochondrialGeneticCode()
AscidianMitochondrialGeneticCode(std::shared_ptr< const NucleicAlphabet > alphabet)
bool isAltStart(int state) const
Tells is a particular codon is an alternative start codon.
size_t getNumberOfStopCodons() const
bool isStop(int state) const
Tells is a particular codon is a stop codon.
std::vector< int > getStopCodonsAsInt() const
virtual AscidianMitochondrialGeneticCode * clone() const
bool isAltStart(const std::string &state) const
Tells is a particular codon is an alternative start codon.
std::vector< std::string > getStopCodonsAsChar() const
Partial implementation of the Transliterator interface for genetic code object.
std::shared_ptr< const CodonAlphabet > codonAlphabet_
This alphabet is used to deal NumericAlphabet.