new CodonTable(geneticCodeID)
Create a new codon table
Name | Type | Description |
---|---|---|
geneticCodeID |
Number |
ID for the genetic code (e.g. 1 for 'Standard' code) |
Members
-
codons
-
Return a list of the 64 codons, sorted in the following order: T, C, A, G
-
geneticCodeID
-
Return the genetic code for this codon table
-
name
-
Return the name for this codon table
-
starts
-
Return the start codons for this codon table
-
stops
-
Return the stop codons for this codon table
-
table
-
Return the table for this codon table
-
staticCodonTable.availableGeneticCodeIDs
-
Return array of all the available genetic code IDs
-
staticCodonTable.definitions
-
Returns all the available codon table definitions
Methods
-
toString(){String}
-
Return the class name as a string.
Returns:
Type Description String - 'CodonTable'
-
translate(rawSeq, codonStart)
-
Translate a sequence using this codon table. If the first codon, is a start codon, it will be translated as 'M' instead of the amino acid.
Name Type Default Description rawSeq
String The sequence to translate
codonStart
Number 1 Position (bp) of the first codon