bpp-seq3
3.0.0
|
#include <Bpp/Seq/Alphabet/AllelicAlphabet.h>
Public Member Functions | |
AllelicTransliterator (std::shared_ptr< const AllelicAlphabet > alph) | |
std::shared_ptr< const Alphabet > | getSourceAlphabet () const override |
Get the source alphabet. More... | |
std::shared_ptr< const Alphabet > | getTargetAlphabet () const override |
Get the 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... | |
int | translate (int state) const override |
States of the original alphabet are the first ones of the allelic alphabet. More... | |
std::unique_ptr< Sequence > | translate (const SequenceInterface &sequence) const override |
Translate a whole sequence from source alphabet to target alphabet. More... | |
virtual const Alphabet & | sourceAlphabet () const =0 |
Get the source alphabet. More... | |
virtual const Alphabet & | targetAlphabet () const =0 |
Get the target alphabet. More... | |
Private Attributes | |
std::shared_ptr< const AllelicAlphabet > | alph_ |
Definition at line 162 of file AllelicAlphabet.h.
|
inline |
Definition at line 168 of file AllelicAlphabet.h.
|
inlineoverridevirtual |
Get the source alphabet.
Implements bpp::TransliteratorInterface.
Definition at line 172 of file AllelicAlphabet.h.
References alph_.
Referenced by translate().
|
inlineoverridevirtual |
Get the target alphabet.
Implements bpp::TransliteratorInterface.
Definition at line 176 of file AllelicAlphabet.h.
References alph_.
Referenced by translate().
|
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.
|
inlineoverridevirtual |
Translate a whole sequence from source alphabet to target alphabet.
sequence | A sequence in source alphabet. |
Implements bpp::TransliteratorInterface.
Definition at line 192 of file AllelicAlphabet.h.
References bpp::AbstractTransliterator::translate().
|
inlineoverridevirtual |
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 178 of file AllelicAlphabet.h.
References bpp::AllelicAlphabet::charToInt(), getSourceAlphabet(), and getTargetAlphabet().
|
inlineoverridevirtual |
States of the original alphabet are the first ones of the allelic alphabet.
Implements bpp::AbstractTransliterator.
Definition at line 187 of file AllelicAlphabet.h.
|
private |
Definition at line 165 of file AllelicAlphabet.h.
Referenced by getSourceAlphabet(), and getTargetAlphabet().