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 id
Number | 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 seq
String The sequence to translate
geneticCodeID
Number The genetic code ID (e.g. 1)
startCodon
Number 1 Position (bp) of the first codon