public interface ReversibleTranslationTable extends TranslationTable
I guess this is encapsulates an invertible function, and the untranslate method is the inverse operation to translate.
It is assumed that untranslate(translate(x)) = x for all x in the source alphabet, and that translate(untranslate(y)) = y for all y in the target alphabet. Note, one interesting sub-set of reversible transforms are of the form translate(x) = untranslate(x), and represent 'mirror image' transformations.
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
Modifier and Type | Method and Description |
---|---|
Symbol |
untranslate(Symbol sym)
Translate a single symbol from target alphabet to the source alphabet.
|
getSourceAlphabet, getTargetAlphabet, translate
Symbol untranslate(Symbol sym) throws IllegalSymbolException
sym
- the Symbol to translate (member of target alphabet)IllegalSymbolException
- if sym is not a member of the target
alphabetCopyright © 2014 BioJava. All rights reserved.