bpp-seq3
3.0.0
|
The base class for allelic alphabets. More...
#include <Bpp/Seq/Alphabet/AllelicAlphabet.h>
Classes | |
class | AllelicTransliterator |
Public Member Functions | |
AllelicAlphabet (std::shared_ptr< const Alphabet > alph, unsigned int nbAlleles) | |
Builds a new word alphabet from an Alphabet. More... | |
AllelicAlphabet (const AllelicAlphabet &bia) | |
AllelicAlphabet * | clone () const override |
virtual | ~AllelicAlphabet () |
bool | isResolvedIn (int state1, int state2) const override |
Tells if a given (potentially unresolved) state can be resolved in another resolved state. More... | |
unsigned int | getNbAlleles () const |
Returns the number of alleles. More... | |
std::shared_ptr< const Alphabet > | getStateAlphabet () const |
Returns Base Alphabet. More... | |
const Alphabet & | stateAlphabet () const |
std::string | getAlphabetType () const override |
Identification method. More... | |
int | getUnknownCharacterCode () const override |
bool | isUnresolved (int state) const override |
bool | isUnresolved (const std::string &state) const override |
std::vector< int > | getAlias (int state) const override |
Get all resolved states that match a generic state. More... | |
std::vector< std::string > | getAlias (const std::string &state) const override |
Get all resolved states that match a generic state. More... | |
int | getGeneric (const std::vector< int > &states) const override |
Get the generic state that match a set of states. More... | |
std::string | getGeneric (const std::vector< std::string > &states) const override |
Get the generic state that match a set of states. More... | |
std::unique_ptr< ProbabilisticSequence > | convertFromStateAlphabet (const CoreSequenceInterface &sequence) const |
Convert a CoreSequence in StateAlphabet to a ProbabilisticSequence of the likelihoods of the di-allelic Alphabet (so if counts are not on only two states, the likelihood is null). More... | |
void | computeLikelihoods (const Vdouble &counts, Vdouble &likelihoods) const |
Fills the vector of the likelihoods of a vector of counts in the states alphabet, given the di-alleless. More... | |
Methods redefined from Alphabet | |
int | charToInt (const std::string &state) const override |
Give the int description of a state given its string description. More... | |
unsigned int | getSize () const override |
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. More... | |
unsigned int | getNumberOfTypes () const override |
Get the number of distinct states in alphabet (e.g. return 15 for DNA alphabet). This is the number of integers used for state description. More... | |
Implement these methods from the Alphabet interface. | |
size_t | getNumberOfStates () const |
This is a convenient alias for getNumberOfChars(), returning a size_t instead of unsigned int. More... | |
unsigned int | getNumberOfChars () const |
Get the number of supported characters in this alphabet, including generic characters (e.g. return 20 for DNA alphabet). More... | |
std::string | getName (const std::string &state) const |
Get the complete name of a state given its string description. More... | |
std::string | getName (int state) const |
Get the complete name of a state given its int description. More... | |
std::string | intToChar (int state) const |
Give the string description of a state given its int description. More... | |
bool | isIntInAlphabet (int state) const |
Tell if a state (specified by its int description) is allowed by the the alphabet. More... | |
bool | isCharInAlphabet (const std::string &state) const |
Tell if a state (specified by its string description) is allowed by the the alphabet. More... | |
const std::vector< int > & | getSupportedInts () const |
const std::vector< std::string > & | getSupportedChars () const |
const std::vector< std::string > & | getResolvedChars () const |
int | getGapCharacterCode () const |
bool | isGap (int state) const |
bool | isGap (const std::string &state) const |
Specific methods to access AlphabetState | |
virtual AlphabetState & | getStateAt (size_t stateIndex) |
Get a state at a position in the alphabet_ vector. More... | |
virtual const AlphabetState & | getStateAt (size_t stateIndex) const |
Get a state at a position in the alphabet_ vector. More... | |
const AlphabetState & | getState (const std::string &letter) const |
Get a state by its letter. More... | |
AlphabetState & | getState (const std::string &letter) |
const AlphabetState & | getState (int num) const |
Get a state by its num. More... | |
AlphabetState & | getState (int num) |
int | getIntCodeAt (size_t stateIndex) const |
const std::string & | getCharCodeAt (size_t stateIndex) const |
size_t | getStateIndex (int state) const |
size_t | getStateIndex (const std::string &state) const |
Protected Member Functions | |
virtual void | registerState (AlphabetState *st) |
Add a state to the Alphabet. More... | |
virtual void | setState (size_t pos, AlphabetState *st) |
Set a state in the Alphabet. More... | |
void | resize (size_t size) |
Resize the private alphabet_ vector. More... | |
void | remap () |
Re-update the maps using the alphabet_ vector content. More... | |
bool | equals (const Alphabet &alphabet) const |
Comparison of alphabets. More... | |
Protected Attributes | |
std::shared_ptr< const Alphabet > | alph_ |
unsigned int | nbAlleles_ |
the number of alleles. More... | |
int | nbUnknown_ |
the unknown state number More... | |
Available codes | |
These vectors will be computed the first time you call the getAvailableInts or getAvailableChars method. | |
std::vector< std::string > | charList_ |
std::vector< int > | intList_ |
Private Member Functions | |
void | updateMaps_ (size_t pos, const AlphabetState &st) |
Update the private maps letters_ and nums_ when adding a state. More... | |
Overloaded AbstractAlphabet methods. | |
unsigned int | getStateCodingSize () const override |
Get the size of the string coding a state. More... | |
Private Attributes | |
std::vector< AlphabetState * > | alphabet_ |
Alphabet: vector of AlphabetState. More... | |
maps used to quick search for letter and num. | |
std::map< std::string, size_t > | letters_ |
std::map< int, size_t > | nums_ |
The base class for allelic alphabets.
These alphabets are made of unoriented pairs (element from an alphabet, N)^2, such that both numbers sum a given constant number of individuals. The construction is made from a shared_pointer to an AbstractAlphabet.
The strings of the AllelicAlphabet are pairs of the strings of the Alphabets, with the attributed numbers, such that the first element is before the second element in the base Alphabet (such as A3C4, and not C4A3). They are made from the resolved letters of the Alphabets.
The letters are numbered as:
-1 : gap
0 -> alphabet size: alphabet states
(i * (alphabet size) + j) * (nbAlleles-1) + size + k -1 : state
(alphabet size)^2 * (nbAlleles -1) : Unknown "?N?0"
For nucleotides with three alleles, the underlying states are for instance:
_3_0 (-1), A3_0 (0), C3_0 (1), G3_0 (2), T3_0 (3), A2C1 (6), A1C2 (7), A2G1 (8), A1G2 (9), A2T1 (10), A1T2 (11), C2G1 (16), C1G2 (17), C2T1 (18), C1T2 (19), G2T1 (26), G1T2 (27), ?3_0 (32)
Definition at line 49 of file AllelicAlphabet.h.
AllelicAlphabet::AllelicAlphabet | ( | std::shared_ptr< const Alphabet > | alph, |
unsigned int | nbAlleles | ||
) |
Builds a new word alphabet from an Alphabet.
Definition at line 16 of file AllelicAlphabet.cpp.
References alph_, nbAlleles_, nbUnknown_, and bpp::AbstractAlphabet::registerState().
Referenced by clone().
|
inline |
Definition at line 72 of file AllelicAlphabet.h.
|
inlinevirtual |
Definition at line 84 of file AllelicAlphabet.h.
|
inlineoverridevirtual |
Give the int description of a state given its string description.
state | The string description. |
BadCharException | When state is not a valid char description. |
Reimplemented from bpp::AbstractAlphabet.
Definition at line 92 of file AllelicAlphabet.h.
References bpp::AbstractAlphabet::charToInt(), and getStateCodingSize().
Referenced by isUnresolved(), and bpp::AllelicAlphabet::AllelicTransliterator::translate().
|
inlineoverridevirtual |
Implements bpp::AbstractAlphabet.
Definition at line 79 of file AllelicAlphabet.h.
References AllelicAlphabet().
Fills the vector of the likelihoods of a vector of counts in the states alphabet, given the di-alleless.
Definition at line 189 of file AllelicAlphabet.cpp.
References getSize(), getStateAlphabet(), nbAlleles_, and bpp::NumConstants::TINY().
Referenced by convertFromStateAlphabet().
std::unique_ptr< ProbabilisticSequence > AllelicAlphabet::convertFromStateAlphabet | ( | const CoreSequenceInterface & | sequence | ) | const |
Convert a CoreSequence in StateAlphabet to a ProbabilisticSequence of the likelihoods of the di-allelic Alphabet (so if counts are not on only two states, the likelihood is null).
sequence | the CoreSequence to be converted. |
Gaps are directly translated in vectors of 1.
Definition at line 125 of file AllelicAlphabet.cpp.
References computeLikelihoods(), getAlphabetType(), bpp::Commentable::getComments(), bpp::CoreSequenceInterface::getName(), getSize(), and getStateAlphabet().
|
inlineprotectedvirtualinherited |
Comparison of alphabets.
Implements bpp::Alphabet.
Definition at line 243 of file AbstractAlphabet.h.
References bpp::Alphabet::getAlphabetType().
|
overridevirtual |
Get all resolved states that match a generic state.
If the given state is not a generic code then the output vector will contain this unique code.
state | The alias to resolve. |
BadCharException | When state is not a valid char description. |
Reimplemented from bpp::AbstractAlphabet.
Definition at line 111 of file AllelicAlphabet.cpp.
References bpp::AbstractAlphabet::getState(), bpp::AbstractAlphabet::getSupportedChars(), bpp::AbstractAlphabet::isCharInAlphabet(), nbUnknown_, and bpp::TextTools::toUpper().
|
overridevirtual |
Get all resolved states that match a generic state.
If the given state is not a generic code then the output vector will contain this unique code.
state | The alias to resolve. |
BadIntException | When state is not a valid integer. |
Reimplemented from bpp::AbstractAlphabet.
Definition at line 98 of file AllelicAlphabet.cpp.
References bpp::AbstractAlphabet::getSupportedInts(), bpp::AbstractAlphabet::isIntInAlphabet(), and nbUnknown_.
|
overridevirtual |
Identification method.
Used to tell if two alphabets describe the same type of sequences. For instance, this method is used by sequence containers to compare two alphabets and allow or deny addition of sequences.
Implements bpp::Alphabet.
Definition at line 73 of file AllelicAlphabet.cpp.
References alph_, and nbAlleles_.
Referenced by convertFromStateAlphabet().
|
inlinevirtualinherited |
stateIndex | The index of the state to fetch. |
Implements bpp::Alphabet.
Definition at line 192 of file AbstractAlphabet.h.
References bpp::AlphabetState::getLetter(), and bpp::AbstractAlphabet::getStateAt().
|
inlinevirtualinherited |
Implements bpp::Alphabet.
Definition at line 130 of file AbstractAlphabet.h.
|
inlineoverridevirtual |
Get the generic state that match a set of states.
If the given states contain generic code, each generic code is first resolved and then the new generic state is returned. If only a single resolved state is given the function return this state.
states | A vector of states to resolve. |
BadIntException | When a state is not a valid integer. |
Reimplemented from bpp::AbstractAlphabet.
Definition at line 152 of file AllelicAlphabet.h.
|
inlineoverridevirtual |
Get the generic state that match a set of states.
If the given states contain generic code, each generic code is first resolved and then the new generic state is returned. If only a single resolved state is given the function return this state.
states | A vector of states to resolve. |
BadCharException | when a state is not a valid char description. |
CharStateNotSupportedException | when the alphabet does not support Char state for unresolved state. |
Reimplemented from bpp::AbstractAlphabet.
Definition at line 157 of file AllelicAlphabet.h.
|
inlinevirtualinherited |
stateIndex | The index of the state to fetch. |
Implements bpp::Alphabet.
Definition at line 187 of file AbstractAlphabet.h.
References bpp::AlphabetState::getNum(), and bpp::AbstractAlphabet::getStateAt().
|
virtualinherited |
Get the complete name of a state given its string description.
In case of several states with identical number (i.e. N and X for nucleic alphabets), this method will return the name of the first found in the vector.
state | The string description of the given state. |
BadCharException | When state is not a valid char description. |
Implements bpp::Alphabet.
Reimplemented in bpp::WordAlphabet.
Definition at line 139 of file AbstractAlphabet.cpp.
Referenced by bpp::WordAlphabet::getName(), and bpp::LexicalAlphabet::LexicalAlphabet().
|
virtualinherited |
Get the complete name of a state given its int description.
In case of several states with identical number (i.e. N and X for nucleic alphabets), this method returns the name of the first found in the vector.
state | The int description of the given state. |
BadIntException | When state is not a valid integer. |
Implements bpp::Alphabet.
Definition at line 146 of file AbstractAlphabet.cpp.
|
inline |
Returns the number of alleles.
Definition at line 119 of file AllelicAlphabet.h.
References nbAlleles_.
|
inlinevirtualinherited |
Get the number of supported characters in this alphabet, including generic characters (e.g. return 20 for DNA alphabet).
Implements bpp::Alphabet.
Definition at line 115 of file AbstractAlphabet.h.
References bpp::AbstractAlphabet::alphabet_.
Referenced by bpp::LexicalAlphabet::getNumberOfTypes(), getNumberOfTypes(), bpp::WordAlphabet::getNumberOfTypes(), bpp::LexicalAlphabet::getSize(), getSize(), bpp::WordAlphabet::getSize(), and bpp::NucleicAlphabet::registerState().
|
inlinevirtualinherited |
This is a convenient alias for getNumberOfChars(), returning a size_t instead of unsigned int.
This function is typically used il loops over all states of an alphabet.
Implements bpp::Alphabet.
Definition at line 114 of file AbstractAlphabet.h.
References bpp::AbstractAlphabet::alphabet_.
Referenced by bpp::LexicalAlphabet::getAlphabetType().
|
inlineoverridevirtual |
Get the number of distinct states in alphabet (e.g. return 15 for DNA alphabet). This is the number of integers used for state description.
Implements bpp::Alphabet.
Definition at line 105 of file AllelicAlphabet.h.
References bpp::AbstractAlphabet::getNumberOfChars().
|
virtualinherited |
Note for developers of new alphabets: we return a const reference here since the list is supposed to be stored within the class and should not be modified outside the class.
Implements bpp::Alphabet.
Definition at line 327 of file AbstractAlphabet.cpp.
|
inlineoverridevirtual |
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.
Implements bpp::Alphabet.
Definition at line 100 of file AllelicAlphabet.h.
References bpp::AbstractAlphabet::getNumberOfChars().
Referenced by computeLikelihoods(), and convertFromStateAlphabet().
|
inherited |
Definition at line 101 of file AbstractAlphabet.cpp.
|
virtualinherited |
Get a state by its letter.
This method must be overloaded in specialized classes to send back a reference of the correct type.
letter | The letter of the state to find. |
BadCharException | If the letter is not in the Alphabet. |
Implements bpp::Alphabet.
Reimplemented in bpp::ProteicAlphabet, and bpp::NucleicAlphabet.
Definition at line 61 of file AbstractAlphabet.cpp.
Referenced by getAlias(), bpp::NucleicAlphabet::getState(), bpp::ProteicAlphabet::getState(), bpp::RNY::intToChar(), and bpp::NumericAlphabet::intToValue().
|
inherited |
Definition at line 111 of file AbstractAlphabet.cpp.
|
virtualinherited |
Get a state by its num.
This method must be overloaded in specialized classes to send back a reference of the correct type.
num | The num of the state to find. |
BadIntException | If the num is not in the Alphabet. |
Implements bpp::Alphabet.
Reimplemented in bpp::ProteicAlphabet, and bpp::NucleicAlphabet.
Definition at line 81 of file AbstractAlphabet.cpp.
|
inline |
Returns Base Alphabet.
Definition at line 127 of file AllelicAlphabet.h.
References alph_.
Referenced by computeLikelihoods(), and convertFromStateAlphabet().
|
virtualinherited |
Get a state at a position in the alphabet_ vector.
This method must be overloaded in specialized classes to send back a reference of the correct type.
stateIndex | The index of the state in the alphabet_ vector. |
IndexOutOfBoundsException | If the index is invalid. |
Reimplemented in bpp::NumericAlphabet, bpp::NucleicAlphabet, and bpp::ProteicAlphabet.
Definition at line 121 of file AbstractAlphabet.cpp.
Referenced by bpp::LexicalAlphabet::getAlphabetType(), bpp::AbstractAlphabet::getCharCodeAt(), bpp::AbstractAlphabet::getIntCodeAt(), bpp::WordAlphabet::getName(), bpp::ProteicAlphabet::getStateAt(), bpp::NumericAlphabet::getStateAt(), and bpp::NucleicAlphabet::getStateAt().
|
virtualinherited |
Get a state at a position in the alphabet_ vector.
This method must be overloaded in specialized classes to send back a reference of the correct type.
stateIndex | The index of the state in the alphabet_ vector. |
IndexOutOfBoundsException | If the index is invalid. |
Implements bpp::Alphabet.
Reimplemented in bpp::NumericAlphabet, bpp::NucleicAlphabet, and bpp::ProteicAlphabet.
Definition at line 130 of file AbstractAlphabet.cpp.
|
inlineoverrideprivatevirtual |
Get the size of the string coding a state.
Reimplemented from bpp::AbstractAlphabet.
Definition at line 232 of file AllelicAlphabet.h.
References alph_, and nbAlleles_.
Referenced by charToInt().
|
virtualinherited |
Implements bpp::Alphabet.
Definition at line 71 of file AbstractAlphabet.cpp.
|
virtualinherited |
Implements bpp::Alphabet.
Definition at line 91 of file AbstractAlphabet.cpp.
|
virtualinherited |
Note for developers of new alphabets: we return a const reference here since the list is supposed to be stored within the class and should not be modified outside the class.
Implements bpp::Alphabet.
Definition at line 310 of file AbstractAlphabet.cpp.
Referenced by getAlias().
|
virtualinherited |
Note for developers of new alphabets: we return a const reference here since the list is supposed to be stored within the class and should not be modified outside the class.
Implements bpp::Alphabet.
Definition at line 293 of file AbstractAlphabet.cpp.
Referenced by getAlias().
|
inlineoverridevirtual |
Implements bpp::Alphabet.
Definition at line 139 of file AllelicAlphabet.h.
References nbUnknown_.
Referenced by isUnresolved().
|
virtualinherited |
Give the string description of a state given its int description.
state | The int description. |
BadIntException | When state is not a valid integer. |
Implements bpp::Alphabet.
Reimplemented in bpp::RNY.
Definition at line 160 of file AbstractAlphabet.cpp.
Referenced by bpp::RNY::getAlias(), bpp::WordAlphabet::getAlias(), bpp::CaseMaskedAlphabet::getMaskedEquivalentState(), bpp::WordAlphabet::getNPosition(), bpp::NucleicAlphabet::getOverlap(), bpp::WordAlphabet::getPositions(), bpp::WordAlphabet::getWord(), bpp::BinaryAlphabet::isResolvedIn(), and bpp::NucleicAlphabet::subtract().
|
virtualinherited |
Tell if a state (specified by its string description) is allowed by the the alphabet.
state | The string description. |
Implements bpp::Alphabet.
Reimplemented in bpp::LetterAlphabet.
Definition at line 177 of file AbstractAlphabet.cpp.
Referenced by bpp::BinaryAlphabet::getAlias(), bpp::RNY::getAlias(), getAlias(), and bpp::WordAlphabet::getAlias().
|
inlinevirtualinherited |
state | The state to test. |
Implements bpp::Alphabet.
Definition at line 132 of file AbstractAlphabet.h.
References bpp::AbstractAlphabet::charToInt().
|
inlinevirtualinherited |
state | The state to test. |
Implements bpp::Alphabet.
Reimplemented in bpp::RNY, and bpp::NumericAlphabet.
Definition at line 131 of file AbstractAlphabet.h.
Referenced by bpp::WordAlphabet::containsGap().
|
virtualinherited |
Tell if a state (specified by its int description) is allowed by the the alphabet.
state | The int description. |
Implements bpp::Alphabet.
Definition at line 167 of file AbstractAlphabet.cpp.
Referenced by bpp::BinaryAlphabet::getAlias(), bpp::RNY::getAlias(), getAlias(), bpp::WordAlphabet::getAlias(), bpp::CaseMaskedAlphabet::getMaskedEquivalentState(), bpp::BinaryAlphabet::isResolvedIn(), bpp::RNY::isResolvedIn(), isResolvedIn(), and bpp::WordAlphabet::isResolvedIn().
|
overridevirtual |
Tells if a given (potentially unresolved) state can be resolved in another resolved state.
state1 | The alias to resolve. |
state2 | The candidate for resolution. |
BadIntException | When state is not a valid integer. |
Reimplemented from bpp::AbstractAlphabet.
Definition at line 81 of file AllelicAlphabet.cpp.
References alph_, bpp::AbstractAlphabet::isIntInAlphabet(), isUnresolved(), and nbAlleles_.
|
inlineoverridevirtual |
state | The state to test. |
Implements bpp::Alphabet.
Definition at line 146 of file AllelicAlphabet.h.
References charToInt(), and getUnknownCharacterCode().
|
inlineoverridevirtual |
state | The state to test. |
Implements bpp::Alphabet.
Definition at line 144 of file AllelicAlphabet.h.
References getUnknownCharacterCode().
Referenced by isResolvedIn().
|
protectedvirtualinherited |
Add a state to the Alphabet.
st | The state to add. |
Exception | If a wrong alphabet state is provided. |
Reimplemented in bpp::NumericAlphabet, bpp::NucleicAlphabet, and bpp::LetterAlphabet.
Definition at line 36 of file AbstractAlphabet.cpp.
Referenced by AllelicAlphabet(), bpp::BinaryAlphabet::BinaryAlphabet(), bpp::WordAlphabet::build_(), bpp::IntegerAlphabet::IntegerAlphabet(), bpp::LexicalAlphabet::LexicalAlphabet(), bpp::LetterAlphabet::registerState(), bpp::NumericAlphabet::registerState(), and bpp::RNY::RNY().
|
inlineprotectedinherited |
Re-update the maps using the alphabet_ vector content.
Definition at line 231 of file AbstractAlphabet.h.
References bpp::AbstractAlphabet::alphabet_, bpp::AbstractAlphabet::letters_, bpp::AbstractAlphabet::nums_, and bpp::AbstractAlphabet::updateMaps_().
Referenced by bpp::NumericAlphabet::remap().
|
inlineprotectedinherited |
Resize the private alphabet_ vector.
size | The new size of the Alphabet. |
Definition at line 226 of file AbstractAlphabet.h.
References bpp::AbstractAlphabet::alphabet_.
|
protectedvirtualinherited |
Set a state in the Alphabet.
pos | The index of the state in the alphabet_ vector. |
st | The new state to put in the Alphabet. |
Exception | If a wrong alphabet state is provided. |
IndexOutOfBoundsException | If an incorrect index is provided. |
Reimplemented in bpp::NumericAlphabet, bpp::NucleicAlphabet, and bpp::LetterAlphabet.
Definition at line 46 of file AbstractAlphabet.cpp.
Referenced by bpp::LetterAlphabet::setState(), and bpp::NumericAlphabet::setState().
|
inline |
Definition at line 132 of file AllelicAlphabet.h.
References alph_.
|
privateinherited |
Update the private maps letters_ and nums_ when adding a state.
pos | The index of the state in the alphabet_ vector. |
st | The state that has been added or modified |
Definition at line 22 of file AbstractAlphabet.cpp.
References bpp::AlphabetState::getLetter(), and bpp::AlphabetState::getNum().
Referenced by bpp::AbstractAlphabet::remap().
|
protected |
Definition at line 53 of file AllelicAlphabet.h.
Referenced by AllelicAlphabet(), getAlphabetType(), getStateAlphabet(), getStateCodingSize(), isResolvedIn(), and stateAlphabet().
|
privateinherited |
Alphabet: vector of AlphabetState.
Definition at line 37 of file AbstractAlphabet.h.
Referenced by bpp::AbstractAlphabet::AbstractAlphabet(), bpp::AbstractAlphabet::getNumberOfChars(), bpp::AbstractAlphabet::getNumberOfStates(), bpp::AbstractAlphabet::operator=(), bpp::AbstractAlphabet::remap(), bpp::AbstractAlphabet::resize(), and bpp::AbstractAlphabet::~AbstractAlphabet().
|
mutableprotectedinherited |
Definition at line 63 of file AbstractAlphabet.h.
Referenced by bpp::AbstractAlphabet::operator=().
|
mutableprotectedinherited |
Definition at line 64 of file AbstractAlphabet.h.
Referenced by bpp::AbstractAlphabet::operator=().
|
privateinherited |
Definition at line 43 of file AbstractAlphabet.h.
Referenced by bpp::AbstractAlphabet::operator=(), and bpp::AbstractAlphabet::remap().
|
protected |
the number of alleles.
Definition at line 58 of file AllelicAlphabet.h.
Referenced by AllelicAlphabet(), computeLikelihoods(), getAlphabetType(), getNbAlleles(), getStateCodingSize(), and isResolvedIn().
|
protected |
the unknown state number
Definition at line 63 of file AllelicAlphabet.h.
Referenced by AllelicAlphabet(), getAlias(), and getUnknownCharacterCode().
|
privateinherited |
Definition at line 44 of file AbstractAlphabet.h.
Referenced by bpp::AbstractAlphabet::operator=(), and bpp::AbstractAlphabet::remap().