A Kolmogorov-Smirnov test for the molecular clock based on Bayesian ensembles of phylogenies

PLoS One. 2018 Jan 4;13(1):e0190826. doi: 10.1371/journal.pone.0190826. eCollection 2018.

Abstract

Divergence date estimates are central to understand evolutionary processes and depend, in the case of molecular phylogenies, on tests of molecular clocks. Here we propose two non-parametric tests of strict and relaxed molecular clocks built upon a framework that uses the empirical cumulative distribution (ECD) of branch lengths obtained from an ensemble of Bayesian trees and well known non-parametric (one-sample and two-sample) Kolmogorov-Smirnov (KS) goodness-of-fit test. In the strict clock case, the method consists in using the one-sample Kolmogorov-Smirnov (KS) test to directly test if the phylogeny is clock-like, in other words, if it follows a Poisson law. The ECD is computed from the discretized branch lengths and the parameter λ of the expected Poisson distribution is calculated as the average branch length over the ensemble of trees. To compensate for the auto-correlation in the ensemble of trees and pseudo-replication we take advantage of thinning and effective sample size, two features provided by Bayesian inference MCMC samplers. Finally, it is observed that tree topologies with very long or very short branches lead to Poisson mixtures and in this case we propose the use of the two-sample KS test with samples from two continuous branch length distributions, one obtained from an ensemble of clock-constrained trees and the other from an ensemble of unconstrained trees. Moreover, in this second form the test can also be applied to test for relaxed clock models. The use of a statistically equivalent ensemble of phylogenies to obtain the branch lengths ECD, instead of one consensus tree, yields considerable reduction of the effects of small sample size and provides a gain of power.

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • Animals
  • Ascomycota / classification
  • Ascomycota / genetics
  • Bayes Theorem
  • Computer Simulation
  • Cyclooxygenase 1 / genetics
  • DNA / genetics
  • Databases, Genetic
  • Evolution, Molecular*
  • Gene Products, env / genetics
  • Humans
  • Lentivirus / classification
  • Lentivirus / genetics
  • Models, Genetic*
  • Phylogeny*
  • Poisson Distribution
  • Primates / classification
  • Primates / genetics
  • Proteins / genetics
  • Statistics, Nonparametric
  • Time Factors

Substances

  • Gene Products, env
  • Proteins
  • DNA
  • Cyclooxygenase 1

Grants and funding

This work was supported by FAPESP (www.fapesp.br) grants 2015/50315-3 to Fernando Antoneli and 2013/07838-0 to Marcelo RS Briones and CNPq (www.cnpq.br) productivity fellowship 303905/2013-1 to Marcelo RS Briones.