Week 9: Quantitative characters, comparative method...

98
Week 9: Quantitative characters, comparative method, coalescents Genome 570 March, 2014 Week 9: Quantitative characters, comparative method, coalescents – p.1/98

Transcript of Week 9: Quantitative characters, comparative method...

Page 1: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Week 9: Quantitative characters, comparative method,coalescents

Genome 570

March, 2014

Week 9: Quantitative characters, comparative method, coalescents – p.1/98

Page 2: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

“Pruning” a tree in the Brownian motion case

+v

1 v2

v3 v

4v5

v6

x1

x2

x3

x4

v1

v2

x1

x2

v3 v

4v5

v6

δ

x3

x4

x12

v1

v2

δ =v

2v

1+

x1

x2

x12 v

2v

1+

=

v1

v2

+

Week 9: Quantitative characters, comparative method, coalescents – p.2/98

Page 3: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

What about quantitative characters?

In the classical (Fisher, 1918) model of quantitative genetics, a

quantitative character is a sum of contributions from different loci, plus anindependent environmental effect:

P = µ +

AA 1.2Aa 0.8aa 0.7

+

BB −0.02Bb 0.00bb 0.01

+ . . . +

ZZ 0.21Zz 0.21zz −0.17

+ ε

In that case if locus is independently changing by (approximate) Brownianmotion, the character’s phenotype will also change by approximateBrownian motion.

Week 9: Quantitative characters, comparative method, coalescents – p.3/98

Page 4: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

What about quantitative characters?

For neutral mutation and genetic drift, can show that for a quantitativecharacter with additive genetic variance VA and population size N the

variance through time of the genetic (additive) value of the populationmean is:

Var(∆g) = VA/N

so it is smaller the bigger the population is, as there is less genetic drift.

If mutation and drift are at equilibrium:

E[

V(t+1)A

]

= V(t)A

(

1 −1

2N

)

+ VM

which lets us calculate what the additive genetic variance becomes, onaverage. This leads to a surprise ...

Week 9: Quantitative characters, comparative method, coalescents – p.4/98

Page 5: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

In neutral traits multational variance rules

so thatE [VA] = 2NVM

whereby

Var[∆g] = (2NVM) /N = 2VM,

an analogue of Kimura’s result for neutral mutation.

There is a precise analogue of this for multiple characters.

Thus to transform characters to independent Brownian motions of equalevolutionary variance, we could use their additive genetic variance VA.

Week 9: Quantitative characters, comparative method, coalescents – p.5/98

Page 6: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

With selection ... life is harder

There is the quantitative genetics formula of Wright and Fisher (1920’s)

∆z = h2S

and Russ Lande’s (1976) recasting of that in terms of slopes of mean

fitness surfaces:

S = VP

d log (w)

dx

∆z = (VA/VP) VP

d log (w)

dx= VA

d log (w)

dx

Week 9: Quantitative characters, comparative method, coalescents – p.6/98

Page 7: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Selection towards an optimum

P

Vs

Fit

nes

sPhenotype

If fitness as a function of phenotype is:

w(x) = exp

[

−(x − p)2

2Vs

]

,

Then the change of mean phenotype “chases” the optimum:

m′ − m =VA

Vs + VP

(p − m),

in each generation moving a constant fraction of the way to the optimum.Week 9: Quantitative characters, comparative method, coalescents – p.7/98

Page 8: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Genetic drift, mutation and selection give an OU process

(The plots are from the same sets of random numbers)T

ime

character

Tim

e

character

Brownian motion an OU process

The process is approximately an Ornstein-Uhlenbeck Process, a relativeof Brownian Motion in which the particle is “elastically bound” (tethered toa post by an elastic band).

In this case the OU process has the particle wandering by genetic drift,but constantly pulled toward the optimum value by natural selection.

Week 9: Quantitative characters, comparative method, coalescents – p.8/98

Page 9: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

A character changing by “chasing” an adaptive peak

time

The course of change of the population mean is expected to be somewhat

smoother than the changes of the peak of the fitness surface.

