public class SimpleGeneticCodeTable extends SimpleManyToOneTranslationTable
ALT_YEAST_NUC, ASCID_MITO, BACTERIAL, BLEPH_MNUC, CHLORO_MITO, CILIATE_NUC, ECHIN_MITO, EUPL_NUC, FWORM_MITO, INVERT_MITO, MOLD_MITO, SCENE_MITO, TREMA_MITO, UNIVERSAL, VERT_MITO, YEAST_MITO
Constructor and Description |
---|
SimpleGeneticCodeTable(FiniteAlphabet source,
FiniteAlphabet target)
Creates a new instance of SimpleGeneticCodeTable
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
int |
getTableNumber() |
void |
setDescription(String description) |
void |
setTableNumber(int num) |
Symbol |
translate(Symbol sym)
Translate a single symbol from source alphabet to the target alphabet.
|
doTranslate, doUntranslate, getSourceAlphabet, getTargetAlphabet, setTranslation
untranslate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
translate
public SimpleGeneticCodeTable(FiniteAlphabet source, FiniteAlphabet target)
public void setTableNumber(int num)
public int getTableNumber()
public void setDescription(String description)
public String getDescription()
public Symbol translate(Symbol sym) throws IllegalSymbolException
TranslationTable
translate
in interface TranslationTable
sym
- the Symbol to translate (member of source alphabet)IllegalSymbolException
- if sym is not a member of the source
alphabetCopyright © 2014 BioJava. All rights reserved.