Package org.biojava.bio.symbol
Class SimpleGeneticCodeTable
java.lang.Object
org.biojava.bio.symbol.AbstractManyToOneTranslationTable
org.biojava.bio.symbol.SimpleManyToOneTranslationTable
org.biojava.bio.symbol.SimpleGeneticCodeTable
- All Implemented Interfaces:
Serializable
,ManyToOneTranslationTable
,TranslationTable
A genetic code translation table representing a translation table in the
DDBJ/EMBL/GenBank Feature Table (appendix V).
- Since:
- 1.5
- Author:
- gwaldon
- See Also:
-
Field Summary
Fields inherited from interface org.biojava.bio.symbol.TranslationTable
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 Summary
ConstructorsConstructorDescriptionSimpleGeneticCodeTable
(FiniteAlphabet source, FiniteAlphabet target) Creates a new instance of SimpleGeneticCodeTable -
Method Summary
Modifier and TypeMethodDescriptionint
void
setDescription
(String description) void
setTableNumber
(int num) Translate a single symbol from source alphabet to the target alphabet.Methods inherited from class org.biojava.bio.symbol.SimpleManyToOneTranslationTable
doTranslate, doUntranslate, getSourceAlphabet, getTargetAlphabet, setTranslation
Methods inherited from class org.biojava.bio.symbol.AbstractManyToOneTranslationTable
untranslate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.biojava.bio.symbol.TranslationTable
translate
-
Constructor Details
-
SimpleGeneticCodeTable
Creates a new instance of SimpleGeneticCodeTable
-
-
Method Details
-
setTableNumber
-
getTableNumber
- Returns:
- the value for the feature qualifier table_num found in the DDBJ/EMBL/GenBank Feature Table. The associated feature key is CDS.
-
setDescription
-
getDescription
- Returns:
- A string descripting this table, normally the one found in the DDBJ/EMBL/GenBank Feature Table.
-
translate
Description copied from interface:TranslationTable
Translate a single symbol from source alphabet to the target alphabet.- Specified by:
translate
in interfaceTranslationTable
- Parameters:
sym
- the Symbol to translate (member of source alphabet)- Returns:
- the translated version of sym (member of target alphabet)
- Throws:
IllegalSymbolException
- if sym is not a member of the source alphabet
-