A class that represents a codon object a codon must have 3 bases to be able to be converted into an aminoacid
https://en.wikipedia.org/wiki/Genetic_code#RNA_codon_table
Codon constructor can optionaly accept it's RNA bases.
First base of the codon
Second base of the codon
Third base of the codon
var cod = new Codon(RNA.A, RNA.U, RNA.G); // OR var cod = new Codon();
returns an Enum of the type: See RNA
Sets a new codon with the suplemented parameters
RNA Base
Returns a string made with the matches of a Codon array
var cod1 = new Codon(RNA.A,RNA.U,RNA.G); var cod2 = new Codon(RNA.U,RNA.G,RNA.A); var arr = [cod1,cod2]; var aaSeq = Codon.getCodonChain(arr); console.log(aaSeq); // Met-STOP
Matches a Codon object with a string that represents the matching AminoAcid based on the Central Dogma of Molecular Biology
var cod = new Codon(RNA.A,RNA.U,RNA.G); console.log(Codon.matchCodon(cod)); // Met
Generated using TypeDoc
A class that represents a codon object a codon must have 3 bases to be able to be converted into an aminoacid
https://en.wikipedia.org/wiki/Genetic_code#RNA_codon_table