5 #ifndef BPP_SEQ_ALPHABET_RNY_H
6 #define BPP_SEQ_ALPHABET_RNY_H
35 RNY(std::shared_ptr<const NucleicAlphabet> na);
47 return new RNY(*
this);
53 int charToInt(
const std::string& state)
const;
58 unsigned int getSize()
const {
return 36; }
61 bool isGap(
int state)
const;
63 std::vector<int>
getAlias(
int state)
const;
64 std::vector<std::string>
getAlias(
const std::string& state)
const;
86 std::string
getRNY(
const std::string&,
const std::string&,
const std::string&)
const;
A partial implementation of the Alphabet interface.
AbstractAlphabet & operator=(const AbstractAlphabet &alph)
bool isGap(int state) const
bool containsGap(const std::string &state) const
unsigned int getNumberOfTypes() const
Get the number of distinct states in alphabet (e.g. return 15 for DNA alphabet). This is the number o...
std::string getAlphabetType() const
Identification method.
std::shared_ptr< const NucleicAlphabet > nuclalph_
bool isUnresolved(int state) const
std::vector< int > getAlias(int state) const
Get all resolved states that match a generic state.
int getUnknownCharacterCode() const
int charToInt(const std::string &state) const
Give the int description of a state given its string description.
std::string intToChar(int state) const
Give the string description of a state given its int description.
RNY(std::shared_ptr< const NucleicAlphabet > na)
std::string getRNY(const std::string &, const std::string &, const std::string &) const
Get the char code for a triplet given the char code of the three underlying positions.
std::shared_ptr< const NucleicAlphabet > getLetterAlphabet() const
bool isResolvedIn(int state1, int state2) const
Tells if a given (potentially unresolved) state can be resolved in another resolved state.
unsigned int getSize() const
Get the number of resolved states in the alphabet (e.g. return 4 for DNA alphabet)....
RNY & operator=(const RNY &bia)
This alphabet is used to deal NumericAlphabet.