bpp-seq3
3.0.0
|
This interface is used when translating a sequence from an alphabet to another: it gives the translation rules, eg: RNA -> DNA. More...
#include <Bpp/Seq/Transliterator.h>
Public Member Functions | |
Transliterator () | |
virtual | ~Transliterator () |
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... | |
This interface is used when translating a sequence from an alphabet to another: it gives the translation rules, eg: RNA -> DNA.
Definition at line 53 of file Transliterator.h.
|
inline |
Definition at line 56 of file Transliterator.h.
|
inlinevirtual |
Definition at line 57 of file Transliterator.h.
|
pure virtual |
Get the source alphabet.
Implemented in bpp::AbstractReverseTransliterator, bpp::NucleicAcidsReplication, bpp::GeneticCode, bpp::DNAToRNA, and bpp::AllelicAlphabet::AllelicTransliterator.
Referenced by bpp::AbstractTransliterator::translate().
|
pure virtual |
Get the target alphabet.
Implemented in bpp::AbstractReverseTransliterator, bpp::NucleicAcidsReplication, bpp::GeneticCode, bpp::DNAToRNA, and bpp::AllelicAlphabet::AllelicTransliterator.
Referenced by bpp::AbstractTransliterator::translate().
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 virtual |
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 virtual |
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.