5 #ifndef BPP_SEQ_NUCLEICACIDSREPLICATION_H
6 #define BPP_SEQ_NUCLEICACIDSREPLICATION_H
40 std::shared_ptr<const NucleicAlphabet> nuc1,
41 std::shared_ptr<const NucleicAlphabet> nuc2);
50 ReverseTransliteratorInterface::operator=(nar);
70 std::string
translate(
const std::string& state)
const override;
74 int reverse(
int state)
const override;
76 std::string
reverse(
const std::string& state)
const override;
Replication between to nucleic acids.
const Alphabet & targetAlphabet() const override
Get the target alphabet.
std::shared_ptr< const NucleicAlphabet > nuc2_
std::map< int, int > trans_
std::shared_ptr< const Alphabet > getTargetAlphabet() const override
Get the target alphabet.
std::shared_ptr< const Alphabet > getSourceAlphabet() const override
Get the source alphabet.
int translate(int state) const override
Translate a given state coded as a int from source alphabet to target alphabet.
NucleicAcidsReplication(const NucleicAcidsReplication &nar)
int reverse(int state) const override
Translate a given state coded as a int from target alphabet to source alphabet.
const Alphabet & sourceAlphabet() const override
Get the source alphabet.
virtual ~NucleicAcidsReplication()
NucleicAcidsReplication(std::shared_ptr< const NucleicAlphabet > nuc1, std::shared_ptr< const NucleicAlphabet > nuc2)
std::shared_ptr< const NucleicAlphabet > nuc1_
NucleicAcidsReplication & operator=(const NucleicAcidsReplication &nar)
The same as previous, but can perform the reverse translation, eg: RNA -> DNA and DNA -> RNA;.
This alphabet is used to deal NumericAlphabet.