Package org.biojava.bio.symbol
Interface ManyToOneTranslationTable
-
- All Superinterfaces:
TranslationTable
- All Known Implementing Classes:
AbstractManyToOneTranslationTable,SimpleGeneticCodeTable,SimpleManyToOneTranslationTable
public interface ManyToOneTranslationTable extends TranslationTable
A translation table that will handle the many-to-one mappings that you see, for example, with genetic codes.It differs from a ReversibleTranslationTable in that the reverse translation returns a Set of Symbols in the source alphabet that translate to give that Symbol in the target Alphabet.
- Author:
- David Huen
-
-
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Setuntranslate(Symbol sym)Translate a single symbol from target alphabet to the source alphabet.-
Methods inherited from interface org.biojava.bio.symbol.TranslationTable
getSourceAlphabet, getTargetAlphabet, translate
-
-
-
-
Method Detail
-
untranslate
Set untranslate(Symbol sym) throws IllegalSymbolException
Translate a single symbol from target alphabet to the source alphabet.- Parameters:
sym- the Symbol to reverse-translate (member of target alphabet)- Returns:
- a Set containing symbols that translate to the specified Symbol.
- Throws:
IllegalSymbolException- if sym is not a member of the target alphabet
-
-