Week 9: Quantitative characters, comparative method, coalescents – p.9/98

Page 10: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Sources of evolutionary correlation among characters

Variation (and covariation) in change of characters occurs for two reasons:

1. Genetic drift, with the covariances being proportional to the additivegenetic covariances

2. Selection, with the covariances being affected by both the additivegenetic covariances and the covariation of the selection pressures.

Week 9: Quantitative characters, comparative method, coalescents – p.10/98

Page 11: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

A simple example of selective covariance

a simple example:

(temperate) (arctic) (arctic)(temperate) (temperate)

size

color

limblength

size

color

limblength

covariation due not to genetic correlation

but to covariation of the selection pressureThese are Bergmann’s, Allen’s and Glogler’s Rules

not They are presumably the result of genetic correlations

but result from patterns of selection

Variation and evolution

in plants. Columbia Univ. Press, New York.

page 121

G. L. Stebbins. 1950.

Week 9: Quantitative characters, comparative method, coalescents – p.11/98

Page 12: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

A simulated example with two characters

After 100 generations:

−30 −20 −10 0 10 20 30−30

−20

−10

0

10

20

30

Genetic covariances are negative, but the wanderings of the adaptivepeak in the two characters are positively correlated.

Week 9: Quantitative characters, comparative method, coalescents – p.12/98

Page 13: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

A simulated example with two characters

After 1000 generations:

−30 −20 −10 0 10 20 30−30

−20

−10

0

10

20

30

Genetic covariances are negative, but the wanderings of the adaptivepeak in the two characters is positively correlated.

Week 9: Quantitative characters, comparative method, coalescents – p.13/98

Page 14: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

A simulated example with two characters

After 10,000 generations:

−30 −20 −10 0 10 20 30−30

−20

−10

0

10

20

30

Genetic covariances are negative, but the wanderings of the adaptivepeak in the two characters is positively correlated. As time goes on, the

covariation of character changes is more and more dominated by themovement of the peak.

Week 9: Quantitative characters, comparative method, coalescents – p.14/98

Page 15: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Correcting for correlations among characters

Can we transform the set of characters to remove their correlations andthus end up with independent Brownian motions of equal variance?

We might hope to infer additive genetic covariances by doing

quantitive genetics breeding experiments to infer them fromcovariances among relatives.

There is little or no hope of inferring “selective correlations” without a

complete understanding of the functional ecology.

If we are given the tree from molecular data (and are willing toassume that the branch lengths are proportional to those that apply

to the morphological characters), we can hope to use the tree toinfer the covariation of the characters. (See the discussion ofcomparative methods, below).

Week 9: Quantitative characters, comparative method, coalescents – p.15/98

Page 16: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Correlation of states in a discrete-state model

#2

#1

#2

#1

species states branch changes

change incharacter 2

change incharacter 1

0 6

4 0

Y N

Y

N

1 0

0 18

character 1:

character 2:

Week 9: Quantitative characters, comparative method, coalescents – p.16/98

Page 17: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

A simple case to show effects of phylogeny

Week 9: Quantitative characters, comparative method, coalescents – p.17/98

Page 18: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Two uncorrelated characters evolving on that tree

Week 9: Quantitative characters, comparative method, coalescents – p.18/98

Page 19: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Identifying the two clades

Week 9: Quantitative characters, comparative method, coalescents – p.19/98

Page 20: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

A tree on which we are to observe two characters

0.3

0.1

0.25

0.65

0.1 0.1a

b

cd e

(0.7)

(0.2) 0.9

Week 9: Quantitative characters, comparative method, coalescents – p.20/98

Page 21: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Decomposing it into two-species contrasts ...

0.25

0.65

0.3

0.1

a

b

c0.1 0.1

d e

(0.7)

(0.2) 0.9

(de)(ab)0.075

0.05

(abc)0.1666

Week 9: Quantitative characters, comparative method, coalescents – p.21/98

Page 22: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Contrasts on that tree

Variance

proportional

Contrast to

y1 = xa − xb 0.4

y2 = 14

xa + 34

