bpp-seq
2.2.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 () |
virtual const Alphabet * | getSourceAlphabet () const |
Get the source alphabet. More... | |
virtual const Alphabet * | getTargetAlphabet () const |
Get the target alphabet. More... | |
int | translate (int state) const throw (BadIntException) |
Translate a given state coded as a int from source alphabet to target alphabet. More... | |
std::string | translate (const std::string &state) const throw (BadCharException) |
Translate a given state coded as a string from source alphabet to target alphabet. More... | |
Sequence * | translate (const Sequence &sequence) const throw (AlphabetMismatchException, Exception) |
Translate a whole sequence from source alphabet to target alphabet. More... | |
int | reverse (int state) const throw (BadIntException) |
Translate a given state coded as a int from target alphabet to source alphabet. More... | |
std::string | reverse (const std::string &state) const throw (BadCharException) |
Translate a given state coded as a string from target alphabet to source alphabet. More... | |
Sequence * | reverse (const Sequence &sequence) const throw (AlphabetMismatchException, Exception) |
Translate a whole sequence from target alphabet to source alphabet. More... | |
Private Attributes | |
const Alphabet * | dna_ |
const Alphabet * | rna_ |
Reverse iterator to convert RNA to DNA.
This only changes U to T characters.
Definition at line 58 of file DNAToRNA.h.
|
inline |
Definition at line 65 of file DNAToRNA.h.
|
inline |
Definition at line 67 of file DNAToRNA.h.
|
inlinevirtual |
Definition at line 77 of file DNAToRNA.h.
|
inlinevirtual |
Get the source alphabet.
Implements bpp::AbstractReverseTransliterator.
Definition at line 80 of file DNAToRNA.h.
References dna_.
|
inlinevirtual |
Get the target alphabet.
Implements bpp::AbstractReverseTransliterator.
Definition at line 81 of file DNAToRNA.h.
References rna_.
Definition at line 69 of file DNAToRNA.h.
|
virtual |
Translate a given state coded as a int from target alphabet to source alphabet.
state | A state in target alphabet. |
BadIntException | If the state is not a proper state for target alphabet. |
Exception | Other kind of error, depending on the implementation. |
Implements bpp::AbstractReverseTransliterator.
Definition at line 63 of file DNAToRNA.cpp.
|
virtual |
Translate a given state coded as a string from target alphabet to source alphabet.
state | A state in target alphabet. |
BadCharException | If the state is not a proper state for target alphabet. |
Exception | Other kind of error, depending on the implementation. |
Implements bpp::AbstractReverseTransliterator.
Definition at line 71 of file DNAToRNA.cpp.
|
inlinevirtual |
Translate a whole sequence from target alphabet to source alphabet.
sequence | A sequence in target alphabet. |
AlphabetMismatchException | If the sequence alphabet do not match the target alphabet. |
Exception | Other kind of error, depending on the implementation. |
Reimplemented from bpp::AbstractReverseTransliterator.
Definition at line 90 of file DNAToRNA.h.
References bpp::AbstractReverseTransliterator::reverse().
|
virtual |
Translate a given state coded as a int from source alphabet to target alphabet.
state | A state in source alphabet. |
BadIntException | If the state is not a proper state for source alphabet. |
Exception | Other kind of error, depending on the implementation. |
Implements bpp::AbstractTransliterator.
Definition at line 47 of file DNAToRNA.cpp.
|
virtual |
Translate a given state coded as a string from source alphabet to target alphabet.
state | A state in source alphabet. |
BadCharException | If the state is not a proper state for source alphabet. |
Exception | Other kind of error, depending on the implementation. |
Implements bpp::AbstractTransliterator.
Definition at line 55 of file DNAToRNA.cpp.
|
inlinevirtual |
Translate a whole sequence from source alphabet to target alphabet.
sequence | A sequence in source alphabet. |
AlphabetMismatchException | If the sequence alphabet do not match the source alphabet. |
Exception | Other kind of error, depending on the implementation. |
Reimplemented from bpp::AbstractTransliterator.
Definition at line 84 of file DNAToRNA.h.
References bpp::AbstractTransliterator::translate().
|
private |
Definition at line 62 of file DNAToRNA.h.
Referenced by getSourceAlphabet(), and operator=().
|
private |
Definition at line 62 of file DNAToRNA.h.
Referenced by getTargetAlphabet(), and operator=().