StochHMM
v0.34
Flexible Hidden Markov Model C++ Library and Application
|
#include <alignment.h>
Public Member Functions | |
alignment () | |
double | align (alignment_type typ) |
double | align (sequence &target, sequence &query, alignment_type typ) |
double | align (sequence &target, sequence &query, alignment_type typ, double match, double mismatch, double gap, double gapext) |
double | align (sequence &target, sequence &query, alignment_type typ, const mmMatrix &, double gap, double gapext) |
double | calcLambda (std::vector< double > &) |
double | estimateLambda () |
double | calc_pvalue () |
void | setMatrix (mmMatrix &) |
void | setMatch (double) |
void | setMismatch (double) |
void | setGap (double value) |
void | setGapExt (double value) |
void | setTarget (sequence &) |
void | setQuery (sequence &) |
int | getHighScore () |
size_t | getAlignmentSize () |
std::string | getAlignment () |
void | printAlignment () |
void | printTrellis () |
std::string | traceback () |
std::string | stochasticTraceback () |
Private Member Functions | |
void | _reset () |
void | _resetSeqs () |
double | _getGapScore (size_t, size_t, tracebackDirection) |
void | _initTrellis (size_t, size_t) |
Private Attributes | |
sequence * | target |
sequence * | query |
track * | tr |
std::vector< std::vector< cell > > * | trellis |
std::vector< std::vector < double > > * | mMatrix |
double | gap |
double | gap_ext |
double | high_score |
size_t | start_position |
size_t | end_position |
Definition at line 46 of file alignment.h.
StochHMM::alignment::alignment | ( | ) |
Definition at line 19 of file alignment.cpp.
|
private |
Definition at line 167 of file alignment.cpp.
References gap, gap_ext, StochHMM::LEFT, and StochHMM::UP.
Referenced by align().
|
private |
Definition at line 192 of file alignment.cpp.
References gap, gap_ext, StochHMM::LEFT, StochHMM::NONE, StochHMM::cell::setDiag(), StochHMM::cell::setLeft(), StochHMM::cell::setScore(), StochHMM::cell::setTraceback(), StochHMM::cell::setUp(), trellis, and StochHMM::UP.
Referenced by align().
|
private |
Definition at line 24 of file alignment.cpp.
References end_position, gap, gap_ext, high_score, mMatrix, query, start_position, target, and tr.
|
private |
Definition at line 38 of file alignment.cpp.
References end_position, high_score, mMatrix, query, start_position, and target.
Referenced by setQuery(), and setTarget().
double StochHMM::alignment::align | ( | alignment_type | typ | ) |
Definition at line 247 of file alignment.cpp.
References _getGapScore(), _initTrellis(), StochHMM::cGlobal, StochHMM::cLocal, StochHMM::DIAGONAL, StochHMM::sequence::getSymbol(), StochHMM::LEFT, printTrellis(), query, StochHMM::sequence::seqValue(), StochHMM::sequence::size(), target, and StochHMM::UP.
Referenced by align(), and calc_pvalue().
double StochHMM::alignment::align | ( | sequence & | target, |
sequence & | query, | ||
alignment_type | typ | ||
) |
double StochHMM::alignment::align | ( | sequence & | target, |
sequence & | query, | ||
alignment_type | typ, | ||
double | match, | ||
double | mismatch, | ||
double | gap, | ||
double | gapext | ||
) |
Definition at line 235 of file alignment.cpp.
References align(), setGap(), setGapExt(), setMatch(), setMismatch(), setQuery(), and setTarget().
double StochHMM::alignment::align | ( | sequence & | target, |
sequence & | query, | ||
alignment_type | typ, | ||
const mmMatrix & | , | ||
double | gap, | ||
double | gapext | ||
) |
double StochHMM::alignment::calc_pvalue | ( | ) |
Definition at line 400 of file alignment.cpp.
References align(), StochHMM::cGlobal, query, and setQuery().
double StochHMM::alignment::calcLambda | ( | std::vector< double > & | frequencies | ) |
Definition at line 382 of file alignment.cpp.
double StochHMM::alignment::estimateLambda | ( | ) |
Definition at line 387 of file alignment.cpp.
References mMatrix.
std::string StochHMM::alignment::getAlignment | ( | ) |
|
inline |
Definition at line 72 of file alignment.h.
References end_position, and start_position.
|
inline |
void StochHMM::alignment::printAlignment | ( | ) |
void StochHMM::alignment::printTrellis | ( | ) |
Definition at line 226 of file alignment.cpp.
Referenced by align().
|
inline |
|
inline |
Definition at line 65 of file alignment.h.
References gap_ext.
Referenced by align().
void StochHMM::alignment::setMatch | ( | double | value | ) |
Definition at line 48 of file alignment.cpp.
References mMatrix, query, StochHMM::sequence::size(), and target.
Referenced by align().
void StochHMM::alignment::setMatrix | ( | mmMatrix & | matrix | ) |
Definition at line 78 of file alignment.cpp.
References mMatrix, query, StochHMM::sequence::size(), and target.
void StochHMM::alignment::setMismatch | ( | double | value | ) |
Definition at line 96 of file alignment.cpp.
References mMatrix, query, StochHMM::sequence::size(), and target.
Referenced by align().
void StochHMM::alignment::setQuery | ( | sequence & | seq | ) |
Definition at line 147 of file alignment.cpp.
References _resetSeqs(), end_position, StochHMM::sequence::getTrack(), high_score, query, start_position, and tr.
Referenced by align(), and calc_pvalue().
void StochHMM::alignment::setTarget | ( | sequence & | seq | ) |
Definition at line 127 of file alignment.cpp.
References _resetSeqs(), end_position, StochHMM::sequence::getTrack(), high_score, start_position, target, and tr.
Referenced by align().
std::string StochHMM::alignment::stochasticTraceback | ( | ) |
std::string StochHMM::alignment::traceback | ( | ) |
|
private |
Definition at line 101 of file alignment.h.
Referenced by _reset(), _resetSeqs(), getAlignmentSize(), setQuery(), and setTarget().
|
private |
Definition at line 96 of file alignment.h.
Referenced by _getGapScore(), _initTrellis(), and _reset().
|
private |
Definition at line 97 of file alignment.h.
Referenced by _getGapScore(), _initTrellis(), _reset(), and setGapExt().
|
private |
Definition at line 99 of file alignment.h.
Referenced by _reset(), _resetSeqs(), getHighScore(), setQuery(), and setTarget().
|
private |
Definition at line 94 of file alignment.h.
Referenced by _reset(), _resetSeqs(), estimateLambda(), setMatch(), setMatrix(), and setMismatch().
|
private |
Definition at line 89 of file alignment.h.
Referenced by _reset(), _resetSeqs(), align(), calc_pvalue(), setMatch(), setMatrix(), setMismatch(), and setQuery().
|
private |
Definition at line 100 of file alignment.h.
Referenced by _reset(), _resetSeqs(), getAlignmentSize(), setQuery(), and setTarget().
|
private |
Definition at line 88 of file alignment.h.
Referenced by _reset(), _resetSeqs(), align(), setMatch(), setMatrix(), setMismatch(), and setTarget().
|
private |
Definition at line 91 of file alignment.h.
Referenced by _reset(), setQuery(), and setTarget().
|
private |
Definition at line 93 of file alignment.h.
Referenced by _initTrellis().