types of codon models Q ij = j for synonymous ts. j for - - PDF document

types of codon models
SMART_READER_LITE
LIVE PREVIEW

types of codon models Q ij = j for synonymous ts. j for - - PDF document

part 3: analysis of natural selection pressure omega models ! 0 if i and j differ by > 1 j for synonymous tv. types of codon models Q ij = j for synonymous ts. j for non-synonymous tv.


slide-1
SLIDE 1

part 3: analysis of natural selection pressure

“omega models” ! Qij = if i and j differ by > 1 π j for synonymous tv. κπ j for synonymous ts. ωπ j for non-synonymous tv. ωκπ j for non-synonymous ts. ⎧ ⎨ ⎪ ⎪ ⎪ ⎩ ⎪ ⎪ ⎪ Goldman(and(Yang((1994)( Muse(and(Gaut((1994)(

types of codon models

slide-2
SLIDE 2

“omega models” ! Qij = if i and j differ by > 1 π j for synonymous tv. κπ j for synonymous ts. ωπ j for non-synonymous tv. ωκπ j for non-synonymous ts. ⎧ ⎨ ⎪ ⎪ ⎪ ⎩ ⎪ ⎪ ⎪ Goldman(and(Yang((1994)( Muse(and(Gaut((1994)(

x1 x2! x3 x4 j

t1:ω0

k

t2:ω0 t3:ω0 t4:ω0 t4:ω1

t5:ω0

same ω for all branches

GTG CTG TCT CCT GCC GAC AAG ACC AAC GTC AAG GCC GCC TGG GGC AAG GTT GGC GCG CAC ... ... ... G.C ... ... ... T.. ..T ... ... ... ... ... ... ... ... ... .GC A.. ... ... ... ..C ..T ... ... ... ... A.. ... A.T ... ... .AA ... A.C ... AGC ... ... ..C ... G.A .AT ... ..A ... ... A.. ... AA. TG. ... ..G ... A.. ..T .GC ..T ... ..C ..G GA. ..T ... ... ..T C.. ..G ..A ... AT. ... ..T ... ..G ..A .GC ...

same ω for all sites

this codon model “M0”

GTG CTG TCT CCT GCC GAC AAG ACC AAC GTC AAG GCC GCC TGG GGC AAG GTT GGC GCG CAC ... ... ... G.C ... ... ... T.. ..T ... ... ... ... ... ... ... ... ... .GC A.. ... ... ... ..C ..T ... ... ... ... A.. ... A.T ... ... .AA ... A.C ... AGC ... ... ..C ... G.A .AT ... ..A ... ... A.. ... AA. TG. ... ..G ... A.. ..T .GC ..T ... ..C ..G GA. ..T ... ... ..T C.. ..G ..A ... AT. ... ..T ... ..G ..A .GC ...

1 1 1

site models (ω varies among sites) branch models (ω varies among branches)

two basic types of models

x1 x2! x3 x4 j

t1:ω0

k

t2:ω0 t3:ω0 t4:ω0 t4:ω1

t5:ω1

slide-3
SLIDE 3

x1 x2! x3 x4 j

t1:ω0

k

t2:ω0 t3:ω0 t4:ω0 t4:ω1

t5:ω1 episodic adaptive evolution of a novel function with ω1 > 1

interpretation of a branch model

* these methods can be useful when selection pressure is strongly episodic

variation () among branches: approach Yang, 1998 fixed effects Bielawski and Yang, 2003 fixed effects Seo et al. 2004 auto-correlated rates Kosakovsky Pond and Frost, 2005 genetic algorithm Dutheil et al. 2012 clustering algorithm

branch models*

x1 x2! x3 x4 j

t1:ω0

k

t2:ω0 t3:ω0 t4:ω0 t4:ω1

t5:ω1

slide-4
SLIDE 4
  • useful when at some sites evolve under diversifying selection pressure over long periods of time
  • this is not a comprehensive list

GTG CTG TCT CCT GCC GAC AAG ACC AAC GTC AAG GCC GCC TGG GGC AAG GTT GGC GCG CAC ... ... ... G.C ... ... ... T.. ..T ... ... ... ... ... ... ... ... ... .GC A.. ... ... ... ..C ..T ... ... ... ... A.. ... A.T ... ... .AA ... A.C ... AGC ... ... ..C ... G.A .AT ... ..A ... ... A.. ... AA. TG. ... ..G ... A.. ..T .GC ..T ... ..C ..G GA. ..T ... ... ..T C.. ..G ..A ... AT. ... ..T ... ..G ..A .GC ...

variation () among sites: approach Yang and Swanson, 2002 fixed effects (ML) Bao, Gu and Bielawski, 2006 fixed effects (ML) Massingham and Goldman, 2005 site wise (LRT) Kosakovsky Pond and Frost, 2005 site wise (LRT) Nielsen and Yang, 1998 mixture model (ML) Kosakovsky Pond, Frost and Muse, 2005 mixture model (ML) Huelsenbeck and Dyer, 2004; Huelsenbeck et al. 2006 mixture (Bayesian) Rubenstein et al. 2011 mixture model (ML) Bao, Gu, Dunn and Bielawski 2008 & 2011 mixture (LiBaC/MBC) Murell et al. 2013 mixture (Bayesian)

site models*

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

= 0.01 = 1.0 = 2.0

ω 0 ω 2 ω1

P(xh) =

i=0 K−1

∑ piP(xh |ωi)

site models: discrete model (M3)

mixture-model likelihood !

conditional likelihood calculation (see part 1)

slide-5
SLIDE 5

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

= 0.01 = 1.0 = 2.0

ω 0 ω 2 ω1 diversifying selection (frequency dependent) at 5% of sites with ω2 = 2

interpretation of a sites-model

5% of sites x1 x2 x3

x4

j t4:ω0 k t3:ω0 t0:ω0 t1:ω1 t2:ω1

GTG CTG TCT CCT GCC GAC AAG ACC AAC GTC AAG GCC GCC TGG GGC AAG GTT GGC GCG CAC ... ... ... G.C ... ... ... T.. ..T ... ... ... ... ... ... ... ... ... .GC A.. ... ... ... ..C ..T ... ... ... ... A.. ... A.T ... ... .AA ... A.C ... AGC ... ... ..C ... G.A .AT ... ..A ... ... A.. ... AA. TG. ... ..G ... A.. ..T .GC ..T ... ..C ..G GA. ..T ... ... ..T C.. ..G ..A ... AT. ... ..T ... ..G ..A .GC ...

1 1 1

site models (ω varies among sites) branch models (ω varies among branches) branch-site models (combines the features of above models)

models for variation among branches & sites

slide-6
SLIDE 6

* these methods can be useful when selection pressures change over

time at just a fraction of sites

* it can be a challenge to apply these methods properly (more about

this later) variation () among branches & sites: approach Yang and Nielsen, 2002 fixed+mixture (ML) Forsberg and Christiansen, 2003 fixed+mixture (ML) Bielawski and Yang, 2004 fixed+mixture (ML) Giundon et al., 2004 switching (ML) Zhang et al. 2005 fixed+mixture (ML) Kosakovsky Pond et al. 2011, 2012 full mixture (ML)

models for variation among branches & sites

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

= 0.01 = 0.90 = 5.55

ω ω ω

Foreground branch only ω for background branches are from site-classes 1 and 2 (0.01 or 0.90)

branch-site “Model B”

) | ( ) (

1 i h i K i h

P p P ω x x

− =

=

mixture-model likelihood !

slide-7
SLIDE 7

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

= 0.01 = 0.90 = 5.55

ω ω FG ω

Foreground (FG) branch only

episodic adaptive evolution at 10% of sites for novel function 10% of sites have shifting balance on a fixed peak (same function)

10% of sites

two scenarios can yield branch-sites with dN/dS > 1

branch-site codon models cannot tell which scenario is correct without external information!

Jones et al (2016) MBE Jones et al (2018) MBE

“omega models” ! Qij = if i and j differ by > 1 π j for synonymous tv. κπ j for synonymous ts. ωπ j for non-synonymous tv. ωκπ j for non-synonymous ts. ⎧ ⎨ ⎪ ⎪ ⎪ ⎩ ⎪ ⎪ ⎪ Goldman(and(Yang((1994)( Muse(and(Gaut((1994)(

model-based inference

slide-8
SLIDE 8

3 analytical tasks task 1. parameter estimation (e.g., ω) task 2. hypothesis testing task 3. make predictions (e.g., sites having ω > 1 )

model based inference

Parameters: t and ω Gene: acetylcholine α receptor

common ancestor lnL = -2399

task 1: parameter estimation

Sooner or later you’ll get it Sooner or later you’ll get it
slide-9
SLIDE 9

task 1. parameter estimation (e.g., ω) ✔ task 2. hypothesis testing task 3. prediction / site identification LRT

task 2: statistical significance

H0: variable selective pressure but NO positive selection (M1) H1: variable selective pressure with positive selection (M2)

Compare 2Δl = 2(l1 - l0) with a χ2 distribution

0.1 0.2 0.3 0.4 0.5 0.6 0.7

Model 1a (M1a)

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

Model 2a (M2a)

= 0.5 (ω = 1) = 3.25

ω ˆ ω ˆ

(ω = 1) = 0.5

ω ˆ

task 2: likelihood ratio test for positive selection

slide-10
SLIDE 10

task 1. parameter estimation (e.g., ω) ✔ task 2. hypothesis testing ✔ task 3. prediction / site identification

Bayes’ rule

task 3: identify the selected sites

GTG CTG TCT CCT GCC GAC AAG ACC AAC GTC AAG GCC GCC TGG GGC AAG GTT GGC GCG CAC ... ... ... G.C ... ... ... T.. ..T ... ... ... ... ... ... ... ... ... .GC A.. ... ... ... ..C ..T ... ... ... ... A.. ... A.T ... ... .AA ... A.C ... AGC ... ... ..C ... G.A .AT ... ..A ... ... A.. ... AA. TG. ... ..G ... A.. ..T .GC ..T ... ..C ..G GA. ..T ... ... ..T C.. ..G ..A ... AT. ... ..T ... ..G ..A .GC ...

model: 9% have ω > 1 Bayes’ rule: site 4, 12 & 13 structure: sites are in contact

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

task 3: which sites have dN/dS > 1

slide-11
SLIDE 11

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1

= 0.03 = 0.40 = 14.1

ω0 ω2 ω1

P(xh) =

i=0 K−1

∑ p(ω i)P(xh |ω i)

= 0.85 = 0.10 = 0.05

p0 p1 p2

Prior Likelihood Total probability

review the mixture likelihood (model M3)

Likelihood of hypothesis (ω2) Prior probability of hypothesis (ω2) Posterior probability of hypothesis (ω2) Marginal probability (Total probability) of the data

P(ω2 | xh) = P(ω2)P xh |ω2

( )

P(ωi)P xh |ωi

( )

i=0 K−1

Site class 0: ω0 = .03, 85% of codon sites Site class 1: ω1 = .40, 10% of codon sites Site class 2: ω2 = 14, 05% of codon sites

? ?

Bayes’ rule for identifying selected sites

slide-12
SLIDE 12

!" !#$" !#%" !#&" !#'" ("

(" &" ((" (&" $(" $&" )(" )&" %(" %&" *(" *&" &(" &&" +(" +&" '(" '&" ,(" ,&" (!(" (!&" (((" ((&" ($(" ($&" ()(" ()&" (%(" (%&" (*(" (*&" (&(" (&&" (+(" (+&" ('(" ('&" (,(" (,&" $!("

,-./012%34514/67%837/56% 956:38430%837/56% >5:;38/58%.85?-?/1/;2%

Site class 0: ω0 = .03 (strong purifying selection)

Site class 1: ω1 = .40 (weak purifying selection) Site class 2: ω2 = 14 (positive selection)

NOTE: The posterior probability should NOT be interpreted as a “P-value”; it can be interpreted as a measure of relative support, although there is rarely any attempt at “calibration”.

task 3: Bayes rule for which sites have dN/dS > 1

empirical Bayes

Naive Empirical Bayes

  • Nielsen and Yang, 1998
  • assumes no MLE errors

Bayes Empirical Bayes

  • Yang et al., 2005
  • accommodate MLE errors

for some model parameters via uniform priors

Bayes’ rule bootstrap

NEB

Smoothed bootstrap aggregation

  • Mingrone et al., MBE,

33:2976-2989

  • accommodate MLE errors

via bootstrapping

  • ameliorates biases and

MLE instabilities with kernel smoothing and aggregation

BEB SBA task 3: Bayes rule for which sites have dN/dS > 1

slide-13
SLIDE 13

critical question: Have the requirements for maximum likelihood inference been met? (rarely addressed in real data analyses)

Normal MLE uncertainty (M2a)

  • large sample size with regularity

conditions

  • MLEs approximately unbiased and

minimum variance

ˆ θ ~ N θ, I ˆ θ

( )

−1

( )

p Frequency 0.00 0.10 0.20 5 10 15 20 25 30 w Frequency 3 4 5 6 7 8 5 10 15 20

pω>1#

ω>1#

regularity conditions have been met

slide-14
SLIDE 14

MLE instabilities (M2a)

  • small sample sizes and on boundary
  • continuous has been discretized (e.g.,

M2a)

  • non-Gaussian, over-dispersed, divergence

among datasets

p Frequency 0.0 0.4 0.8 20 40 60 80 w Frequency 5 10 15 50 100 150

pω>1#

ω>1#

regularity conditions have NOT been met

bootstrapping can be used to diagnose this problem: Bielawski et al. (2016)

  • Curr. Protoc. Bioinf.

56:6.15. Mingrone et al., MBE, 33:2976-2989

part 4: phenomenological load and biological inference

slide-15
SLIDE 15

phenomenological load review types of models

phenomenological mechanistic

Newton

F = − Gm1m2 r2

Einstein

Gαβ = 8πTαβ phenomenological load molecular evolution is process and pattern

“MutSel models” ! Pr = µijN × 1 N = µIJ if neutral µijN × 2sij 1− e

−2Nsij

if selected ⎧ ⎨ ⎪ ⎪ ⎩ ⎪ ⎪

sij = Δfij

Halpern(and(Bruno((1998)(

GTG CTG TCT CCT GCC GAC AAG ACC AAC GTC AAG GCC GCC TGG GGC AAG GTT GGC GCG CAC ... ... ... G.C ... ... ... T.. ..T ... ... ... ... ... ... ... ... ... .GC A.. ... ... ... ..C ..T ... ... ... ... A.. ... A.T ... ... .AA ... A.C ... AGC ... ... ..C ... G.A .AT ... ..A ... ... A.. ... AA. TG. ... ..G ... A.. ..T .GC ..T ... ..C ..G GA. ..T ... ... ..T C.. ..G ..A ... AT. ... ..T ... ..G ..A .GC ... GCT GGC GAG TAT GGT GCG GAG GCC CTG GAG AGG ATG TTC CTG TCC TTC CCC ACC ACC AAG ... ..A .CT ... ..C ..A ... ..T ... ... ... ... ... ... AG. ... ... ... ... ... .G. ... ... ... ..C ..C ... ... G.. ... ... ... ... T.. GG. ... ... ... ... ... .G. ..T ..A ... ..C .A. ... ... ..A C.. ... ... ... GCT G.. ... ... ... ... ... ..C ..T .CC ..C .CA ..T ..A ..T ..T .CC ..A .CC ... ..C ... ... ... ..T ... ..A ACC TAC TTC CCG CAC TTC GAC CTG AGC CAC GGC TCT GCC CAG GTT AAG GGC CAC GGC AAG ... ... ... ..C ... ... ... ... ... ... ... ..G ... ... ..C ... ... ... ... G.. ... ... ... ..C ... ... ... T.C .C. ... ... ... .AG ... A.C ..A .C. ... ... ... ... ... ... T.T ... A.T ..T G.A ... .C. ... ... ... ... ..C ... .CT ... ... ... ..T ... ... ..C ... ... ... ... TC. .C. ... ..C ... ... A.C C.. ..T ..T ..T ...

process pattern

slide-16
SLIDE 16

GTG CTG TCT CCT GCC GAC AAG ACC AAC GTC AAG GCC GCC TGG GGC AAG GTT GGC GCG CAC ... ... ... G.C ... ... ... T.. ..T ... ... ... ... ... ... ... ... ... .GC A.. ... ... ... ..C ..T ... ... ... ... A.. ... A.T ... ... .AA ... A.C ... AGC ... ... ..C ... G.A .AT ... ..A ... ... A.. ... AA. TG. ... ..G ... A.. ..T .GC ..T ... ..C ..G GA. ..T ... ... ..T C.. ..G ..A ... AT. ... ..T ... ..G ..A .GC ...

site pattern

4

Question: Does anyone really care, at all, that site pattern No.4 occurs 33 times in my sample of 5 mammalian mt genomes?

phenomenological load

Maximum phenomenological model for sequence data: explains all variation in a particular dataset

  • so-called “saturated model” (multinomial model)
  • does not generalize to other datasets
  • no information about process
  • highest lnL score (useless?)

phenomenological load a different look at the issue …

true model (MT) fitted model (MPoisson)

KL = P

T X |

⌢ θT

( )

X

log P

T (X |

⌢ θT) P

M-P X |

⌢ θM-P

( )

Kullback-Leibler divergence

P

MP = X |

⌢ θMP

( )

P

T = X |

⌢ θT

( )

slide-17
SLIDE 17

MT MP KL MS Poisson model (MP): single rate parameter Saturated model (MS): as many parameters as unique site patterns Line: subspace

DMP = −2 ℓMP ⌢ θMP | X,T

( )− ℓ MS X

( )

{ }

“Deviance MP”

Not to scale!

MT MP KL MS

ˆ θM0 ˆ θM1

LRR = DM0 − DM1 = −2 ℓM1 ˆ θM1 X,T

( )− ℓM2 ˆ

θM2 X,T

( )

{ }

KEY POINT: that addition of any parameter will reduce the deviance

slide-18
SLIDE 18

LRR = DM0 − DM1 = −2 ℓM1 ˆ θM1 X,T

( )− ℓM2 ˆ

θM2 X,T

( )

{ }

The likelihood ratio test (LRT) is used to evaluate the significance of the additional parameters in M1

The LRT assumes that the null model is true (M0 = MT) The null model is not on the path to the true model

LRR = DM0 − DM1 = −2 ℓM1 ˆ θM1 X,T

( )− ℓM2 ˆ

θM2 X,T

( )

{ }

MT MP KL MS

ˆ θM0 ˆ θM1

The problem:

IF…

  • the null model fails to explain some

fraction of site patter variation generated by MT

  • the additional parameter(s)

represent a false process but are confounded with MT THEN…

  • the added parameters can be

statistically significant even when they represent a false process

  • the degree to which a significant

parameter carries false information about process is called Phenomenological Load (PL)

The LR testing framework:

assump)on:#M0#=#MT##

slide-19
SLIDE 19

MT MS

Hypothesis tests along THIS PATH can have phenomenological load

! significant LRTs b/c variation is not random ! interpretation is not direct about mechanism of evolution MP

slide-20
SLIDE 20

MT MS

“Phase 2 thinking” develop and test models as if on this path

  • realistic model miss-specification
  • assess confounding
  • assess phenomenological load

“Phase 1 thinking” develop and test models as if on this path

  • assume null model as true
  • ignore site pattern distributions
  • believe in pure tests of

mechanism

  • treat model selection as if it’s

modeling the data

MP

Let’s take a look at an example of “Phase 2 thinking”

slide-21
SLIDE 21

MT KL MS Percent Reduction in Deviance (PDR) !

PRD = DM0 − DM1 DPoisson

ˆ θM0 ˆ θM1

MP New Q matrix

  • 4 parameters (κ, ω, α, β)
  • DT allowed (via α and β )

Example double: ATG (Met) " AAA (Lys) [α parameter] Example triple: AAA (Lys) " GGG (GLY) [β parameter]

DT: Double and Triple mutations

M0 Q matrix

  • 2 parameters (κ and ω)
  • DT not allowed

white: probability = 0

Is such a model warranted?

slide-22
SLIDE 22

Let’s do a simulation study!

African chimpanzee bonobo gorilla

  • rangutan

Sumatran orangutan common gibbon harbor seal grey seal cat horse Indian rhinoceros cow fin whale blue whale rat mouse wallaroo

  • possum

platypus

process (MT):

simulation

  • MutSel
  • fh differ for each site
  • NO DT-mutations
  • 12 mt proteins (3331 codons)
  • 20 mammals
  • utcome (X):

real mtDNA data

heat maps: proportion of sites having a given pair of AAs

simulation outcome

we need outcomes to match up

Our simulated data LOOKS LIKE the REAL DATA!

MT KL MS

simulation for MT: MutSel with NO DT-mutations

M0 M0 +DT LRT: 100% M3 M3 +DT LRT: 97% C3 C3 +DT LRT: 47%

PRD PRD PRD

since there are NO DT-mutations, PRD is a measure

  • f PL
slide-23
SLIDE 23

PL associated with α and β PRD with true DT process PRD for real mtDNA dataset

M0 +DT M3 +DT C3 +DT Conclusions:

  • DT parameters (α

and β ) carry PL

  • is evidence for DT

process in mtDNA in excess of PL

  • estimated level of

DT very small in the real data

phenomenological load

testing PL on three proposed mechanisms for mtDNA

PRD for real mtDNA dataset

DT mutations relaxed selection synonymous rate variation proposed evolutionary mechanisms

slide-24
SLIDE 24

MT M0 KL MS M3

PRD

Why should you care?

  • 1. All of molecular evolution depends on models to some extent.
  • 2. All models are underspecified.
  • 3. Model parameters can carry substatial PL.
  • 4. Faster computers " more complex models
  • 5. Next Gen sequencing " minor effects detectable
  • 6. Standard model selection tools will NOT inform you about

levels of PL.

  • 7. Excessive PL will lead to false biological conclusions.
  • 8. Modelers MUST have biological expertise, and they MUST use

that expertise as part of the modeling process.

MT M0 KL MS M3

PRD

Shifting Balance and Phenomenological Load: References Jones, C. T., Youssef, N., Susko, E., & Bielawski, J. P. (2016). Shifting Balance on a Static Mutation–Selection Landscape: A Novel Scenario of Positive Selection. Molecular biology and evolution, 34(2), 391-407. Jones, C. T., Youssef, N., Susko, E., & Bielawski, J. P. (2018). Phenomenological load on model parameters can lead to false biological conclusions. Molecular biology and evolution, 35(6), 1473-1488. Jones C.T., Susko E., Bielawski J.P., 2018. Looking for Darwin in genomic sequences: validity and success depends on the relationship between model and data. In Evolutionary Genomics: Statistical and Computational Methods. Maria Anisimova (ed.) 2nd edition (In Press), Human press.

slide-25
SLIDE 25

How can you really tell if you have learned anything relevant to the function of your protein?

  • formally combine computational and

experimental approaches (B. Chang, next lecture)

  • formally combine phenotypic information within

the computational analysis of sequence evolution