title: Decoding coalescent hidden Markov models in linear time.
abstract: In many areas of computational biology, hidden Markov models (HMMs) have been used to model local genomic features. In particular, coalescent HMMs have been used to infer ancient population sizes, migration rates, divergence times, and other parameters such as mutation and recombination rates. As more loci, sequences, and hidden states are added to the model, however, the runtime of coalescent HMMs can quickly become prohibitive. Here we present a new algorithm for reducing the runtime of coalescent HMMs from quadratic in the number of hidden time states to linear, without making any additional approximations. Our algorithm can be incorporated into various coalescent HMMs, including the popular method PSMC for inferring variable effective population sizes. Here we implement this algorithm to speed up our demographic inference method diCal, which is equivalent to PSMC when applied to a sample of two haplotypes. We demonstrate that the linear-time method can reconstruct a population size change history more accurately than the quadratic-time method, given similar computation resources. We also apply the method to data from the 1000 Genomes project, inferring a high-resolution history of size changes in the European population.
authors.affiliation: Department of Mathematics, University of California, Berkeley.
authors.forename: Kelley
authors.initials: K
authors.lastname: Harris
authors.affiliation: Computer Science Division, University of California, Berkeley.
authors.forename: Sara
authors.initials: S
authors.lastname: Sheehan
authors.affiliation: Department of Statistics, University of California, Berkeley.
authors.forename: John A
authors.initials: JA
authors.lastname: Kamm
authors.affiliation: Department of Integrative Biology, University of California, Berkeley.
authors.forename: Yun S
authors.initials: YS
authors.lastname: Song