This method is expected to reverse-translate any symbol in the source alphabet.
Namespace:
BioSharp.Core.Bio.SymbolAssembly: BioSharp.Core (in BioSharp.Core.dll) Version: 0.1.3191.26120 (0.1.0.0)
Syntax
Parameters
- sym
- Type: BioSharp.Core.Bio.Symbol..::.ISymbol
The symbol to be reverse translated.
Return Value
The reverse-translated symbol.Remarks
Failure can be indicated by returning a null if, for example, your method only handles IAtomicSymbols and you want IBasisSymbols to be taken apart. If you are sure the symbol is illegal, you can throw the IllegalSymbolException immediately to bypass further processing.
As an optimisation, if your method is capable of immediately translating an ambiguity ISymbol, just return it and the alternate route of establishing the translation through doing an ambiguity lookup will be avoided.