Skip to main content
Bioinformatics logoLink to Bioinformatics
. 2012 Sep 12;28(22):2989–2990. doi: 10.1093/bioinformatics/bts555

Phylogenetics, likelihood, evolution and complexity

AP Jason de Koning 1,2, Wanjun Gu 3, Todd A Castoe 1,4, David D Pollock 1,*
PMCID: PMC3496332  PMID: 22976081

Abstract

Summary: Phylogenetics, likelihood, evolution and complexity (PLEX) is a flexible and fast Bayesian Markov chain Monte Carlo software program for large-scale analysis of nucleotide and amino acid data using complex evolutionary models in a phylogenetic framework. The program gains large speed improvements over standard approaches by implementing ‘partial sampling of substitution histories’, a data augmentation approach that can reduce data analysis times from months to minutes on large comparative datasets. A variety of nucleotide and amino acid substitution models are currently implemented, including non-reversible and site-heterogeneous mixture models. Due to efficient algorithms that scale well with data size and model complexity, PLEX can be used to make inferences from hundreds to thousands of taxa in only minutes on a desktop computer. It also performs probabilistic ancestral sequence reconstruction. Future versions will support detection of co-evolutionary interactions between sites, probabilistic tests of convergent evolution and rigorous testing of evolutionary hypotheses in a Bayesian framework.

Availability and implementation: PLEX v1.0 is licensed under GPL. Source code and documentation will be available for download at www.evolutionarygenomics.com/ProgramsData/PLEX. PLEX is implemented in C++ and supported on Linux, Mac OS X and other platforms supporting standard C++ compilers. Example data, control files, documentation and accessory Perl scripts are available from the website.

Contact: David.Pollock@UCDenver.edu

Supplementary information: Supplementary data are available at Bioinformatics online.

1 INTRODUCTION

Comparative genomic and phylogenetic datasets are growing dramatically in size, thanks to rapid and inexpensive next-generation DNA sequencing technologies. The wealth of information present in large datasets, however, is difficult to exploit due to the non-linearly increasing computational burden imposed by increasing data size and model complexity (de Koning et al., 2010). For example, it is not uncommon for phylogenetic analysis of large datasets to now incur compute times on the order of months, even with models that are fairly simple from a mechanistic, biochemical perspective (e.g. Rodrigue et al., 2010).

To help overcome these challenges, we developed Phylogenetics, Likelihood, Evolution and Complexity (PLEX), which implements rapid data augmentation methods using partial sampling of substitution histories (de Koning et al., 2010) and derivative methods. PLEX is an active research platform and will support the future development of new models and algorithms. The capabilities of PLEX will therefore expand over time. For example, the current version now incorporates more models than previously as well as implementations of conjugate Gibbs sampling (Lartillot, 2006) and slice sampling (Neal, 2003).

2 APPROACH

PLEX performs Bayesian Markov chain Monte Carlo (MCMC) analysis using novel data augmentation strategies that can afford it great speed advantages over MCMC packages that use fully integrated likelihood calculations (e.g. MrBayes, Ronquist and Huelsenbeck, 2003 and BEAST, Drummond and Rambaut, 2007). Speed advantages are obtained by ‘partially sampling’ substitution events to the nearest branch region and rapidly integrating over the timing of events within regions when evaluating the likelihood. This approach can be much faster than sampling the exact timing of substitution events, but appears to retain the computational advantages of doing so (de Koning et al., 2010). As a result, PLEX is faster than programs that augment sequences with fully specified substitution histories (e.g. PhyloBayes; Lartillot et al., 2009).

The program samples branch lengths, model parameters and ‘missing’ unobserved data (e.g. ancestral states) from their posterior distributions and provides posterior summaries to facilitate inferences about evolutionary mechanisms. The distribution also includes the ability to calculate posterior statistics of substitution histories, which can be an effective approach for making complex inferences from comparative data without fully modeling the processes of interest (e.g. for detecting co-evolution; our unpublished data). Posterior-predictive simulation is included for some model checking applications, and Bayes factor calculation can be made using thermodynamic integration (Lartillot and Philippe, 2006; Rodrigue and Aris-Brosou, 2011).

Importantly, the speed advantages enabled by PLEX’s data augmentation approach help to overcome computational challenges of large-scale phylogenomic inference in general and are thus applicable to virtually any evolutionary model or phylogenetic analysis task (de Koning et al., 2010). Furthermore, the approach was designed to substantially reduce the scaling of time complexity with model complexity (Supplementary Fig. S1), so that model realism can be more effectively explored without the need to greatly oversimplify models for computational convenience.

For example, the times to achieve an average of 1000 effectively independent posterior samples on a large dataset are shown for a variety of amino acid substitution models (Table 1). Remarkably, the most parameter-rich site-homogeneous model in this set is also the easiest to sample from (and therefore the fastest), because conjugate Gibbs sampling mechanisms are possible for all parameters in this case (general non-reversible). Thus, not only do these approaches reduce the need to simplify models for computational convenience but also in some cases they facilitate an inversion of incentives, making complex models more computationally convenient than simpler ones. It should be noted that similar contrasts can be constructed when exact substitution timings are augmented (Lartillot, 2006). For performance comparisons between PLEX and several popular phylogenetics programs, see Supplementary Results.

