yat  0.20.3pre
Classes | Public Member Functions | List of all members
theplu::yat::omic::Codon Class Reference

#include <yat/omic/Codon.h>

Public Member Functions

 Codon (void)
 Defaulf constructor. More...
 
 Codon (const std::string &str)
 
 Codon (const DNA &first, const DNA &second, const DNA &third)
 
char amino_acid (void) const
 
std::string amino_acid_long (void) const
 
const DNAoperator() (size_t i) const
 
bool start (void) const
 
bool stop (void) const
 

Detailed Description

Class holding a triplet of DNAs that are translated to an amino acid.

AlaAGCT,GCC,GCA,GCG
LeuLTTA,TTG,CTT,CTC,CTA,CTG
ArgRCGT,CGC,CGA,CGG,AGA,AGG
LysKAAA,AAG
AsnNAAT,AAC
MetMATG
AspDGAT,GAC
PheFTTT,TTC
CysCTGT,TGC
ProPCCT,CCC,CCA,CCG
GlnQCAA,CAG
SerSTCT,TCC,TCA,TCG,AGT,AGC
GluEGAA,GAG
ThrTACT,ACC,ACA,ACG
GlyGGGT,GGC,GGA,GGG
TrpWTGG
HisHCAT,CAC
TyrYTAT,TAC
IleIATT,ATC,ATA
ValVGTT,GTC,GTA,GTG
STARTATG
STOP*TAA,TGA,TAG
Since
New in yat 0.7

Constructor & Destructor Documentation

◆ Codon() [1/3]

theplu::yat::omic::Codon::Codon ( void  )

Defaulf constructor.

Value is undefined

◆ Codon() [2/3]

theplu::yat::omic::Codon::Codon ( const std::string &  str)

str must be three characters long and each character must be convertible to a DNA.

See also
DNA

◆ Codon() [3/3]

theplu::yat::omic::Codon::Codon ( const DNA first,
const DNA second,
const DNA third 
)

Create Codon from three DNA

Member Function Documentation

◆ amino_acid()

char theplu::yat::omic::Codon::amino_acid ( void  ) const
Returns
one character describing which amino acid the Codon translates to.

◆ amino_acid_long()

std::string theplu::yat::omic::Codon::amino_acid_long ( void  ) const
Returns
three characters describing which amino acid the Codon translates to.
Since
New in yat 0.14

◆ operator()()

const DNA& theplu::yat::omic::Codon::operator() ( size_t  i) const
Returns
i th DNA

◆ start()

bool theplu::yat::omic::Codon::start ( void  ) const
Returns
true if Codon is a start Codon: "ATG"

◆ stop()

bool theplu::yat::omic::Codon::stop ( void  ) const
Returns
true if Codon is a stop codon (see class docs).

The documentation for this class was generated from the following file:

Generated on Sat Feb 18 2023 03:31:44 for yat by  doxygen 1.8.14