StochHMM
v0.34
Flexible Hidden Markov Model C++ Library and Application
|
#include <externalFuncs.h>
Public Member Functions | |
transitionFuncParam () | |
bool | parse (stringList &, tracks &, weights *, StateFuncs *) |
Parse the stringList from model import. | |
void | setTransFunc (std::string &, transitionFunc *, weight *) |
void | setTransTB (tracebackIdentifier, std::string &, combineIdentifier, std::string &) |
bool | isTracebackDefined () |
tracebackIdentifier | getTracebackType () |
std::string & | getTracebackName () |
std::string & | getCombineName () |
combineIdentifier | getCombineType () |
std::string & | getTrackName () |
track * | getTrack () |
double | evaluate (const std::string *, size_t, const std::string *, size_t) |
void | print () |
Print the externalFuncts to stdout. | |
std::string | stringify () |
prints the string representation of the externFuncs to stdout |
Private Attributes | |
transitionFunc * | transFunc |
Return string representation of the externFuncs definition in the model. | |
std::string | trackName |
track * | transFuncTrack |
What track to pass to the function. | |
std::string | transFuncName |
Pointer to track function uses. | |
weight * | transFuncScaling |
< Name of the external function as used in the model | |
bool | transFuncTraceback |
< weighting information for values | |
tracebackIdentifier | transFuncTracebackIdentifier |
defines whether a traceback in necessary for the function | |
std::string | transFuncTracebackString |
combineIdentifier | transFuncCombineIdentifier |
Contains name of traceback. | |
std::string | transFuncCombineString |
< Contains information on how to combine the traceback information |
Definition at line 61 of file externalFuncs.h.
StochHMM::transitionFuncParam::transitionFuncParam | ( | ) |
Create transFuncParam from a stringList parsed from model for given track and applying a weight as defined in the model
lst | stringList from parsing the line in the function |
trcks | tracks defined in the model |
wts | pointer to weights as defined in the model |
funcs | pointer to the state functions defined by user and referenced in the model |
Definition at line 39 of file externalFuncs.cpp.
References transFunc.
double StochHMM::transitionFuncParam::evaluate | ( | const std::string * | fullSequence, |
size_t | pos, | ||
const std::string * | partialSequence, | ||
size_t | length | ||
) |
Definition at line 225 of file externalFuncs.cpp.
References transFunc.
Referenced by StochHMM::trellis::transitionFuncTraceback().
|
inline |
Return what is suppose to be combined (State/Label/GFF)
Definition at line 93 of file externalFuncs.h.
References transFuncCombineString.
Referenced by StochHMM::state::checkLabels(), and StochHMM::trellis::transitionFuncTraceback().
|
inline |
Get the Combine type to apply to the traceback *How the traceback is to be combined (editing of traceback)
Definition at line 99 of file externalFuncs.h.
References transFuncCombineIdentifier.
Referenced by StochHMM::state::checkLabels(), and StochHMM::trellis::transitionFuncTraceback().
|
inline |
Return where the traceback is to go back to before stopping
Definition at line 89 of file externalFuncs.h.
References transFuncTracebackString.
Referenced by StochHMM::state::checkLabels(), and StochHMM::trellis::transitionFuncTraceback().
|
inline |
Returns what how extensive of a a traceback is required
Definition at line 85 of file externalFuncs.h.
References transFuncTracebackIdentifier.
Referenced by StochHMM::state::checkLabels(), and StochHMM::trellis::transitionFuncTraceback().
|
inline |
Definition at line 105 of file externalFuncs.h.
References transFuncTrack.
Referenced by StochHMM::trellis::transitionFuncTraceback().
|
inline |
Get track name to pass to the function (as defined in the model)
Definition at line 103 of file externalFuncs.h.
References trackName.
Referenced by StochHMM::transition::_processTags().
|
inline |
Check to see if a traceback is defined as necessary
Definition at line 80 of file externalFuncs.h.
References transFuncTraceback.
bool StochHMM::transitionFuncParam::parse | ( | stringList & | lst, |
tracks & | trcks, | ||
weights * | wts, | ||
StateFuncs * | funcs | ||
) |
Parse the stringList from model import.
Definition at line 50 of file externalFuncs.cpp.
References StochHMM::stringList::contains(), StochHMM::weights::count(), StochHMM::DIFF_STATE, StochHMM::FULL, StochHMM::tracks::getTrack(), StochHMM::StateFuncs::getTransitionFunction(), StochHMM::stringList::indexOf(), StochHMM::isNumeric(), StochHMM::weight::setAbsolute(), StochHMM::START_INIT, StochHMM::STATE_GFF, StochHMM::STATE_LABEL, StochHMM::STATE_NAME, StochHMM::STATEGFF, StochHMM::STATELABEL, StochHMM::STATENAME, StochHMM::stringToDouble(), trackName, transFunc, transFuncCombineIdentifier, transFuncCombineString, transFuncName, transFuncScaling, transFuncTraceback, transFuncTracebackIdentifier, transFuncTracebackString, and transFuncTrack.
Referenced by StochHMM::transition::_processTags().
void StochHMM::transitionFuncParam::print | ( | ) |
Print the externalFuncts to stdout.
Definition at line 164 of file externalFuncs.cpp.
References stringify().
void StochHMM::transitionFuncParam::setTransFunc | ( | std::string & | funcName, |
transitionFunc * | function, | ||
weight * | scaling | ||
) |
Add function to externFunc
funcName | std::string name given to function (as referenced in model) |
function | Pointer to pt2StateFunc*, function to use |
scaling | Pointer to weight, how to weight the functions results before applying to emission/transition |
Definition at line 204 of file externalFuncs.cpp.
References transFunc, transFuncName, and transFuncScaling.
void StochHMM::transitionFuncParam::setTransTB | ( | tracebackIdentifier | tbIdent, |
std::string & | tbString, | ||
combineIdentifier | cbIdent, | ||
std::string & | cbString | ||
) |
Set all the traceback and combine types for the traceback before calling the function
tbIdent | tracebackIdentifier |
tbString | Traceback string to use (State/GFF/Label) |
cbIdent | combineIdentifier |
cbString | Combine string to use when editing traceback (State/GFF/Label) |
Definition at line 215 of file externalFuncs.cpp.
References transFuncCombineIdentifier, transFuncCombineString, transFuncTraceback, transFuncTracebackIdentifier, and transFuncTracebackString.
std::string StochHMM::transitionFuncParam::stringify | ( | ) |
prints the string representation of the externFuncs to stdout
Get string representation of the externalFuncs
Definition at line 170 of file externalFuncs.cpp.
References StochHMM::double_to_string(), StochHMM::weight::getAbsolute(), StochHMM::weight::getName(), StochHMM::weight::isAbsolute(), StochHMM::START_INIT, StochHMM::STATE_GFF, StochHMM::STATE_LABEL, StochHMM::STATE_NAME, StochHMM::STATEGFF, StochHMM::STATELABEL, StochHMM::STATENAME, trackName, transFuncCombineIdentifier, transFuncCombineString, transFuncName, transFuncScaling, transFuncTraceback, transFuncTracebackIdentifier, and transFuncTracebackString.
Referenced by print(), and StochHMM::transition::stringify().
|
private |
Definition at line 114 of file externalFuncs.h.
Referenced by getTrackName(), parse(), and stringify().
|
private |
Return string representation of the externFuncs definition in the model.
Definition at line 113 of file externalFuncs.h.
Referenced by evaluate(), parse(), setTransFunc(), and transitionFuncParam().
|
private |
Contains name of traceback.
Definition at line 127 of file externalFuncs.h.
Referenced by getCombineType(), parse(), setTransTB(), and stringify().
|
private |
< Contains information on how to combine the traceback information
Definition at line 128 of file externalFuncs.h.
Referenced by getCombineName(), parse(), setTransTB(), and stringify().
|
private |
Pointer to track function uses.
Definition at line 117 of file externalFuncs.h.
Referenced by parse(), setTransFunc(), and stringify().
|
private |
< Name of the external function as used in the model
Definition at line 119 of file externalFuncs.h.
Referenced by parse(), setTransFunc(), and stringify().
|
private |
< weighting information for values
Definition at line 122 of file externalFuncs.h.
Referenced by isTracebackDefined(), parse(), setTransTB(), and stringify().
|
private |
defines whether a traceback in necessary for the function
What to traceback until
Definition at line 124 of file externalFuncs.h.
Referenced by getTracebackType(), parse(), setTransTB(), and stringify().
|
private |
Definition at line 125 of file externalFuncs.h.
Referenced by getTracebackName(), parse(), setTransTB(), and stringify().
|
private |
What track to pass to the function.
Definition at line 115 of file externalFuncs.h.
Referenced by getTrack(), and parse().