StochHMM
v0.34
Flexible Hidden Markov Model C++ Library and Application
|
#include <traceback_path.h>
Public Member Functions | |
multiTraceback () | |
Create multiTraceback() | |
~multiTraceback () | |
Destroy multiTraceback. | |
void | begin () |
Set position in multiTraceback to the beginning. | |
void | end () |
Set position in multiTraceback to the ending. | |
void | operator++ () |
Increment the iterator to next position. | |
void | operator-- () |
Decrement the iterator to previous position. | |
void | operator= (size_t) |
void | print_path () |
void | print_label () |
void | print_gff (std::string &) |
void | print_hits () |
traceback_path | path () |
Get traceback_path at currently set index in multiTraceback. | |
int | counts () |
Get the number times that traceback_path was recorded in multiple traceback. | |
traceback_path | operator[] (size_t) |
void | assign (traceback_path &) |
void | finalize () |
Sorts the multiTraceback by the number of time a particular tracback path occurred. | |
void | clear () |
size_t | size () |
heatTable * | get_hit_table () |
Private Attributes | |
size_t | vectorIterator |
size_t | maxSize |
std::vector< std::map < traceback_path, int > ::iterator > | pathAccess |
std::map< traceback_path, int > | paths |
heatTable * | table |
Contains multiple tracebacks. Will store them in sorted unique list (sorted in order of number of occurances);
Definition at line 169 of file traceback_path.h.
StochHMM::multiTraceback::multiTraceback | ( | ) |
Create multiTraceback()
Definition at line 441 of file traceback_path.cpp.
References maxSize, and vectorIterator.
StochHMM::multiTraceback::~multiTraceback | ( | ) |
void StochHMM::multiTraceback::assign | ( | traceback_path & | path | ) |
Add traceback_path to multiTraceback
path | Traceback path to add |
Definition at line 512 of file traceback_path.cpp.
Referenced by StochHMM::trellis::stochastic_traceback(), and StochHMM::trellis::traceback_stoch_posterior().
void StochHMM::multiTraceback::begin | ( | ) |
Set position in multiTraceback to the beginning.
Definition at line 455 of file traceback_path.cpp.
References vectorIterator.
|
inline |
int StochHMM::multiTraceback::counts | ( | ) |
Get the number times that traceback_path was recorded in multiple traceback.
Definition at line 505 of file traceback_path.cpp.
References pathAccess, and vectorIterator.
void StochHMM::multiTraceback::end | ( | ) |
Set position in multiTraceback to the ending.
Definition at line 461 of file traceback_path.cpp.
References paths, and vectorIterator.
void StochHMM::multiTraceback::finalize | ( | ) |
Sorts the multiTraceback by the number of time a particular tracback path occurred.
Definition at line 519 of file traceback_path.cpp.
References maxSize, pathAccess, paths, StochHMM::sortTBVec(), and vectorIterator.
Referenced by print_gff(), print_label(), print_output(), and print_path().
heatTable * StochHMM::multiTraceback::get_hit_table | ( | ) |
Generate a hit table from a multiple traceback paths Hit table is 2D table describing how many times a state was called at a particular position in the sequence
Definition at line 534 of file traceback_path.cpp.
References pathAccess, paths, StochHMM::model::state_size(), and table.
Referenced by print_hits().
void StochHMM::multiTraceback::operator++ | ( | ) |
Increment the iterator to next position.
Definition at line 467 of file traceback_path.cpp.
References maxSize, and vectorIterator.
void StochHMM::multiTraceback::operator-- | ( | ) |
Decrement the iterator to previous position.
Definition at line 475 of file traceback_path.cpp.
References vectorIterator.
void StochHMM::multiTraceback::operator= | ( | size_t | val | ) |
Set iterator to index val
val | Index value to set |
Definition at line 484 of file traceback_path.cpp.
References maxSize, and vectorIterator.
traceback_path StochHMM::multiTraceback::operator[] | ( | size_t | val | ) |
Get traceback_path at index position
val | Index position |
Definition at line 494 of file traceback_path.cpp.
References pathAccess.
traceback_path StochHMM::multiTraceback::path | ( | ) |
Get traceback_path at currently set index in multiTraceback.
Definition at line 500 of file traceback_path.cpp.
References pathAccess, and vectorIterator.
Referenced by assign().
void StochHMM::multiTraceback::print_gff | ( | std::string & | header | ) |
Definition at line 604 of file traceback_path.cpp.
References finalize(), pathAccess, and size().
Referenced by print_output().
void StochHMM::multiTraceback::print_hits | ( | ) |
Definition at line 561 of file traceback_path.cpp.
References get_hit_table(), StochHMM::model::getStateName(), StochHMM::join(), pathAccess, and StochHMM::model::state_size().
Referenced by print_output().
void StochHMM::multiTraceback::print_label | ( | ) |
Definition at line 594 of file traceback_path.cpp.
References finalize(), pathAccess, and size().
Referenced by print_output().
void StochHMM::multiTraceback::print_path | ( | ) |
Definition at line 584 of file traceback_path.cpp.
References finalize(), pathAccess, and size().
Referenced by print_output().
|
inline |
Definition at line 201 of file traceback_path.h.
References paths.
Referenced by print_gff(), print_label(), and print_path().
|
private |
Definition at line 207 of file traceback_path.h.
Referenced by finalize(), multiTraceback(), operator++(), and operator=().
|
private |
Definition at line 208 of file traceback_path.h.
Referenced by counts(), finalize(), get_hit_table(), operator[](), path(), print_gff(), print_hits(), print_label(), and print_path().
|
private |
Definition at line 209 of file traceback_path.h.
Referenced by assign(), clear(), end(), finalize(), get_hit_table(), and size().
|
private |
Definition at line 210 of file traceback_path.h.
Referenced by get_hit_table(), and ~multiTraceback().
|
private |
Definition at line 206 of file traceback_path.h.
Referenced by begin(), counts(), end(), finalize(), multiTraceback(), operator++(), operator--(), operator=(), and path().