phylobayes - what, why, and how - evolution and...

24
PhyloBayes - what, why, and how Xiaofan Zhou Integrative Microbiology Research Centre South China Agricultural University 2019-01-25

Upload: others

Post on 28-Jan-2021

7 views

Category:

Documents


0 download

TRANSCRIPT

  • PhyloBayes- what, why, and how

    Xiaofan ZhouIntegrative Microbiology Research Centre

    South China Agricultural University2019-01-25

  • PhyloBayesPhyloBayes

    a Bayesian phylogenetic software based on mixture models

  • Bayesian phylogenetics

    ๐‘ƒ๐‘ƒ ๐‘€๐‘€ ๐ท๐ท =๐‘ƒ๐‘ƒ ๐ท๐ท ๐‘€๐‘€ โˆ— ๐‘ƒ๐‘ƒ(๐‘€๐‘€)

    ๐‘ƒ๐‘ƒ(๐ท๐ท)

    ๐‘ƒ๐‘ƒ ๐‘€๐‘€,๐ท๐ท = ๐‘ƒ๐‘ƒ ๐‘€๐‘€ ๐ท๐ท โˆ— ๐‘ƒ๐‘ƒ ๐ท๐ท = ๐‘ƒ๐‘ƒ ๐ท๐ท ๐‘€๐‘€ โˆ— ๐‘ƒ๐‘ƒ(๐‘€๐‘€)

    ๐‘ƒ๐‘ƒ ๐‘€๐‘€ ๐ท๐ท =๐‘ƒ๐‘ƒ ๐ท๐ท ๐‘€๐‘€ โˆ— ๐‘ƒ๐‘ƒ(๐‘€๐‘€)โˆ‘๐‘ƒ๐‘ƒ ๐ท๐ท ๐‘€๐‘€ โˆ— ๐‘ƒ๐‘ƒ(๐‘€๐‘€)

    Posterior probability Likelihood Prior

  • Among site variation in sequence evolutionโ€ข Evolutionary rates

    โ€ข Substitution modelโ€ข Exchange rate matrixโ€ข Equilibrium frequency profile (PhyloBayes-CAT!!!)

  • Components of substitution model

    To

    From A T C G

    A aฯ€T bฯ€C cฯ€GT aฯ€A dฯ€C eฯ€GC bฯ€A dฯ€T fฯ€GG cฯ€A eฯ€T fฯ€C

    Rate matrix of the GTR model

    โ€œexchangeabilityโ€

    To

    From A T C G

    A a b c

    T a d e

    C b d f

    G c e f

    Equilibrium frequencies

    [ฯ€A, ฯ€T, ฯ€C, ฯ€G]

    F81 (Poisson) model:a = b = c = d = e = f =1

  • Dirichlet process for site assignment

  • Long-Branch Attraction

    True tree Inferred tree

  • PhyloBayes-CAT can suppress LBA

  • Models available in PhyloBayes

    Exchangeability matrix

    Equilibrium frequency Evolutionary Rate Data partition

    โ€ข Poisson

    โ€ข Empirical model- JTT- LGโ€ฆ

    โ€ข GTR

    โ€ข Mixture model

    โ€ข Site homogeneous- similar to โ€œ+Fโ€ in ML

    โ€ข Site heterogeneous- CAT- empirical mixture models (e.g. C10-C60)

    โ€ข Gamma distribution- discrete- continuous

    โ€ข CAT model of rate

    โ€ข Partially linked branch-length

    โ€ข Partition-specific substitution matrix not supported (?)

  • Partitioned PhyloBayes-MPI

  • Limitations of PhyloBayes

    โ€ข CAT+GTR model is very slowโ€ฆโ€ฆโ€ข Even with PhyloBayes-MPI

    โ€ข Hard to convergeโ€ข Particularly CAT+GTR

    โ€ข CAT-Poisson is often used instead of CAT-GTR

    โ€ข Results of unconverged analyses were reported

  • โ€œโ€ฆโ€ฆ CAT-F81 consistently performed worse than other models (partitioning and CAT-GTR) in inferring the correct branching patterns โ€ฆโ€ฆโ€

  • Alternative solution in ML

    โ€ข Empirical mixture models in MLโ€ข C10 to C60

    โ€ข Firstly introduced in PhyML-CAT

    โ€ข Fast implementation in IQ-TREE, further accelerated using PMSF

  • Alternative solution in ML

    โ€ข Empirical mixture models in MLโ€ข C10 to C60

    โ€ข Fast implementation in IQ-TREE, further accelerated using PMSF

    Tree,Alignment,Model (e.g., C10)

    Wang et al. (2017) Syst. Biol.

  • Model comparison in PhyloBayes

    โ€ข Bayes factor

    โ€ข Cross-Validationโ€ข How well can the models predict future data?

    โ€ข Posterior predictive analysisโ€ข How well does simulated data approximate observed data?

  • Cross Validation

    โ€ข ๐‘ƒ๐‘ƒ ๐ท๐ท๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก ๐ท๐ท๐‘™๐‘™๐‘ก๐‘ก๐‘™๐‘™๐‘™๐‘™๐‘™๐‘™,๐‘€๐‘€๐‘™๐‘™ ๐‘ฃ๐‘ฃ๐‘ก๐‘ก. ๐‘ƒ๐‘ƒ(๐ท๐ท๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก|๐ท๐ท๐‘™๐‘™๐‘ก๐‘ก๐‘™๐‘™๐‘™๐‘™๐‘™๐‘™,๐‘€๐‘€๐‘€๐‘€)

    Original alignment

    L0

    L1...

    Ln

    T0

    T1...

    Tn

    Posterior distribution of model parameters

    ๐‘ƒ๐‘ƒ ๐ท๐ท๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก๐‘ก ๐ท๐ท๐‘™๐‘™๐‘ก๐‘ก๐‘™๐‘™๐‘™๐‘™๐‘™๐‘™,๐‘€๐‘€

  • Posterior predictive analysis

    โ€ข Compare observed data vs. simulate data (using trained model)

    โ€ข Resemble parametric bootstrap in MLโ€ข Parameters sampled from posterior distributions instead of being fixed

    โ€ข Available tests:โ€ข Biochemical specificityโ€ข Compositional homogeneityโ€ข Saturation

  • Tutorial

    1. Run PhyloBayes analyses on a toy dataset with four taxa:โ€ข Check for convergence (e.g., TRACER)โ€ข Compare inferred tree with true tree (e.g., phylo.io)โ€ข Try different models (e.g., F81, GTR, CAT+F81, CAT+GTRโ€ฆ)

    2. Perform model comparisonโ€ข Cross-Validationโ€ข Posterior predictive analysis

    3. Compare with empirical mixture models in ML (IQ-TREE)

  • The dataset was simulated under LBA

    โ€ข 4 taxa, ~21,000 amino acid sites

    โ€ข Simulated under LG+C60+F

    โ€ข ๐‘™๐‘™ ranges from 1 to 10 to model different levels of LBA artefact

    True tree

    0.7

    0.01 โˆ— ๐‘™๐‘™

    Wang et al. (2018) Syst. Biol.

  • Markov chain Monte Carlo

  • When does it finish?

    โ€ข Check for convergence between runs

    โ€ข Visually:โ€ข TRACER (http://beast.community/tracer)โ€ข AWTY (http://king2.scs.fsu.edu/CEBProjects/awty/awty_start.php)โ€ข Graphylo (https://github.com/wrf/graphphylo)

    โ€ข bpcomp (in PhyloBayes)

  • When does it finish?

  • PhyloBayes๏ฟฝ- what, why, and howPhyloBayes๏ฟฝBayesian phylogeneticsAmong site variation in sequence evolutionComponents of substitution modelDirichlet process for site assignmentLong-Branch AttractionPhyloBayes-CAT can suppress LBAModels available in PhyloBayesPartitioned PhyloBayes-MPILimitations of PhyloBayesๅนป็ฏ็‰‡็ผ–ๅท 12Alternative solution in MLAlternative solution in MLModel comparison in PhyloBayesCross ValidationPosterior predictive analysisๅนป็ฏ็‰‡็ผ–ๅท 18TutorialThe dataset was simulated under LBAMarkov chain Monte CarloWhen does it finish?When does it finish?ๅนป็ฏ็‰‡็ผ–ๅท 24