Skip to content

atanna/hmm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Variable Length Hidden Markov Models (VLHMM)

The repository concludes two modules vlhmm, chipseq, which can solve next problems:

  • vlhmm:
    • building, training, plotting context transition tree
    • building, training VLHMM
  • chipseq:

Language: Python 3.x

Dependencies:

  • Cython
  • NumPy, SciPy
  • Pylab
  • datrie
  • PyGraphviz

Instalation:

git clone https://github.com/atanna/hmm.git

Cython-files compilation:

python setup.py build_ext --inplace

Examples

The directory vlhmm_/examples/ concludes test examples with training VLHMM and context trees on simulated data.

chipseq/real_test.py shows example VLHMM on ChIP-seq data


Description

Context transition tree
  • Context transition tree defines a stochastic process.
  • Context state -- any preffix from previous states (the process moves from right to left, i.e. states go in descending order of time).
  • Vertex ~ context.
  • Edge ~ state.
  • Outdegree of internal vertex -- number of states.
  • The leaf defines the distribution of the current state.
  • Examples
    1. "Unfair Coin"
      alt text

    2. Markov chain
      alt text

    3. Second-order Markov chain
      alt text

    4. Variable length Markov chain
      alt text

*Context transition tree defines a variable leghth Markov stochastic process.

VLHMM
  • The same as HMM.
  • Hidden layer is defined by variable leghth Markov stochastic process (which we can define by context transition tree).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published