xb − xc 0.975

y3 = xd − xe 0.2

y4 = 16

xa + 12

xb + 13

xc − 12

xd − 12

xe 1.11666

Week 9: Quantitative characters, comparative method, coalescents – p.22/98

Page 23: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Contrasts for the 20-species two-clade example

−3 −2 −1 0 1 2 3−3

−2

−1

0

1

2

3

Week 9: Quantitative characters, comparative method, coalescents – p.23/98

Page 24: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

An example: Smith and Cheverud 2002

Smith, R. J. and J. M. Cheverud. 2002. Scaling of sexual dimorphism in body mass: A

phylogenetic analysis of Rensch’s Rule in primates. International Journal of Primatology 23(5):

1095-1135.

Fig. 1. The interspecific allometric equation (specific regression, identified as IA) and the

independent contrasts equation (identified as IC) plotted for 105 primate species in raw data

space, transformed to natural logarithms. The interspecific allometric equation is

lny = 0.139 + 0.080(lnx), with r = 0.53. The phylogenetically corrected form of this

equation, taken from the independent contrasts analysis, is lny = 0.160 + 0.056(lnx), with

r = 0.26. The two equations are not significantly different from each other. The identified

species are Mandrillus sphinx (M), Pongo pygmaeus (O), Gorilla gorilla (G), Pan troglodytes (P),

and Homo sapiens (H).

Week 9: Quantitative characters, comparative method, coalescents – p.24/98

Page 25: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

A tree with punctuated equilibrium

Y

GA

FA

I

R

G

E

U

L

LA

V

N

KA

O

MA

CA

B

T

D

C

Z

X

JA

DA

BA

J

HA

A

K

F

M

P

OA

EA

IA

NA

W

H

Q

S

Week 9: Quantitative characters, comparative method, coalescents – p.25/98

Page 26: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

The punctuated tree when we sample 10 species

I

G

E

B

D

C

J

A

F

HWeek 9: Quantitative characters, comparative method, coalescents – p.26/98

Page 27: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Two-species paired comparisons

AB CD EF G H

Week 9: Quantitative characters, comparative method, coalescents – p.27/98

Page 28: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Pagel’s (1994) test for correlation with discrete 0/1 traits

When character 1 has state Rates of change incharacter 2 are:

0 1α

β0

0

0

0 1α

β1

1

1

When character 2 has state Rates of change incharacter 1 are:

0 100

0

0 1

γ

δ

γ1

1

Week 9: Quantitative characters, comparative method, coalescents – p.28/98

Page 29: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Pagel’s (1994) test for correlation with discrete 0/1 traits

To : 00 01 10 11

From :

00 −− α0 γ0 0

01 β0 −− 0 γ1

10 δ0 0 −− α1

11 0 δ1 β1 −−

This can be set up as a 4 × 4 model of change with four states, 00, 01,10, and 11, and likelihood ratio tests used.

Complete independence of the changes in the two characters involvesrestricting the parameters so that α1 = α0, β1 = β0, γ1 = γ0, and δ1 = δ0.

Week 9: Quantitative characters, comparative method, coalescents – p.29/98

Page 30: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Cann, Stoneking, and Wilson

Becky Cann Mark Stoneking the late Allan Wilson

Cann, R. L., M. Stoneking, and A. C. Wilson. 1987. Mitochondrial DNAand human evolution. Nature 325:a 31-36.

Week 9: Quantitative characters, comparative method, coalescents – p.30/98

Page 31: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Mitochondrial Eve

Week 9: Quantitative characters, comparative method, coalescents – p.31/98

Page 32: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Gene copies in a population of 10 individuals

Time

A random−mating population

Week 9: Quantitative characters, comparative method, coalescents – p.32/98

Page 33: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Going back one generation

Time

A random−mating population

Week 9: Quantitative characters, comparative method, coalescents – p.33/98

Page 34: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

... and one more

Time

A random−mating population

Week 9: Quantitative characters, comparative method, coalescents – p.34/98

Page 35: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

... and one more

Time

A random−mating population

