5 #ifndef BPP_SEQ_ALPHABET_CASEMASKEDALPHABET_H
6 #define BPP_SEQ_ALPHABET_CASEMASKEDALPHABET_H
58 bool isMasked(
int state)
const {
return state >= 100; }
61 char c = state.c_str()[0];
66 return isalpha(state) && !isupper(state);
Case-sensitive letter alphabet.
std::shared_ptr< const LetterAlphabet > nocaseAlphabet_
CaseMaskedAlphabet & operator=(const CaseMaskedAlphabet &cma)
bool isMasked(const std::string &state) const
int getMaskedEquivalentState(int state) const
Get the masked state equivalent to the input one.
unsigned int getNumberOfTypes() const override
Get the number of distinct states in alphabet (e.g. return 15 for DNA alphabet). This is the number o...
bool isUnresolved(int state) const override
std::shared_ptr< const Alphabet > getUnmaskedAlphabet() const
unsigned int getSize() const override
Get the number of resolved states in the alphabet (e.g. return 4 for DNA alphabet)....
CaseMaskedAlphabet(const CaseMaskedAlphabet &cma)
bool isUnresolved(const std::string &state) const override
int getUnknownCharacterCode() const override
CaseMaskedAlphabet(std::shared_ptr< const LetterAlphabet > nocaseAlphabet)
std::string getAlphabetType() const override
Identification method.
bool isMasked(char state) const
bool isMasked(int state) const
CaseMaskedAlphabet * clone() const override
Specialized partial implementation of Alphabet using single letters.
LetterAlphabet & operator=(const LetterAlphabet &bia)
This alphabet is used to deal NumericAlphabet.