New phylogenetic methods for studying the phenotypic axis of adaptive radiation Liam J. Revell University of Massachusetts Boston
Outline 1.The ‘phytools’ package. 2.New approaches for the analysis of quantitative trait data: a)Phylogenetic analysis of the evolutionary correlation. b)Bayesian method for locating rate shifts in the tree. c)Incorporating intraspecific variability in phylogenetic analyses. 3.Luke!
Outline 1.The ‘phytools’ package. 2.New approaches for the analysis of quantitative trait data: a)Phylogenetic analysis of the evolutionary correlation. b)Bayesian method for locating rate shifts in the tree. c)Incorporating intraspecific variability in phylogenetic analyses. 3.Luke!
Phylogenetics in R
Simulation Visualization Tree input/output/manipulation Inference Comparative biology -> Major functions of ‘phytools’
Outline 1.The ‘phytools’ package. 2.New approaches for the analysis of quantitative trait data: a)Phylogenetic analysis of the evolutionary correlation. b)Bayesian method for locating rate shifts in the tree. c)Incorporating intraspecific variability in phylogenetic analyses. 3.Luke!
Outline 1.The ‘phytools’ package. 2.New approaches for the analysis of quantitative trait data: a)Phylogenetic analysis of the evolutionary correlation. b)Bayesian method for locating rate shifts in the tree. c)Incorporating intraspecific variability in phylogenetic analyses. 3.Luke!
The evolutionary correlation Revell & Collar 2009, Evolution
non-piscivorous piscivorous
Likelihood For 2-Correlation Model Revell & Collar 2009, Evolution
Table. Model selection for the one and two rate matrix models. Modelrlog(L)AICc One matrix model R = Two matrix model R 1 (Non-piscivory) = R 2 (Piscivory) =0.779 Likelihood ratio test -2·log(L 1 /L 2 ) = 19.94P(χ 2,df=3) < Revell & Collar 2009, Evolution
Outline 1.R phylogenetics and the ‘phytools’ package. 2.New approaches for the analysis of quantitative trait data: a)Phylogenetic analysis of the evolutionary correlation. b)Bayesian method for locating rate shifts in the tree. c)Incorporating intraspecific variability in phylogenetic analyses. 3.Luke!
Bayesian MCMC method for rate variation x 20 Revell, & al. 2012
Bayesian MCMC method for rate variation Revell, & al. 2012
Bayesian MCMC method for rate variation ? ? ? Revell, & al. 2012
Bayesian MCMC chain: evol.rate.mcmc() posterior sample Starting values σ12σ12 σ22σ22 Evolutionary rates & rate- shift Proposal σ12σ12 σ22σ22 Propose new rate-shift (or rates) XLP XLP | |,1min Compute posterior odds ratio Retain proposal with probability α Repeat Reject proposal with probability 1-α
Bayesian MCMC chain
MCMC proposal σ22σ22 σ12σ12 Rate shift point with two evolutionary rates: the rate tipward (σ 2 2, in this case) and rootward of the rate- shift.
MCMC proposal 1. Propose shift from exponential distribution. 2. Go right or left with equal probability; reflect back down the tree from the tips.
MCMC proposal σ12σ12 σ22σ22 1. Propose shift from exponential distribution. 2. Go right or left with equal probability; reflect back down the tree from the tips.
Averaging the posterior sample: min.split() To find the median shift-point in our sample, we first computed the patristic distance between all the shifts in our posterior sample. We then picked the split with the lowest summed distance to all the other sample. (We might have instead found the shift with the lowest sum of squared distances, or found a point on a tree that minimized the sum of squared distances.)
Averaging the posterior sample: min.split() We can also compute the posterior probabilities of the shift being on any edge. We just calculate these as the frequency of the edge in the posterior sample
Averaging the posterior: posterior.evolrate() Averaging the posterior sample of rates is also non-trivial. This is because our posterior sample is a mixture of rates comprising different parts of the tree and different tips. How can we average the rates from these different samples?
Averaging the posterior: posterior.evolrate() σ 2 2 σ 1 2
σ 2 2 σ 1 2 XX
X X x σ 1 2 x σ 2 2
Averaging the posterior: posterior.evolrate()
X X x σ 2 2 x σ 1 2 In this case, σ 2 2 = σ 2 2 ; while σ 1 2 > σ 1 2
Identification of the “correct” edge Somewhat surprisingly, identification of the “correct” edge was effectively independent of the number of tips in the tree for a given rate shift. However, relative patristic distance from the true shift point does decline with increasing N.
Estimating the evolutionary rates We do get better at estimating the evolutionary rates unbiasedly (and their ratio) for increased N. The evolutionary rates tend to be biased towards each other for small N, which we think is a natural consequence of integrating over uncertainty in the location of the rate shift.
Outline 1.The ‘phytools’ package. 2.New approaches for the analysis of quantitative trait data: a)Phylogenetic analysis of the evolutionary correlation. b)Bayesian method for locating rate shifts in the tree. c)Incorporating intraspecific variability in phylogenetic analyses. 3.Luke!
Phylogenetic comparative analyses are conducted with species means. But data in empirical studies are uncertain estimates obtained by measuring one or a few individuals. **Ignoring intraspecific variability can cause bias in various types of comparative analysis. Our solution: sample both species means & variances, and the parameters of the evolutionary model, from their joint posterior distribution using Bayesian MCMC. Introduction
First, we need an equation for the likelihood:
How does it work?
MCMC phytools:: fitBayes Posterior sample (Revell & Reynolds, 2012) How does it work?
> results gen sig2 a e e e-01 t1 t e e How does it work?
xbar estimated means How does it work?
xbar estimated means > results gen sig2 a e e e-01 t1 t e e > SS.bayes [1] > SS.arith [1] How does it work?
Is this result general.... YES! Generating σ Mean square error -- MSE Bayesian means -- MSE arithmetic means
Outline 1.The ‘phytools’ package. 2.New approaches for the analysis of quantitative trait data: a)Phylogenetic analysis of the evolutionary correlation. b)Bayesian method for locating rate shifts in the tree. c)Incorporating intraspecific variability in phylogenetic analyses. 3.Luke!