Week 9: Quantitative characters, comparative method, coalescents – p.35/98

Page 36: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

... and one more

Time

A random−mating population

Week 9: Quantitative characters, comparative method, coalescents – p.36/98

Page 37: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

... and one more

Time

A random−mating population

Week 9: Quantitative characters, comparative method, coalescents – p.37/98

Page 38: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

... and one more

Time

A random−mating population

Week 9: Quantitative characters, comparative method, coalescents – p.38/98

Page 39: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

... and one more

Time

A random−mating population

Week 9: Quantitative characters, comparative method, coalescents – p.39/98

Page 40: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

... and one more

Time

A random−mating population

Week 9: Quantitative characters, comparative method, coalescents – p.40/98

Page 41: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

... and one more

Time

A random−mating population

Week 9: Quantitative characters, comparative method, coalescents – p.41/98

Page 42: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

... and one more

Time

A random−mating population

Week 9: Quantitative characters, comparative method, coalescents – p.42/98

Page 43: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

... and one more

Time

A random−mating population

Week 9: Quantitative characters, comparative method, coalescents – p.43/98

Page 44: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

The genealogy of gene copies is a tree

Time

Genealogy of gene copies, after reordering the copies

Week 9: Quantitative characters, comparative method, coalescents – p.44/98

Page 45: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Ancestry of a sample of 3 copies

Time

Genealogy of a small sample of genes from the population

Week 9: Quantitative characters, comparative method, coalescents – p.45/98

Page 46: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Here is that tree of 3 copies in the pedigree

Time

Week 9: Quantitative characters, comparative method, coalescents – p.46/98

Page 47: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Kingman’s coalescent

Random collision of lineages as go back in time (sans recombination)

Collision is faster the smaller the effective population size

u9

u7

u5

u3

u8

u6

u4

u2

Average time for n

Average time for

copies to coalesce to

4N

k(k−1) k−1 =

In a diploid population of

effective population size N,

copies to coalesce

