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 | |
TransliteratorInterface () | |
virtual | ~TransliteratorInterface () |
virtual std::shared_ptr< const Alphabet > | getSourceAlphabet () const =0 |
Get the source alphabet. More... | |
virtual const Alphabet & | sourceAlphabet () const =0 |
Get the source alphabet. More... | |
virtual std::shared_ptr< const Alphabet > | getTargetAlphabet () const =0 |
Get the target alphabet. More... | |
virtual const Alphabet & | targetAlphabet () 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 std::unique_ptr< Sequence > | translate (const SequenceInterface &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 17 of file Transliterator.h.
|
inline |
Definition at line 20 of file Transliterator.h.
|
inlinevirtual |
Definition at line 21 of file Transliterator.h.
|
pure virtual |
Get the source alphabet.
Implemented in bpp::NucleicAcidsReplication, bpp::GeneticCode, bpp::DNAToRNA, and bpp::AllelicAlphabet::AllelicTransliterator.
|
pure virtual |
Get the target alphabet.
Implemented in bpp::NucleicAcidsReplication, bpp::GeneticCode, bpp::DNAToRNA, and bpp::AllelicAlphabet::AllelicTransliterator.
|
pure virtual |
Get the source alphabet.
Implemented in bpp::NucleicAcidsReplication, bpp::GeneticCode, and bpp::DNAToRNA.
|
pure virtual |
Get the target alphabet.
Implemented in bpp::NucleicAcidsReplication, bpp::GeneticCode, and bpp::DNAToRNA.
|
pure virtual |
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.