bpp-seq3
3.0.0
|
Reverse iterator to convert RNA to DNA. More...
#include <Bpp/Seq/DNAToRNA.h>
Public Member Functions | |
DNAToRNA () | |
DNAToRNA (const DNAToRNA &d2r) | |
DNAToRNA & | operator= (const DNAToRNA &d2r) |
virtual | ~DNAToRNA () |
std::shared_ptr< const Alphabet > | getSourceAlphabet () const override |
Get the source alphabet. More... | |
const Alphabet & | sourceAlphabet () const override |
Get the source alphabet. More... | |
std::shared_ptr< const Alphabet > | getTargetAlphabet () const override |
Get the target alphabet. More... | |
const Alphabet & | targetAlphabet () const override |
Get the target alphabet. More... | |
int | translate (int state) const override |
Translate a given state coded as a int from source alphabet to target alphabet. More... | |
std::string | translate (const std::string &state) const override |
Translate a given state coded as a string from source alphabet to target alphabet. More... | |
std::unique_ptr< Sequence > | translate (const SequenceInterface &sequence) const override |
Translate a whole sequence from source alphabet to target alphabet. More... | |
int | reverse (int state) const override |
Translate a given state coded as a int from target alphabet to source alphabet. More... | |
std::string | reverse (const std::string &state) const override |
Translate a given state coded as a string from target alphabet to source alphabet. More... | |
std::unique_ptr< Sequence > | reverse (const SequenceInterface &sequence) const override |
Translate a whole sequence from target alphabet to source alphabet. More... | |
Private Attributes | |
std::shared_ptr< const Alphabet > | dna_ |
std::shared_ptr< const Alphabet > | rna_ |
Reverse iterator to convert RNA to DNA.
This only changes U to T characters.
Definition at line 23 of file DNAToRNA.h.
|
inline |
Definition at line 30 of file DNAToRNA.h.
|
inline |
Definition at line 36 of file DNAToRNA.h.
|
inlinevirtual |
Definition at line 46 of file DNAToRNA.h.
|
inlineoverridevirtual |
Get the source alphabet.
Implements bpp::TransliteratorInterface.
Definition at line 49 of file DNAToRNA.h.
References dna_.
|
inlineoverridevirtual |
Get the target alphabet.
Implements bpp::TransliteratorInterface.
Definition at line 53 of file DNAToRNA.h.
References rna_.
Definition at line 38 of file DNAToRNA.h.
|
inlineoverridevirtual |
Translate a whole sequence from target alphabet to source alphabet.
sequence | A sequence in target alphabet. |
Implements bpp::ReverseTransliteratorInterface.
Definition at line 70 of file DNAToRNA.h.
References bpp::AbstractReverseTransliterator::reverse().
|
overridevirtual |
Translate a given state coded as a string from target alphabet to source alphabet.
state | A state in target alphabet. |
Implements bpp::AbstractReverseTransliterator.
Definition at line 36 of file DNAToRNA.cpp.
|
overridevirtual |
Translate a given state coded as a int from target alphabet to source alphabet.
state | A state in target alphabet. |
Implements bpp::AbstractReverseTransliterator.
Definition at line 28 of file DNAToRNA.cpp.
|
inlineoverridevirtual |
Get the source alphabet.
Implements bpp::TransliteratorInterface.
Definition at line 51 of file DNAToRNA.h.
References dna_.
|
inlineoverridevirtual |
Get the target alphabet.
Implements bpp::TransliteratorInterface.
Definition at line 55 of file DNAToRNA.h.
References rna_.
|
inlineoverridevirtual |
Translate a whole sequence from source alphabet to target alphabet.
sequence | A sequence in source alphabet. |
Implements bpp::TransliteratorInterface.
Definition at line 61 of file DNAToRNA.h.
References bpp::AbstractTransliterator::translate().
|
overridevirtual |
Translate a given state coded as a string from source alphabet to target alphabet.
state | A state in source alphabet. |
Implements bpp::AbstractTransliterator.
Definition at line 20 of file DNAToRNA.cpp.
|
overridevirtual |
Translate a given state coded as a int from source alphabet to target alphabet.
state | A state in source alphabet. |
Implements bpp::AbstractTransliterator.
Definition at line 12 of file DNAToRNA.cpp.
|
private |
Definition at line 27 of file DNAToRNA.h.
Referenced by getSourceAlphabet(), operator=(), and sourceAlphabet().
|
private |
Definition at line 27 of file DNAToRNA.h.
Referenced by getTargetAlphabet(), operator=(), and targetAlphabet().