BioinformaticsBioinformaticsPeer-reviewed journal article
FactorialHMM: Fast and exact inference in factorial hidden Markov models
Abstract
MotivationHidden Markov models (HMMs) are powerful tools for modeling processes along the genome. In a standard genomic HMM, observations are drawn, at each genomic position, from a distribution whose parameters depend on a hidden state; the hidden states evolve along the genome as a Markov chain. Often, the hidden state is the Cartesian product of multiple processes, each evolving independently along the genome. Inference in these so-called Factorial HMMs has a naive running time that scales as the square of the number of possible states, which by itself increases exponentially with the number of subchains; such a running time scaling is impractical for many applications. While faster algorithms exist, there is no available implementation suitable for developing bioinformatics applications.\n\nResultsWe developed FactorialHMM, a Python package for fast exact inference in Factorial HMMs. Our package allows simulating either directly from the model or from the posterior distribution of states given the observations. Additionally, we allow the inference of all key quantities related to HMMs: (1) the (Viterbi) sequence of states with the highest posterior probability; (2) the likelihood of the data; and (3) the posterior probability (given all observations) of the marginal and pairwise state probabilities. The running time and space requirement of all procedures is linearithmic in the number of possible states. Our package is highly modular, providing the user with maximal flexibility for developing downstream applications.\n\nAvailabilityhttps://github.com/regevs/factorialhmm
- Citations
- 4
- FWCI
- 0.00
- Field percentile
- 16th percentile
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- An average-case sublinear exact Li and Stephens forward algorithm
Yohei Rosen, Benedict Paten·Algorithms for Molecular BiologyPeer-reviewed·Apr 2, 2019
- Machine Boss: Rapid Prototyping of Bioinformatic Automata
Jordi Silvestre-Ryan, Yujie Wang, … Ian H Holmes·BioinformaticsPeer-reviewed·Jul 13, 2020
- A fast and objective hidden Markov modeling for accurate analysis of biophysical data with numerous states
- Efficient inference of evolutionary and progressive dynamics on hypercubic transition graphs
Marcus T. Moen, Iain G. Johnston·bioRxiv·May 9, 2022
- A framework for space-efficient variable-order Markov models
Fabio Cunial, Jarno Alanko, Djamal Belazzougui·BioinformaticsPeer-reviewed·Apr 10, 2019
- Prohlatype: A Probabilistic Framework for HLA Typing
Leonid Rozenberg, Jeff Hammerbacher·bioRxiv·Jan 10, 2018