5 #ifndef YMIR_CODON_TABLE_H 6 #define YMIR_CODON_TABLE_H 9 #include <unordered_map> 20 typedef std::unordered_multimap<> aa_to_codon_storage_t;
23 typedef std::unordered_map<> codon_to_aa_storage_t;
42 std::string translate(
const std::string &nuc_seq)
const {
43 if (nuc_seq.size() % 3 == 0 && !nuc_seq.empty()) {
58 aa_to_codon_storage_t _aa2codon;
59 codon_to_aa_storage_t _codon2aa;
65 #endif //YMIR_CODON_TABLE_H
A struct for representing nucleotide codons for amino acids.
Definition: codon_table.h:17