StochHMM
v0.34
Flexible Hidden Markov Model C++ Library and Application
|
Define the ambiguous characters symbol and index number for digitizing ambiguous characters in the sequence For example in DNA N = [ACGT] = [0,1,2,3]. More...
#include <track.h>
Public Member Functions | |
ambigCharacter (track *, std::string &, std::vector< std::string > &) | |
std::string | getSymbol () |
std::vector< size_t > & | getDef () |
Private Attributes | |
std::string | symbol |
std::vector< size_t > | setDefinition |
Define the ambiguous characters symbol and index number for digitizing ambiguous characters in the sequence For example in DNA N = [ACGT] = [0,1,2,3].
StochHMM::ambigCharacter::ambigCharacter | ( | track * | tr, |
std::string & | ambChar, | ||
std::vector< std::string > & | defs | ||
) |
Create an ambiguous character For example in DNA N = [ACGT] = [0,1,2,3]
tr | Track to use for ambiguity code |
ambChar | String representation of the character/symbol/word for ambiguous character |
defs | vector of strings where each string is a non-ambiguous character defined in the track |
Definition at line 36 of file track.cpp.
References setDefinition, symbol, and StochHMM::track::symbolIndex().
|
inline |
Get the characters that the characters defines. For example in DNA N = [ACGT] = [0,1,2,3]
Definition at line 74 of file track.h.
|
inline |
|
private |
Definition at line 78 of file track.h.
Referenced by ambigCharacter().
|
private |
Definition at line 74 of file track.h.
Referenced by ambigCharacter(), and getSymbol().