|
StochHMM
v0.34
Flexible Hidden Markov Model C++ Library and Application
|
#include <pwm.h>
Public Member Functions | |
| matrixPosition () | |
| ~matrixPosition () | |
| bool | parse (std::string &txt, track *trk, stringList &names) |
| float | getEmissionValue (sequences *, size_t) |
| float | getEmissionValue (sequence *, size_t) |
| emm * | getEmission () |
| void | addTransition (emm *trans) |
| std::vector< std::string > & | getTransitionNames () |
| void | setThreshold (float thresh) |
| float * | getThresholdPtr () |
| float | getThreshold () |
| size_t | transitionsSize () |
| bool | isThresholdSet () |
| std::string | stringify () |
Private Attributes | |
| emm * | positionMatrix |
| bool | thresholdSet |
| float | threshold |
| std::vector< emm * > | transitions |
| std::vector< std::string > | transition_names |
| std::string | name |
Stores weight information for a position in the position weight matrix
| StochHMM::matrixPosition::matrixPosition | ( | ) |
Definition at line 217 of file pwm.cpp.
References positionMatrix, threshold, and thresholdSet.
| StochHMM::matrixPosition::~matrixPosition | ( | ) |
Definition at line 223 of file pwm.cpp.
References positionMatrix.
|
inline |
|
inline |
| float StochHMM::matrixPosition::getEmissionValue | ( | sequences * | seqs, |
| size_t | pos | ||
| ) |
Definition at line 397 of file pwm.cpp.
References StochHMM::emm::get_emission(), and positionMatrix.
| float StochHMM::matrixPosition::getEmissionValue | ( | sequence * | seq, |
| size_t | pos | ||
| ) |
Definition at line 401 of file pwm.cpp.
References StochHMM::emm::get_emission(), and positionMatrix.
|
inline |
|
inline |
|
inline |
|
inline |
| bool StochHMM::matrixPosition::parse | ( | std::string & | txt, |
| track * | trk, | ||
| stringList & | names | ||
| ) |
Parses the emission for each position from a string
| txt | String representation of emissions |
| names | stringList of all state names defined in the model |
| trks | Tracks defined in the model |
| wts | Weight defined of the model |
| funcs | StateFunction defined for the model |
Definition at line 235 of file pwm.cpp.
References StochHMM::clear_whitespace(), name, StochHMM::emm::parse(), positionMatrix, StochHMM::stringList::size(), StochHMM::stringList::splitND(), StochHMM::stringList::splitString(), threshold, thresholdSet, and transition_names.
Referenced by StochHMM::PWM::_parsePositions().
|
inline |
| std::string StochHMM::matrixPosition::stringify | ( | ) |
Definition at line 353 of file pwm.cpp.
References StochHMM::double_to_string(), StochHMM::join(), name, positionMatrix, StochHMM::emm::stringify(), threshold, thresholdSet, and transition_names.
|
inline |
|
private |
Definition at line 145 of file pwm.h.
Referenced by parse(), and stringify().
|
private |
Definition at line 140 of file pwm.h.
Referenced by getEmission(), getEmissionValue(), matrixPosition(), parse(), stringify(), and ~matrixPosition().
|
private |
Definition at line 142 of file pwm.h.
Referenced by getThreshold(), getThresholdPtr(), matrixPosition(), parse(), setThreshold(), and stringify().
|
private |
Definition at line 141 of file pwm.h.
Referenced by isThresholdSet(), matrixPosition(), parse(), and stringify().
|
private |
Definition at line 144 of file pwm.h.
Referenced by getTransitionNames(), parse(), and stringify().
|
private |
Definition at line 143 of file pwm.h.
Referenced by addTransition(), and transitionsSize().
1.8.1