= 4N (1 − 1

n

( generations

k

Average time for

two copies to coalesce

= 2N generations

What’s misleading about this diagram: the lineages that coalesce arerandom pairs, not necessarily ones that are next to each other in a linearorder.

Week 9: Quantitative characters, comparative method, coalescents – p.47/98

Page 48: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

The Wright-Fisher model

This is the canonical model of genetic drift in populations. It was invented

in 1930 and 1932 by Sewall Wright and R. A. Fisher.

In this model the next generation is produced by doing this:

Choose two individuals with replacement (including the possibility thatthey are the same individual) to be parents,

Each produces one gamete, these become a diploid individual,

Repeat these steps until N diploid individuals have been produced.

The effect of this is to have each locus in an individual in the nextgeneration consist of two genes sampled from the parents’ generation atrandom, with replacement.

Week 9: Quantitative characters, comparative method, coalescents – p.48/98

Page 49: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

The coalescent – a derivation

The probability that k lineages becomes k − 1 one generation earlier

turns out to be (as each lineage “chooses” its ancestor independently):

k(k − 1)/2 × Prob (First two have same parent, rest are different)

(since there are(k2

)= k(k − 1)/2 different pairs of copies)

We add up terms, all the same, for the k(k − 1)/2 pairs that could

coalesce; the sum is:

k(k − 1)/2 × 1 × 12N

×(1 − 1

2N

)

×(1 − 2

2N

)× · · · ×

(1 − k−2

2N

)

so that the total probability that a pair coalesces is

= k(k − 1)/4N + O(1/N2)

Week 9: Quantitative characters, comparative method, coalescents – p.49/98

Page 50: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Can probabilities of two or more lineages coalescing

Note that the total probability that some combination of lineagescoalesces is

1 − Prob (Probability all genes have separate ancestors)

= 1 −

[

1 ×

(

1 −1

2N

) (

1 −2

2N

)

. . .

(

1 −k − 1

2N

)]

= 1 −

[

1 −1 + 2 + 3 + · · · + (k − 1)

2N+ O(1/N2)

]

and since1 + 2 + 3 + . . . + (n − 1) = n(n − 1)/2

the quantity

= 1 −[

1 − k(k − 1)/4N + O(1/N2)]≃ k(k − 1)/4N + O(1/N2)

Week 9: Quantitative characters, comparative method, coalescents – p.50/98

Page 51: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Can calculate how many coalescences are of pairs

This shows, since the terms of order 1/N are the same, that the events

involving 3 or more lineages simultaneously coalescing are in the terms of

order 1/N2 and thus become unimportant if N is large.

Here are the probabilities of 0, 1, or more coalescences with 10 lineages

in populations of different sizes:

N 0 1 > 1

100 0.79560747 0.18744678 0.016945751000 0.97771632 0.02209806 0.00018562

10000 0.99775217 0.00224595 0.00000187

Note that increasing the population size by a factor of 10 reduces the

coalescent rate for pairs by about 10-fold, but reduces the rate for triples(or more) by about 100-fold.

Week 9: Quantitative characters, comparative method, coalescents – p.51/98

Page 52: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

The coalescent

To simulate a random genealogy, do the following:

1. Start with k lineages

2. Draw an exponential time interval with mean 4N/(k(k − 1))generations.

3. Combine two randomly chosen lineages.

4. Decrease k by 1.

5. If k = 1, then stop

6. Otherwise go back to step 2.

Week 9: Quantitative characters, comparative method, coalescents – p.52/98

Page 53: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

An accurate analogy: Bugs In A Box

There is a box ...

Week 9: Quantitative characters, comparative method, coalescents – p.53/98

Page 54: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

An accurate analogy: Bugs In A Box

with bugs that are ...

Week 9: Quantitative characters, comparative method, coalescents – p.54/98

Page 55: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

An accurate analogy: Bugs In A Box

hyperactive, ...

Week 9: Quantitative characters, comparative method, coalescents – p.55/98

Page 56: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

An accurate analogy: Bugs In A Box

indiscriminate, ...

Week 9: Quantitative characters, comparative method, coalescents – p.56/98

Page 57: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

An accurate analogy: Bugs In A Box

voracious ...

Week 9: Quantitative characters, comparative method, coalescents – p.57/98

Page 58: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

An accurate analogy: Bugs In A Box

(eats other bug) ...

Gulp!

Week 9: Quantitative characters, comparative method, coalescents – p.58/98

Page 59: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

An accurate analogy: Bugs In A Box

and insatiable.

Week 9: Quantitative characters, comparative method, coalescents – p.59/98

Page 60: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Random coalescent trees with 16 lineages

O C S M L P K E J I T R H Q F B N D G A M J B F G C E R A S Q K N L H T I P D O B G T M L Q D O F K P E A I J S C H R N F R N L M D H B T C Q S O G P I A K J E

I Q C A J L S G P F O D H B M E T R K N R C L D K H O Q F M B G S I T P A J E N N M P R H L E S O F B G J D C I T K Q A N H M C R P G L T E D S O I K J Q F A B

Week 9: Quantitative characters, comparative method, coalescents – p.60/98

Page 61: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Coalescence is faster in small populations

Change of population size and coalescents

Ne

time

the changes in population size will produce waves of coalescence

time

Coalescence events

time

the tree

The parameters of the growth curve for Ne can be inferred by

likelihood methods as they affect the prior probabilities of those trees

that fit the data.

Week 9: Quantitative characters, comparative method, coalescents – p.61/98

Page 62: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Migration can be taken into account

Time

population #1 population #2Week 9: Quantitative characters, comparative method, coalescents – p.62/98

Page 63: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Recombination creates loops

Recomb.

Different markers have slightly different coalescent trees

Week 9: Quantitative characters, comparative method, coalescents – p.63/98

Page 64: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

If we have a sample of 50 copies

50−gene sample in a coalescent tree

Week 9: Quantitative characters, comparative method, coalescents – p.64/98

Page 65: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

The first 10 account for most of the branch length

10 genes sampled randomly out of a

50−gene sample in a coalescent tree

Week 9: Quantitative characters, comparative method, coalescents – p.65/98

Page 66: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

... and when we add the other 40 they add less length

10 genes sampled randomly out of a

50−gene sample in a coalescent tree

(purple lines are the 10−gene tree)Week 9: Quantitative characters, comparative method, coalescents – p.66/98

Page 67: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

We want to be able to analyze human evolution

Africa

Europe Asia

"Out of Africa" hypothesis

(vertical scale is not time or evolutionary change)

Week 9: Quantitative characters, comparative method, coalescents – p.67/98

Page 68: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

coalescent and “gene trees” versus species trees

The species tree

Week 9: Quantitative characters, comparative method, coalescents – p.68/98

Page 69: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

coalescent and “gene trees” versus species trees

Consistency of gene tree with species tree

Week 9: Quantitative characters, comparative method, coalescents – p.69/98

Page 70: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

coalescent and “gene trees” versus species trees

Consistency of gene tree with species tree

Week 9: Quantitative characters, comparative method, coalescents – p.70/98

Page 71: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

coalescent and “gene trees” versus species trees

Consistency of gene tree with species tree

Week 9: Quantitative characters, comparative method, coalescents – p.71/98

Page 72: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

coalescent and “gene trees” versus species trees

Consistency of gene tree with species tree

Week 9: Quantitative characters, comparative method, coalescents – p.72/98

Page 73: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

coalescent and “gene trees” versus species trees

Consistency of gene tree with species tree

coalescence time

Week 9: Quantitative characters, comparative method, coalescents – p.73/98

Page 74: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

If the branch is more than Ne generations long ...

t1

t2

N1

N2

N4

N3

N5

Gene tree and Species tree

Week 9: Quantitative characters, comparative method, coalescents – p.74/98

Page 75: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

If the branch is more than Ne generations long ...

t1

t2

N1

N2

N4

N3

N5

Gene tree and Species tree

Week 9: Quantitative characters, comparative method, coalescents – p.75/98

Page 76: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

If the branch is more than Ne generations long ...

t1

t2

N1

N2

N4

N3

N5

Gene tree and Species tree

Week 9: Quantitative characters, comparative method, coalescents – p.76/98

Page 77: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

How do we compute a likelihood for a population sample?

CAGTTTTAGCGTCC

CAGTTTTAGCGTCC

CAGTTTTAGCGTCC

CAGTTTTAGCGTCC

CAGTTTTAGCGTCC

CAGTTTTAGCGTCC

CAGTTTTAGCGTCC

CAGTTTTAGCGTCC

CAGTTTTAGCGTCC

CAGTTTTAGCGTCC

CAGTTTTAGCGTCC

CAGTTTCAGCGTCC

CAGTTTCAGCGTCC

CAGTTTCAGCGTCC

CAGTTTCAGCGTCC

CAGTTTCAGCGTCC

CAGTTTCAGCGTCC

CAGTTTCAGCGTCC

CAGTTTCAGCGTCC

CAGTTTTGGCGTCC

CAGTTTTGGCGTCCCAGTTTTGGCGTCC

CAGTTTTGGCGTCC

CAGTTTTGGCGTCC

CAGTTTCAGCGTAC

CAGTTTCAGCGTAC

CAGTTTCAGCGTAC

, CAGTTTCAGCGTCC CAGTTTCAGCGTCC ), ... L = Prob ( = ??

Week 9: Quantitative characters, comparative method, coalescents – p.77/98

Page 78: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

If we have a tree for the sample sequences, we can

CAGTTTTAGCGTCC

CAGTTTTAGCGTCC

CAGTTTTAGCGTCC

CAGTTTTAGCGTCC

CAGTTTTAGCGTCC

CAGTTTTAGCGTCC

CAGTTTTAGCGTCC

CAGTTTTAGCGTCC

CAGTTTTAGCGTCC

CAGTTTCAGCGTCC

CAGTTTCAGCGTCC

CAGTTTCAGCGTCC

CAGTTTCAGCGTCC

CAGTTTTGGCGTCCCAGTTTTGGCGTCC

CAGTTTTGGCGTCC

CAGTTTTGGCGTCC

CAGTTTCAGCGTAC

CAGTTTCAGCGTAC

CAGTTTCAGCGTAC

CAGTTTCAGCGTCC

, CAGTTTCAGCGTCC CAGTTTCAGCGTCCProb( | Genealogy)

so we can compute

but how to computer the overall likelihood from this?

, ...

CAGTTTCAGCGTCC

CAGTTTTAGCGTCCCAGTTTTAGCGTCC

CAGTTTCAGCGTCCCAGTTTTGGCGTCC

CAGTTTCAGCGTCC

Week 9: Quantitative characters, comparative method, coalescents – p.78/98

Page 79: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

The basic equation for coalescent likelihoods

In the case of a single population with parameters

Ne effective population sizeµ mutation rate per site

and assuming G′ stands for a coalescent genealogy and D for the

sequences,

L = Prob (D | Ne, µ)

=∑

G′

Prob (G′ | Ne) Prob (D | G′, µ)

︸ ︷︷ ︸ ︸ ︷︷ ︸

Kingman′s prior likelihood of tree

Week 9: Quantitative characters, comparative method, coalescents – p.79/98

Page 80: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Rescaling the branch lengths

Rescaling branch lengths of G′ so that branches are given in expected

mutations per site, G = µG′ , we get (if we let Θ = 4Neµ )

L =∑

G

Prob (G | Θ) Prob (D | G)

as the fundamental equation. For more complex population scenarios onesimply replaces Θ with a vector of parameters.

Week 9: Quantitative characters, comparative method, coalescents – p.80/98

Page 81: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

The variability comes from two sources

Ne

Ne

can reduce variability by looking at

(i) more gene copies, or

(2) Randomness of coalescence of lineages

affected by the

can reduce variance of

branch by examining more sites

number of mutations per site per

mutation rate

(1) Randomness of mutation

affected by effective population size

coalescence times allow estimation of

µ

(ii) more loci

Week 9: Quantitative characters, comparative method, coalescents – p.81/98

Page 82: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Computing the likelihood: averaging over coalescents

t

t

Lik

elih

oo

d o

f t

Lik

elih

oo

d o

f

The product of the prior on t,

times the likelihood of that t from the data,

when integrated over all possible t’s, gives the

likelihood for the underlying parameter

The likelihood calculation in a sample of two gene copies

t

Θ

Prio

r P

rob

of

t

Θ1

Θ

Θ

Week 9: Quantitative characters, comparative method, coalescents – p.82/98

Page 83: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Computing the likelihood: averaging over coalescents

t

t

Lik

elih

oo

d o

f t

Lik

elih

oo

d o

f

The product of the prior on t,

times the likelihood of that t from the data,

when integrated over all possible t’s, gives the

likelihood for the underlying parameter

The likelihood calculation in a sample of two gene copies

t

2ΘΘ

Prio

r P

rob

of

t

Θ

Θ

Week 9: Quantitative characters, comparative method, coalescents – p.83/98

Page 84: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Computing the likelihood: averaging over coalescents

t

t

Lik

elih

oo

d o

f t

Lik

elih

oo

d o

f

The product of the prior on t,

times the likelihood of that t from the data,

when integrated over all possible t’s, gives the

likelihood for the underlying parameter

The likelihood calculation in a sample of two gene copies

t

Θ

Prio

r P

rob

of

t

Θ

Θ

Week 9: Quantitative characters, comparative method, coalescents – p.84/98

Page 85: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Computing the likelihood: averaging over coalescents

t

t

Lik

elih

oo

d o

f t

Lik

elih

oo

d o

f

The product of the prior on t,

times the likelihood of that t from the data,

when integrated over all possible t’s, gives the

likelihood for the underlying parameter

The likelihood calculation in a sample of two gene copies

t

Θ

Prio

r P

rob

of

t

Θ1

Θ

Θ

Week 9: Quantitative characters, comparative method, coalescents – p.85/98

Page 86: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Labelled histories

Labelled Histories (Edwards, 1970; Harding, 1971)

Trees that differ in the time−ordering of their nodes

A B C D

A B C D

These two are the same:

A B C D

A B C D

These two are different:

Week 9: Quantitative characters, comparative method, coalescents – p.86/98

Page 87: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Sampling approaches to coalescent likelihood

Bob Griffiths Simon Tavaré Mary Kuhner and Jon Yamato

Week 9: Quantitative characters, comparative method, coalescents – p.87/98

Page 88: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Monte Carlo integration

To get the area under a curve, we can either evaluate the function (f(x)) at

a series of grid points and add up heights × widths:

or we can sample at random the same number of points, add up height ×width:

Week 9: Quantitative characters, comparative method, coalescents – p.88/98

Page 89: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Importance sampling

Week 9: Quantitative characters, comparative method, coalescents – p.89/98

Page 90: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Importance sampling

The function we integrate

We sample from this density

f(x)

g(x)

Week 9: Quantitative characters, comparative method, coalescents – p.90/98

Page 91: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

The math of importance sampling

∫f(x) dx =

∫ f(x)g(x) g(x) dx

= Eg

[f(x)g(x)

]

which is the expectation for points sampled from g(x) of the ratiof(x)g(x) .

This is approximated by sampling a lot (n) of points from g(x) and the

computing the average:

L =1

n

n∑

i=1

f(xi)

g(xi)

Week 9: Quantitative characters, comparative method, coalescents – p.91/98

Page 92: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Rearrangement to sample points in tree space

A conditional coalescent rearrangement strategy

Week 9: Quantitative characters, comparative method, coalescents – p.92/98

Page 93: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Dissolving a branch and regrowing it backwards

First pick a random node (interior or tip) and remove its subtree

Week 9: Quantitative characters, comparative method, coalescents – p.93/98

Page 94: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

We allow it coalesce with the other branches

Then allow this node to re−coalesce with the tree

Week 9: Quantitative characters, comparative method, coalescents – p.94/98

Page 95: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

and this gives another coalescent

The resulting tree proposed by this process

Week 9: Quantitative characters, comparative method, coalescents – p.95/98

Page 96: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

The resulting likelihood ratio is

L(Θ)

L(Θ0)=

1

n

n∑

i=1

Prob (Gi|Θ)

Prob (Gi|Θ0)

(“Wait a second – where in this expression is the data?”) It’s in thesampling that gives you the Gi: the data biases those samples in thecorrect way.

Week 9: Quantitative characters, comparative method, coalescents – p.96/98

Page 97: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

An example of an MCMC likelihood curve

0

−10

−20

−30

−40

−50

−60

−70

−80

0.001 0.002 0.005 0.01 0.02 0.05 0.1

Θ

ln L

0.00650776

Results of analysing a data set with 50 sequences of 500 bases

which was simulated with a true value of Θ = 0.01

Week 9: Quantitative characters, comparative method, coalescents – p.97/98

Page 98: Week 9: Quantitative characters, comparative method ...evolution.gs.washington.edu/gs570/2014/week9.pdf · Week9:Quantitativecharacters,comparativemethod,coalescents–p.11/98. A

Major MCMC likelihood or Bayesian programs

LAMARC by Mary Kuhner and Jon Yamato and others. Likelihoodinference with multiple populations, recombination, migration,population growth. No historical branching events or serialsampling, yet.

BEAST by Andrew Rambaut, Alexei Drummond and others.Bayesian inference with multiple populations related by a tree.Support for serial sampling (no migration or recombination yet).

genetree by Bob Griffiths and Melanie Bahlo. Likelihood inference ofmigration rates and changes in population size. No recombination orhistorical branching events.

migrate by Peter Beerli. Likelihood inference with multiplepopulations and migration rates. No recombination or historicalbranching events yet.

IM and IMa by Rasmus Nielsen and Jody Hey. Two or morepopulations allowing both historical splitting and migration after that.No recombination yet.

Week 9: Quantitative characters, comparative method, coalescents – p.98/98