keep track of state counts at a site in an alignment or along a sequence More...
#include <Sequence/stateCounter.hpp>
Public Member Functions | |
| stateCounter (const char &gapchar= '-') | |
| void | operator() (const char &ch) const |
| unsigned | nStates (void) const |
Public Attributes | |
| unsigned | a |
| unsigned | g |
| unsigned | c |
| unsigned | t |
| unsigned | zero |
| unsigned | one |
| unsigned | gap |
| unsigned | n |
| bool | ndna |
keep track of state counts at a site in an alignment or along a sequence
Definition at line 39 of file stateCounter.hpp.
| Sequence::stateCounter::stateCounter | ( | const char & | gapchar = '-' |
) |
| gapchar | charcter representing a gap in an alignment |
Definition at line 57 of file stateCounter.cc.
| unsigned Sequence::stateCounter::nStates | ( | void | ) | const |
Definition at line 106 of file stateCounter.cc.
| void Sequence::stateCounter::operator() | ( | const char & | ch | ) | const |
| ch | the character in position i,j in an alignment |
Definition at line 64 of file stateCounter.cc.
unsigned Sequence::stateCounter::a [mutable] |
the number of times the character 'a' or 'A' has been counted
Definition at line 44 of file stateCounter.hpp.
unsigned Sequence::stateCounter::c [mutable] |
the number of times the character 'c' or 'C' has been counted
Definition at line 44 of file stateCounter.hpp.
unsigned Sequence::stateCounter::g [mutable] |
the number of times the character 'g' or 'G' has been counted
Definition at line 44 of file stateCounter.hpp.
unsigned Sequence::stateCounter::gap [mutable] |
the number of times the gap character has been counted
Definition at line 44 of file stateCounter.hpp.
unsigned Sequence::stateCounter::n [mutable] |
the number of times the missing data character 'N' has been counted
Definition at line 44 of file stateCounter.hpp.
bool Sequence::stateCounter::ndna [mutable] |
true if a non-DNA character has been encountered, false otherwise
Definition at line 45 of file stateCounter.hpp.
unsigned Sequence::stateCounter::one [mutable] |
the number of times the character '1' has been counted
Definition at line 44 of file stateCounter.hpp.
unsigned Sequence::stateCounter::t [mutable] |
the number of times the character 't' or 'T' has been counted
Definition at line 44 of file stateCounter.hpp.
unsigned Sequence::stateCounter::zero [mutable] |
the number of times the character '0' has been counted
Definition at line 44 of file stateCounter.hpp.
1.6.1