next up previous contents
Next: Codon Number to Nucleic Up: Standard Genetic Code Previous: RNA to Amino Acid

Nucleic to Codon Number

Calling Sequence:
NucToCode(
code)
Parameters:
code : three nucleic (DNA, RNA) bases (one letter each)

Returns: {0..64}

Synopsis: The 64 different codons over the alphabet {A, C, G, T=U} are ordered from 1..64. This function converts a codon to a number between 1..64. If it contains an invalid base or an X, it returns 0.

Examples:

>  NucToCode('TTT');




Gaston Gonnet
1998-09-15