Go to the documentation of this file.Go to the SVN repository for this file.
58 "G",
"AG",
"CG",
"ACG",
59 "T",
"AT",
"CT",
"ACT",
60 "GT",
"AGT",
"CGT",
"ACGT",
67 const static string intToChr =
"?ACMGRSVTWYHKDBN";
69 if (codon.length() < 3) {
74 const string::size_type first_bad_char = codon.find_first_not_of(
"ACGT");
75 if (first_bad_char != string::npos && first_bad_char < 2) {
79 size_t idx = intToChr.find(codon[2]);
80 if (idx == string::npos)
return false;
83 const char *iter = expanded_codon_letter;
85 int tRNA_codon_idx = 0;
86 string codon_copy = codon;
89 while (*iter !=
'\0' && tRNA_codon_idx < 6) {
static const char * codonLetterExpand[]
User-defined methods of the data storage class.
static int CodonToIndex(char base1, char base2, char base3)
static bool ParseDegenerateCodon(CTrna_ext &tRNA, const string &codon)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
TCodon & SetCodon(void)
Assign a value to Codon data member.