5 const char alphabet[4] = {
'A',
'G',
'C',
'T'};
7 int main(
int argc,
char **argv)
11 for (
unsigned first = 0 ; first < 4 ; ++first)
13 for (
unsigned second = 0 ; second < 4 ; ++second)
15 for (
unsigned third = 0 ; third < 4 ; ++third)
17 codon[0] = alphabet[first];
18 codon[1] = alphabet[second];
19 codon[2] = alphabet[third];
std::string Translate(std::string::const_iterator beg, std::string::const_iterator end, Sequence::GeneticCodes genetic_code=GeneticCodes::UNIVERSAL, const char &gapchar='-')
declares Sequence::Translate,a function to translate CDS sequences into peptide sequences ...