bpp-seq3
3.0.0
|
The same as previous, but can perform the reverse translation, eg: RNA -> DNA and DNA -> RNA;. More...
#include <Bpp/Seq/Transliterator.h>
Public Member Functions | |
ReverseTransliterator () | |
virtual | ~ReverseTransliterator () |
virtual int | reverse (int state) const =0 |
Translate a given state coded as a int from target alphabet to source alphabet. More... | |
virtual std::string | reverse (const std::string &state) const =0 |
Translate a given state coded as a string from target alphabet to source alphabet. More... | |
virtual Sequence * | reverse (const Sequence &sequence) const =0 |
Translate a whole sequence from target alphabet to source alphabet. More... | |
virtual const Alphabet * | getSourceAlphabet () const =0 |
Get the source alphabet. More... | |
virtual const Alphabet * | getTargetAlphabet () const =0 |
Get the target alphabet. More... | |
virtual int | translate (int state) const =0 |
Translate a given state coded as a int from source alphabet to target alphabet. More... | |
virtual std::string | translate (const std::string &state) const =0 |
Translate a given state coded as a string from source alphabet to target alphabet. More... | |
virtual Sequence * | translate (const Sequence &sequence) const =0 |
Translate a whole sequence from source alphabet to target alphabet. More... | |
The same as previous, but can perform the reverse translation, eg: RNA -> DNA and DNA -> RNA;.
Definition at line 102 of file Transliterator.h.
|
inline |
Definition at line 106 of file Transliterator.h.
|
inlinevirtual |
Definition at line 107 of file Transliterator.h.
|
pure virtualinherited |
Get the source alphabet.
Implemented in bpp::AbstractReverseTransliterator, bpp::NucleicAcidsReplication, bpp::GeneticCode, bpp::DNAToRNA, and bpp::AllelicAlphabet::AllelicTransliterator.
Referenced by bpp::AbstractTransliterator::translate().
|
pure virtualinherited |
Get the target alphabet.
Implemented in bpp::AbstractReverseTransliterator, bpp::NucleicAcidsReplication, bpp::GeneticCode, bpp::DNAToRNA, and bpp::AllelicAlphabet::AllelicTransliterator.
Referenced by bpp::AbstractTransliterator::translate().
|
pure virtual |
Translate a whole sequence from target alphabet to source alphabet.
sequence | A sequence in target alphabet. |
Implemented in bpp::AbstractReverseTransliterator, bpp::NucleicAcidsReplication, and bpp::DNAToRNA.
|
pure virtual |
Translate a given state coded as a string from target alphabet to source alphabet.
state | A state in target alphabet. |
Implemented in bpp::AbstractReverseTransliterator, bpp::NucleicAcidsReplication, and bpp::DNAToRNA.
|
pure virtual |
Translate a given state coded as a int from target alphabet to source alphabet.
state | A state in target alphabet. |
Implemented in bpp::AbstractReverseTransliterator, bpp::NucleicAcidsReplication, and bpp::DNAToRNA.
|
pure virtualinherited |
Translate a whole sequence from source alphabet to target alphabet.
sequence | A sequence in source alphabet. |
Implemented in bpp::AbstractTransliterator, bpp::NucleicAcidsReplication, bpp::GeneticCode, bpp::DNAToRNA, and bpp::AllelicAlphabet::AllelicTransliterator.
|
pure virtualinherited |
Translate a given state coded as a string from source alphabet to target alphabet.
state | A state in source alphabet. |
Implemented in bpp::AbstractTransliterator, bpp::NucleicAcidsReplication, bpp::GeneticCode, bpp::DNAToRNA, and bpp::AllelicAlphabet::AllelicTransliterator.
|
pure virtualinherited |
Translate a given state coded as a int from source alphabet to target alphabet.
state | A state in source alphabet. |
Implemented in bpp::AbstractTransliterator, bpp::NucleicAcidsReplication, bpp::GeneticCode, bpp::DNAToRNA, and bpp::AllelicAlphabet::AllelicTransliterator.