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 | |
ReverseTransliteratorInterface () | |
virtual | ~ReverseTransliteratorInterface () |
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 std::unique_ptr< Sequence > | reverse (const SequenceInterface &sequence) const =0 |
Translate a whole sequence from target alphabet to source alphabet. More... | |
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... | |
The same as previous, but can perform the reverse translation, eg: RNA -> DNA and DNA -> RNA;.
Definition at line 80 of file Transliterator.h.
|
inline |
Definition at line 84 of file Transliterator.h.
|
inlinevirtual |
Definition at line 85 of file Transliterator.h.
|
pure virtualinherited |
Get the source alphabet.
Implemented in bpp::NucleicAcidsReplication, bpp::GeneticCode, bpp::DNAToRNA, and bpp::AllelicAlphabet::AllelicTransliterator.
|
pure virtualinherited |
Get the target alphabet.
Implemented in bpp::NucleicAcidsReplication, bpp::GeneticCode, bpp::DNAToRNA, and bpp::AllelicAlphabet::AllelicTransliterator.
|
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 |
Get the source alphabet.
Implemented in bpp::NucleicAcidsReplication, bpp::GeneticCode, and bpp::DNAToRNA.
|
pure virtualinherited |
Get the target alphabet.
Implemented in bpp::NucleicAcidsReplication, bpp::GeneticCode, 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.