ContextSV 0.0.1
Integrative SV calling.
All Classes Files Functions Variables Typedefs Macros
khmm.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CHMM
 

Functions

CHMM ReadCHMM (const char *filename)
 Read an HMM from a file.
 
void FreeCHMM (CHMM *phmm)
 Free the memory allocated for an HMM.
 
std::vector< int > testVit_CHMM (CHMM hmm, int T, double *O1, double *O2, double *pfb, int *snpdist, double *plogproba)
 Run the main HMM algorithm.
 
std::vector< int > ViterbiLogNP_CHMM (CHMM *phmm, int T, double *O1, double *O2, double *pfb, int *snpdist, double **delta, int **psi, double *pprob)
 Viterbi algorithm.
 
double b1iot (int state, double *mean, double *sd, double uf, double o)
 O1 emission probability.
 
double b2iot (int state, double *mean, double *sd, double uf, double pfb, double b)
 O2 emission probability.
 

Function Documentation

◆ b1iot()

double b1iot ( int  state,
double *  mean,
double *  sd,
double  uf,
double  o 
)

O1 emission probability.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ b2iot()

double b2iot ( int  state,
double *  mean,
double *  sd,
double  uf,
double  pfb,
double  b 
)

O2 emission probability.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FreeCHMM()

void FreeCHMM ( CHMM phmm)

Free the memory allocated for an HMM.

Here is the call graph for this function:

◆ ReadCHMM()

CHMM ReadCHMM ( const char *  filename)

Read an HMM from a file.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ testVit_CHMM()

std::vector< int > testVit_CHMM ( CHMM  hmm,
int  T,
double *  O1,
double *  O2,
double *  pfb,
int *  snpdist,
double *  plogproba 
)

Run the main HMM algorithm.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ViterbiLogNP_CHMM()

std::vector< int > ViterbiLogNP_CHMM ( CHMM phmm,
int  T,
double *  O1,
double *  O2,
double *  pfb,
int *  snpdist,
double **  delta,
int **  psi,
double *  pprob 
)

Viterbi algorithm.

Here is the call graph for this function:
Here is the caller graph for this function: