Antkeeper
0.0.1
|
Functions and structures related to triplets of IUPAC base symbols. More...
Classes | |
struct | table |
Table for translating codons to amino acids. More... | |
Functions | |
char | translate (char base1, char base2, char base3, const char *aas) |
Translates a codon into an amino acid. More... | |
bool | is_start (char base1, char base2, char base3, const char *starts) |
Returns true if a codon is a start codon. More... | |
bool | is_stop (char base1, char base2, char base3, const char *aas) |
Returns true if a codon is a stop codon. More... | |
Functions and structures related to triplets of IUPAC base symbols.
bool genetics::codon::is_start | ( | char | base1, |
char | base2, | ||
char | base3, | ||
const char * | starts | ||
) |
Returns true
if a codon is a start codon.
base1 | IUPAC base code of first nucleobase, either U , T , C , A , or G . |
base2 | IUPAC base code of second nucleobase, either U , T , C , A , or G . |
base3 | IUPAC base code of third nucleobase, either U , T , C , A , or G . |
starts | String of 64 IUPAC amino acid codes, in TCAG order. |
true
if the codon is a start codon, false
otherwise. bool genetics::codon::is_stop | ( | char | base1, |
char | base2, | ||
char | base3, | ||
const char * | aas | ||
) |
Returns true
if a codon is a stop codon.
base1 | IUPAC base code of first nucleobase, either U , T , C , A , or G . |
base2 | IUPAC base code of second nucleobase, either U , T , C , A , or G . |
base3 | IUPAC base code of third nucleobase, either U , T , C , A , or G . |
aas | String of 64 IUPAC amino acid codes, in TCAG order. |
true
if the codon is a stop codon, false
otherwise.
|
inline |
Translates a codon into an amino acid.
base1 | IUPAC base code of first nucleobase, either U , T , C , A , or G . |
base2 | IUPAC base code of second nucleobase, either U , T , C , A , or G . |
base3 | IUPAC base code of third nucleobase, either U , T , C , A , or G . |
aas | String of 64 IUPAC amino acid codes, in TCAG order. |
-
if an invalid codon was supplied.