Translate.c geneid v 1.1 source documentation


Description:
This module implements the translation of genomic sequences (exons and genes) into proteins by using the Genetic Code (amino acid dictionary). The function to extract the exonic nucleotides is provided as well.
Briefing:
int Translate(long p1,
              long p2,
              short fra,
              short rmd,
              char* s,
              dict* dAA,
              char sAux[])
Translation of exons: obtaining the protein product by applying the Genetic code to the input exon sequence. First and last uncomplete codons are preserved (in lower case) corresponding to frame and remainder, respectively. Complete codons are translated by using the dictionary of amino acids. It returns the number of amino acids (including uncomplete codons) and the protein.
void TranslateGene(exonGFF* e,
                   char* s,
                   dict* dAA,
                   long nExons,
                   int** tAA,
                   char* prot,
                   long* nAA)
Translate a whole gene: translation of the list of linked exons that form the gene, taking care with the connections (frame/remainder) which are shared between 2 consecutive exons. Two different processes accoriding to the gene strand.
void GetcDNA(exonGFF* e,
             char* s,
             long nExons,
             char* cDNA,
             long* nNN)
Traversing the exons of the gene, picking up the nucleotides and joining them building the exonic sequence.




Enrique Blanco Garcia © 2001