Table 1.

Speed and efficiency of sampling amino acid rate matrix parameters (224 mammalian cyt-b sequences)

Method Num. parameters Gen. time (s) Efficiencya Timeb(s)
General non-reversible model (conjugate Gibbs) 827 0.0012 78.0% ± 31 144
General reversible model (slice sampling) 636 0.0023 57.6% ± 41 406
General non-reversible + 4-cat. discrete gamma (slice + Metropolis–Hastings sampling) 828 0.0044 72.4% ± 32 602

aAverage effective sample size per generation (mixing efficiency).

bTime to achieve average of 1000 effectively independent samples.

When Gibbs update mechanisms are unavailable for a given model, PLEX uses slice sampling or Metropolis–Hastings updates. The simple form of PLEX’s likelihood function often makes likelihood evaluations for these mechanisms extremely rapid and sometimes even O(1) (de Koning et al., 2010).

The PLEX code is written in C/C++ and has no dependencies on external libraries. It should therefore compile on any platform that supports standard C/C++.

3 APPLICATIONS

PLEX is run at the command line using a control file interface that allows customization of analyses, including locations of input sequence alignments and tree topologies. Example control files are included that demonstrate how to run most types of supported analyses. Any position in the alignment possessing a gap can be excluded or optionally treated as missing.

PLEX currently has several main uses, including:

  1. Rate matrix and branch-length estimation from hundreds to thousands of taxa in minutes on a desktop computer.

  2. Inference of site heterogeneity in substitution patterns.

  3. Probabilistic inference of ensembles of ancestral states.

  4. Calculation of posterior statistics of substitution histories (e.g. for tests of co-evolution; our unpublished data).

  5. Hypothesis testing and model evaluation using posterior-predictive statistics (scripts to automate thermodynamic integration will be made available in a future release).

PLEX is an active research platform for the development of new models and algorithms. As such, it will be updated frequently and will grow in capabilities over time. We therefore expect that PLEX will continue to evolve into an increasingly capable and comprehensive package for studying molecular evolutionary mechanisms.

4 CONCLUSION

PLEX is a software package for performing rapid and accurate Bayesian MCMC analysis on large phylogenomic datasets that remain under active development. Future updates will include models of temporal heterogeneity, spatial substitution gradients (Faith and Pollock, 2003) and codon substitution. It is likely that parallelization and tuning of our slice sampling algorithms will further substantially improve speed for certain complex analysis tasks and will thus be pursued in future releases.

Funding: The National Institutes of Health (NIGMS R01 GM083127 and GM097251 to D.D.P.) and the National Natural Science Foundation of China (30900836 to W.G.).

Conflicts of Interest: none declared.

Supplementary Material

Supplementary Data

REFERENCES

  1. de Koning APJ, et al. Rapid likelihood analysis on large phylogenies using partial sampling of substitution histories. Mol. Biol. Evol. 2010;27:249–265. doi: 10.1093/molbev/msp228. [DOI] [PMC free article] [PubMed] [Google Scholar]
  2. Drummond AJ, Rambaut A. BEAST: Bayesian evolutionary analysis by sampling trees. BMC Evol. Biol. 2007;7:214. doi: 10.1186/1471-2148-7-214. [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Faith JJ, Pollock DD. Likelihood analysis of asymmetrical mutation bias gradients in vertebrate mitochondrial genomes. Genetics. 2003;165:735–745. doi: 10.1093/genetics/165.2.735. [DOI] [PMC free article] [PubMed] [Google Scholar]
  4. Lartillot N. Conjugate Gibbs sampling for Bayesian phylogenetic models. J. Comput. Biol. 2006;13:1701–1722. doi: 10.1089/cmb.2006.13.1701. [DOI] [PubMed] [Google Scholar]
  5. Lartillot N, et al. PhyloBayes 3: a Bayesian software package for phylogenetic reconstruction and molecular dating. Bioinformatics. 2009;25:2286–2288. doi: 10.1093/bioinformatics/btp368. [DOI] [PubMed] [Google Scholar]
  6. Lartillot N, Philippe H. Computing Bayes factors using thermodynamic integration. Syst. Biol. 2006;55:195–207. doi: 10.1080/10635150500433722. [DOI] [PubMed] [Google Scholar]
  7. Neal RM. Slice sampling. Ann. Stat. 2003;31:705–741. [Google Scholar]
  8. Rodrigue N, Aris-Brosou S. Fast Bayesian choice of phylogenetic models: prospecting data augmentation-based thermodynamic integration. Syst. Biol. 2011;60:881–887. doi: 10.1093/sysbio/syr065. [DOI] [PubMed] [Google Scholar]
  9. Rodrigue N, et al. Mutation-selection models of coding sequence evolution with site-heterogeneous amino acid fitness profiles. Proc. Natl Acad. Sci. USA. 2010;107:4629–4634. doi: 10.1073/pnas.0910915107. [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Ronquist F, Huelsenbeck JP. MrBayes 3: Bayesian phylogenetic inference under mixed models. Bioinformatics. 2003;19:1572–1574. doi: 10.1093/bioinformatics/btg180. [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplementary Data

Articles from Bioinformatics are provided here courtesy of Oxford University Press

RESOURCES