84 return new RNY(*
this);
95 unsigned int getSize()
const {
return 36; }
98 bool isGap(
int state)
const;
119 std::string
getRNY(
const std::string&,
const std::string&,
const std::string&)
const throw (
BadCharException);
std::string getAlphabetType() const
Identification method.
An alphabet exception thrown when trying to specify a bad char to the alphabet.
bool isGap(int state) const
RNY & operator=(const RNY &bia)
const NucleicAlphabet & getLetterAlphabet() const
This alphabet is used to deal NumericAlphabet.
const NucleicAlphabet & nuclalph_
AbstractAlphabet & operator=(const AbstractAlphabet &alph)
bool containsGap(const std::string &state) const
bool isUnresolved(int state) const
int getUnknownCharacterCode() const
A partial implementation of the Alphabet interface.
std::string intToChar(int state) const
Give the string description of a state given its int description.
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.
int charToInt(const std::string &state) const
Give the int description of a state given its string description.
std::vector< int > getAlias(int state) const
Get all resolved states that match a generic state.
RNY(const NucleicAlphabet &)
An alphabet exception thrown when trying to specify a bad int to the alphabet.
unsigned int getNumberOfTypes() const
Get the number of distinct states in alphabet (e.g. return 15 for DNA alphabet). This is the number o...
unsigned int getSize() const
Get the number of resolved states in the alphabet (e.g. return 4 for DNA alphabet). This is the method you'll need in most cases.
The abstract base class for nucleic alphabets.