\HeaderA{GENETIC\_CODE}{The Standard Genetic Code}{GENETIC.Rul.CODE}
\aliasA{RNA\_GENETIC\_CODE}{GENETIC\_CODE}{RNA.Rul.GENETIC.Rul.CODE}
\keyword{utilities}{GENETIC\_CODE}
\keyword{data}{GENETIC\_CODE}
\begin{Description}\relax
Two predefined objects (\code{GENETIC\_CODE} and \code{RNA\_GENETIC\_CODE})
that represent The Standard Genetic Code.
\end{Description}
\begin{Usage}
\begin{verbatim}
    GENETIC_CODE
    RNA_GENETIC_CODE
\end{verbatim}
\end{Usage}
\begin{Details}\relax
Formally, a genetic code is a mapping between tri-nucleotide sequences
called codons, and amino acids.

The Standard Genetic Code (aka The Canonical Genetic Code, or simply The
Genetic Code) is the particular mapping that encodes the vast majority of
genes in nature.

\code{GENETIC\_CODE} and \code{RNA\_GENETIC\_CODE} are predefined named
character vectors that represent this mapping.
\end{Details}
\begin{Value}
\code{GENETIC\_CODE} and \code{RNA\_GENETIC\_CODE} are both named character
vectors of length 64 (the number of all possible tri-nucleotide sequences)
where each element is a single letter representing either an amino acid
or the stop codon \code{"*"} (aka termination codon).

The names of the \code{GENETIC\_CODE} vector are the DNA codons i.e. the
tri-nucleotide sequences (directed 5' to 3') that are assumed to belong
to the "coding DNA strand" (aka "sense DNA strand" or "non-template DNA
strand") of the gene.

The names of the \code{RNA\_GENETIC\_CODE} are the RNA codons i.e. the
tri-nucleotide sequences (directed 5' to 3') that are assumed to belong
to the mRNA of the gene.

Note that the values in the \code{GENETIC\_CODE} and \code{RNA\_GENETIC\_CODE}
vectors are the same, only their names are different. The names of the
latter are those of the former where all occurrences of T (thymine) have
been replaced by U (uracil).
\end{Value}
\begin{Author}\relax
H. Pages
\end{Author}
\begin{References}\relax
\url{http://www.ncbi.nlm.nih.gov/Taxonomy/Utils/wprintgc.cgi}
\end{References}
\begin{SeeAlso}\relax
\code{\LinkA{AA\_ALPHABET}{AA.Rul.ALPHABET}},
\code{\LinkA{AMINO\_ACID\_CODE}{AMINO.Rul.ACID.Rul.CODE}},
\code{\LinkA{translate}{translate}},
\code{\LinkA{trinucleotideFrequency}{trinucleotideFrequency}},
\code{\LinkA{DNAString}{DNAString}}, \code{\LinkA{RNAString}{RNAString}}, \code{\LinkA{AAString}{AAString}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
  GENETIC_CODE
  GENETIC_CODE[["ATG"]]  # codon ATG is translated into M (Methionine)
  sort(table(GENETIC_CODE))  # the same amino acid can be encoded by 1
                             # to 6 different codons

  RNA_GENETIC_CODE
  all(GENETIC_CODE == RNA_GENETIC_CODE)  # TRUE
\end{ExampleCode}
\end{Examples}

