new CodonTables()
Create an empty container to lazy load codon tables as needed
Members
-
tables
-
Return the current tables
Methods
-
byID(id)
-
Return the table for provided code
Name Type Description idNumber | String ID of the Codon Table (e.g. 1, '1')
-
names()
-
Returns object with table codes as the keys and the values as the table names
codonTables.names() // => {1: 'Standard', 2: 'Vertebrate Mitochondrial', ...} -
translate(seq, geneticCodeID, startCodon)
-
Translate a sequence
Name Type Default Description seqString The sequence to translate
geneticCodeIDNumber The genetic code ID (e.g. 1)
startCodonNumber 1 Position (bp) of the first codon