StochHMM
v0.34
Flexible Hidden Markov Model C++ Library and Application
|
#include <Counter.h>
Public Member Functions | |
Counter () | |
Counter (int, int, int, int, int) | |
Counter (int, int, int, int) | |
Counter (int, int, int) | |
Counter (int) | |
Counter (sequence &, countType, track *, int, int, int, int, int) | |
Counter (track *, int, int, int, int, int) | |
Counter (track *, int, int, int, int) | |
Counter (track *, int, int, int) | |
Counter (track *, int) | |
Counter (std::vector< sequence * > &, countType, track *, int, int, int, int, int) | |
Counter (sequenceStream &, countType, track *, int, int, int, int, int) | |
bool | countGeneral (sequence &, int, int) |
bool | countGeneral (std::vector< sequence * > &, int, int) |
bool | countGeneral (sequenceStream &, int, int) |
bool | countPeriodic (sequence &, int, int) |
bool | countPeriodic (std::vector< sequence * > &, int, int) |
bool | countPeriodic (sequenceStream &, int, int) |
bool | countPWM (sequence &, int, int) |
bool | countPWM (std::vector< sequence * > &, int, int) |
bool | countPWM (sequenceStream &, int, int) |
bool | countMask (sequence &, int, int) |
bool | countMask (std::vector< sequence * > &, int, int) |
bool | _count (sequence &, std::vector< lexicalTable * > &) |
Working copy of countGeneral. | |
void | clear () |
void | printTable () |
void | setOrder (size_t) |
void | setPeriod (size_t) |
void | setPseudoCount (size_t) |
void | setTrack (track *) |
Private Member Functions | |
void | initializeTable (size_t) |
Creates x number of lexical tables and appends them to the vector of lexical tables. |
Private Attributes | |
int | sequencesCounted |
Total number of sequences counted. | |
int | lengthOfAllSequences |
Bp of all sequences counted. | |
countType | type |
track * | seqtrk |
The track defined for our sequence(s) | |
int | seqLength |
size_t | period |
size_t | order |
size_t | pseudoCount |
bool | variableSet |
int | upstream |
The number of bp upstream to ignore. | |
int | downstream |
The number of bp downstream to ignore. | |
std::vector< lexicalTable * > | tables |
StochHMM::Counter::Counter | ( | ) |
Definition at line 29 of file Counter.cpp.
References downstream, StochHMM::NONE, order, period, pseudoCount, type, upstream, and variableSet.
StochHMM::Counter::Counter | ( | int | per, |
int | up, | ||
int | down, | ||
int | ord, | ||
int | pseud | ||
) |
Definition at line 39 of file Counter.cpp.
References downstream, StochHMM::NONE, order, period, pseudoCount, type, upstream, and variableSet.
StochHMM::Counter::Counter | ( | int | per, |
int | up, | ||
int | down, | ||
int | ord | ||
) |
Definition at line 50 of file Counter.cpp.
References downstream, StochHMM::NONE, order, period, pseudoCount, type, upstream, and variableSet.
StochHMM::Counter::Counter | ( | int | per, |
int | up, | ||
int | down | ||
) |
Definition at line 61 of file Counter.cpp.
References downstream, StochHMM::NONE, order, period, pseudoCount, type, upstream, and variableSet.
StochHMM::Counter::Counter | ( | int | per | ) |
Definition at line 72 of file Counter.cpp.
References downstream, StochHMM::NONE, order, period, pseudoCount, type, upstream, and variableSet.
StochHMM::Counter::Counter | ( | sequence & | seq, |
countType | typ, | ||
track * | trk, | ||
int | per, | ||
int | up, | ||
int | down, | ||
int | ord, | ||
int | pseud | ||
) |
Definition at line 82 of file Counter.cpp.
References countGeneral(), countMask(), countPeriodic(), countPWM(), downstream, StochHMM::GENERAL, StochHMM::MASK, StochHMM::NONE, order, period, StochHMM::PERIODIC, pseudoCount, seqtrk, upstream, and variableSet.
StochHMM::Counter::Counter | ( | track * | trk, |
int | per, | ||
int | up, | ||
int | down, | ||
int | ord, | ||
int | pseud | ||
) |
Definition at line 111 of file Counter.cpp.
References downstream, StochHMM::NONE, order, period, pseudoCount, seqtrk, type, upstream, and variableSet.
StochHMM::Counter::Counter | ( | track * | trk, |
int | per, | ||
int | up, | ||
int | down, | ||
int | ord | ||
) |
Definition at line 123 of file Counter.cpp.
References downstream, StochHMM::NONE, order, period, pseudoCount, seqtrk, type, upstream, and variableSet.
StochHMM::Counter::Counter | ( | track * | trk, |
int | per, | ||
int | up, | ||
int | down | ||
) |
Definition at line 135 of file Counter.cpp.
References downstream, StochHMM::NONE, order, period, pseudoCount, seqtrk, type, upstream, and variableSet.
StochHMM::Counter::Counter | ( | track * | trk, |
int | per | ||
) |
Definition at line 147 of file Counter.cpp.
References downstream, StochHMM::NONE, order, period, pseudoCount, seqtrk, type, upstream, and variableSet.
StochHMM::Counter::Counter | ( | std::vector< sequence * > & | seqs, |
countType | typ, | ||
track * | trk, | ||
int | per, | ||
int | up, | ||
int | down, | ||
int | ord, | ||
int | pseud | ||
) |
Definition at line 159 of file Counter.cpp.
References countGeneral(), countMask(), countPeriodic(), countPWM(), downstream, StochHMM::GENERAL, StochHMM::MASK, StochHMM::NONE, order, period, StochHMM::PERIODIC, pseudoCount, seqtrk, upstream, and variableSet.
StochHMM::Counter::Counter | ( | sequenceStream & | seq, |
countType | typ, | ||
track * | trk, | ||
int | per, | ||
int | up, | ||
int | down, | ||
int | ord, | ||
int | pseud | ||
) |
Definition at line 188 of file Counter.cpp.
References countGeneral(), countMask(), countPeriodic(), countPWM(), downstream, StochHMM::GENERAL, StochHMM::MASK, StochHMM::NONE, order, period, StochHMM::PERIODIC, pseudoCount, seqtrk, upstream, and variableSet.
bool StochHMM::Counter::_count | ( | sequence & | seq, |
std::vector< lexicalTable * > & | tbl | ||
) |
Working copy of countGeneral.
Definition at line 218 of file Counter.cpp.
References downstream, StochHMM::sequence::get_index(), StochHMM::sequence::getLength(), StochHMM::sequence::getMask(), lengthOfAllSequences, StochHMM::MASK, order, period, sequencesCounted, type, and upstream.
Referenced by countGeneral(), countMask(), countPeriodic(), and countPWM().
void StochHMM::Counter::clear | ( | ) |
Definition at line 652 of file Counter.cpp.
References downstream, StochHMM::NONE, order, period, pseudoCount, tables, type, upstream, and variableSet.
bool StochHMM::Counter::countGeneral | ( | sequence & | seq, |
int | up, | ||
int | down | ||
) |
Definition at line 265 of file Counter.cpp.
References _count(), downstream, StochHMM::GENERAL, StochHMM::sequence::getLength(), initializeTable(), period, tables, type, upstream, and variableSet.
Referenced by Counter(), and countGeneral().
bool StochHMM::Counter::countGeneral | ( | std::vector< sequence * > & | seqs, |
int | up, | ||
int | down | ||
) |
Definition at line 314 of file Counter.cpp.
References countGeneral().
bool StochHMM::Counter::countGeneral | ( | sequenceStream & | seq, |
int | up, | ||
int | down | ||
) |
Definition at line 324 of file Counter.cpp.
References _count(), downstream, StochHMM::GENERAL, StochHMM::sequence::getLength(), initializeTable(), period, tables, type, upstream, and variableSet.
bool StochHMM::Counter::countMask | ( | sequence & | seq, |
int | up, | ||
int | down | ||
) |
Definition at line 573 of file Counter.cpp.
References _count(), downstream, StochHMM::sequence::getLength(), StochHMM::sequence::getMaxMask(), initializeTable(), StochHMM::MASK, period, tables, type, upstream, and variableSet.
Referenced by Counter(), and countMask().
bool StochHMM::Counter::countMask | ( | std::vector< sequence * > & | seqs, |
int | up, | ||
int | down | ||
) |
Definition at line 623 of file Counter.cpp.
References countMask().
bool StochHMM::Counter::countPeriodic | ( | sequence & | seq, |
int | up, | ||
int | down | ||
) |
Definition at line 476 of file Counter.cpp.
References _count(), downstream, StochHMM::sequence::getLength(), initializeTable(), period, StochHMM::PERIODIC, tables, type, upstream, and variableSet.
Referenced by Counter(), and countPeriodic().
bool StochHMM::Counter::countPeriodic | ( | std::vector< sequence * > & | seqs, |
int | up, | ||
int | down | ||
) |
Definition at line 519 of file Counter.cpp.
References countPeriodic().
bool StochHMM::Counter::countPeriodic | ( | sequenceStream & | seq, |
int | up, | ||
int | down | ||
) |
Definition at line 529 of file Counter.cpp.
References _count(), downstream, StochHMM::sequence::getLength(), initializeTable(), period, StochHMM::PERIODIC, tables, type, upstream, and variableSet.
bool StochHMM::Counter::countPWM | ( | sequence & | seq, |
int | up, | ||
int | down | ||
) |
Definition at line 372 of file Counter.cpp.
References _count(), downstream, StochHMM::sequence::getLength(), initializeTable(), period, StochHMM::PWM, seqLength, tables, type, upstream, and variableSet.
Referenced by Counter(), and countPWM().
bool StochHMM::Counter::countPWM | ( | std::vector< sequence * > & | seqs, |
int | up, | ||
int | down | ||
) |
Definition at line 419 of file Counter.cpp.
References countPWM().
bool StochHMM::Counter::countPWM | ( | sequenceStream & | seq, |
int | up, | ||
int | down | ||
) |
Definition at line 429 of file Counter.cpp.
References _count(), downstream, StochHMM::sequence::getLength(), initializeTable(), period, StochHMM::PWM, seqLength, tables, type, upstream, and variableSet.
|
private |
Creates x number of lexical tables and appends them to the vector of lexical tables.
Definition at line 634 of file Counter.cpp.
References StochHMM::lexicalTable::addTrack(), StochHMM::COUNTS, StochHMM::lexicalTable::createTable(), StochHMM::track::getAlphaSize(), order, pseudoCount, seqtrk, and tables.
Referenced by countGeneral(), countMask(), countPeriodic(), and countPWM().
void StochHMM::Counter::printTable | ( | ) |
Definition at line 665 of file Counter.cpp.
References downstream, lengthOfAllSequences, order, sequencesCounted, tables, and upstream.
void StochHMM::Counter::setOrder | ( | size_t | ord | ) |
Definition at line 677 of file Counter.cpp.
References order, and variableSet.
void StochHMM::Counter::setPeriod | ( | size_t | per | ) |
Definition at line 687 of file Counter.cpp.
References period, and variableSet.
void StochHMM::Counter::setPseudoCount | ( | size_t | pseud | ) |
Definition at line 697 of file Counter.cpp.
References pseudoCount, and variableSet.
void StochHMM::Counter::setTrack | ( | track * | trk | ) |
Definition at line 708 of file Counter.cpp.
References seqtrk, and variableSet.
|
private |
The number of bp downstream to ignore.
Definition at line 127 of file Counter.h.
Referenced by _count(), clear(), Counter(), countGeneral(), countMask(), countPeriodic(), countPWM(), and printTable().
|
private |
Bp of all sequences counted.
Definition at line 100 of file Counter.h.
Referenced by _count(), and printTable().
|
private |
Definition at line 115 of file Counter.h.
Referenced by _count(), clear(), Counter(), initializeTable(), printTable(), and setOrder().
|
private |
Definition at line 114 of file Counter.h.
Referenced by _count(), clear(), Counter(), countGeneral(), countMask(), countPeriodic(), countPWM(), and setPeriod().
|
private |
Definition at line 116 of file Counter.h.
Referenced by clear(), Counter(), initializeTable(), and setPseudoCount().
|
private |
Used only in countPWM; stores the length of the first input sequence *for making sure each sequence being counted is the same length
Definition at line 112 of file Counter.h.
Referenced by countPWM().
|
private |
The track defined for our sequence(s)
Definition at line 105 of file Counter.h.
Referenced by Counter(), initializeTable(), and setTrack().
|
private |
Total number of sequences counted.
Definition at line 97 of file Counter.h.
Referenced by _count(), and printTable().
|
private |
Definition at line 129 of file Counter.h.
Referenced by clear(), countGeneral(), countMask(), countPeriodic(), countPWM(), initializeTable(), and printTable().
|
private |
Definition at line 102 of file Counter.h.
Referenced by _count(), clear(), Counter(), countGeneral(), countMask(), countPeriodic(), and countPWM().
|
private |
The number of bp upstream to ignore.
Definition at line 124 of file Counter.h.
Referenced by _count(), clear(), Counter(), countGeneral(), countMask(), countPeriodic(), countPWM(), and printTable().
|
private |
Indicates whether or not the variables are set *When true, counting has begun, changing the variables would result in an error; must use clear() first to change *When false, counting has not yet begun, variables can be changed
Definition at line 121 of file Counter.h.
Referenced by clear(), Counter(), countGeneral(), countMask(), countPeriodic(), countPWM(), setOrder(), setPeriod(), setPseudoCount(), and setTrack().