Bayes’ Theorem Reverend Thomas Bayes (1702-1761) Posterior Probability represents the degree to which we believe a given model accurately describes the.

Slides:



Advertisements
Similar presentations
Phylip PHYLIP (the PHYLogeny Inference Package) is a package of programs for inferring phylogenies (evolutionary trees). PHYLIP is the most widely-distributed.
Advertisements

Quick Lesson on dN/dS Neutral Selection Codon Degeneracy Synonymous vs. Non-synonymous dN/dS ratios Why Selection? The Problem.
CS 598AGB What simulations can tell us. Questions that simulations cannot answer Simulations are on finite data. Some questions (e.g., whether a method.
An Introduction to Phylogenetic Methods
Practical Session: Bayesian evolutionary analysis by sampling trees (BEAST) Rebecca R. Gray, Ph.D. Department of Pathology University of Florida.
Leptothorax gredosi Leptothorax racovitzae Camponotus herculeanus Thomas Bayes
Maximum Likelihood. Likelihood The likelihood is the probability of the data given the model.
CENTER FOR BIOLOGICAL SEQUENCE ANALYSIS Model Selection Anders Gorm Pedersen Molecular Evolution Group Center for Biological Sequence Analysis Technical.
Phylip PHYLIP (the PHYLogeny Inference Package) is a package of programs for inferring phylogenies (evolutionary trees). PHYLIP is the most widely-distributed.
MCB 371/372 phyml & treepuzzle 4/18/05 Peter Gogarten Office: BSP 404 phone: ,
MCB 5472 The Queue, Phylogenetic Reconstruction and Selection Peter Gogarten Office: BSP 404 phone: ,
MCB 371/372 positive selection 4/25/05 Peter Gogarten Office: BSP 404 phone: ,
CENTER FOR BIOLOGICAL SEQUENCE ANALYSIS Bayesian Inference Anders Gorm Pedersen Molecular Evolution Group Center for Biological Sequence Analysis Technical.
Phylip PHYLIP (the PHYLogeny Inference Package) is a package of programs for inferring phylogenies (evolutionary trees). PHYLIP is the most widely-distributed.
The gradualist point of view Evolution occurs within populations where the fittest organisms have a selective advantage. Over time the advantages genes.
MCB 372 Phylogenetic reconstruction Peter Gogarten Office: BSP 404 phone: ,
Phylogenetic reconstruction Peter Gogarten Office: BSP 404 phone: ,
Review Phylip (PAUP*) (treeview/clustal/muscle) PHYML PUZZLE MrBayes.
Sequence alignment: Removing ambiguous positions: Generation of pseudosamples: Calculating and evaluating phylogenies: Comparing phylogenies: Comparing.
Other ways to detect positive selection Selective sweeps -> fewer alleles present in population (see contributions from Archaic Humans for example) Repeated.
The gradualist point of view Evolution occurs within populations where the fittest organisms have a selective advantage. Over time the advantages genes.
Ml mapping From: Olga Zhaxybayeva and J Peter Gogarten BMC Genomics 2002, 3:4 Olga Zhaxybayeva and J Peter Gogarten BMC Genomics 2002, 3:4.
Course overview Tuesday lecture –Those not presenting turn in short review of a paper using the method being discussed Thursday computer lab –Turn in short.
The gradualist point of view Evolution occurs within populations where the fittest organisms have a selective advantage. Over time the advantages genes.
Phylogenetic reconstruction - How
Positive selection A new allele (mutant) confers some increase in the fitness of the organism Selection acts to favour this allele Also called adaptive.
Example of bipartition analysis for five genomes of photosynthetic bacteria (188 gene families) total 10 bipartitions R: Rhodobacter capsulatus, H: Heliobacillus.
CENTER FOR BIOLOGICAL SEQUENCE ANALYSIS Bayesian Inference Anders Gorm Pedersen Molecular Evolution Group Center for Biological Sequence Analysis Technical.
MCB 371/372 quartets positive selection 4/20/05 Peter Gogarten Office: BSP 404 phone: ,
MCB 372 #12: Tree, Quartets and Supermatrix Approaches Collaborators: Olga Zhaxybayeva (Dalhousie) Jinling Huang (ECU) Tim Harlow (UConn) Pascal Lapierre.
What is it good for? Gene duplication events can provide an outgroup that allows rooting a molecular phylogeny. Most famously this principle was applied.
CENTER FOR BIOLOGICAL SEQUENCE ANALYSIS Probabilistic modeling and molecular phylogeny Anders Gorm Pedersen Molecular Evolution Group Center for Biological.
CENTER FOR BIOLOGICAL SEQUENCE ANALYSIS Model Selection Anders Gorm Pedersen Molecular Evolution Group Center for Biological Sequence Analysis Technical.
Trees – what might they mean? Calculating a tree is comparatively easy, figuring out what it might mean is much more difficult. If this is the probable.
ACOT Intro/Copyright Succeeding in Business with Microsoft Excel 2010: Chapter1.
Phylogeny Estimation: Traditional and Bayesian Approaches Molecular Evolution, 2003
BINF6201/8201 Molecular phylogenetic methods
Input for the Bayesian Phylogenetic Workflow All Input values could be loaded as text file or typing directly. Only for the multifasta file is advised.
In the deterministic model, the time till fixation depends on the selective advantage, but fixation is guaranteed.
Selection versus drift The larger the population the longer it takes for an allele to become fixed. Note: Even though an allele conveys a strong selective.
ATPase dataset -> nj in figtree. ATPase dataset -> muscle -> phyml (with ASRV)– re-rooted.
Lecture 25 - Phylogeny Based on Chapter 23 - Molecular Evolution Copyright © 2010 Pearson Education Inc.
MCB 5472 Phylogenetic reconstruction likelihood and posterior probability Peter Gogarten Office: BSP 404 phone: ,
Trees – what might they mean? Calculating a tree is comparatively easy, figuring out what it might mean is much more difficult. If this is the probable.
Bayes estimators for phylogenetic reconstruction Ruriko Yoshida.
Lab3: Bayesian phylogenetic Inference and MCMC Department of Bioinformatics & Biostatistics, SJTU.
Maximum Likelihood - "Frequentist" inference x 1,x 2,....,x n ~ iid N( ,  2 ) Joint pdf for the whole random sample Maximum likelihood estimates.
Bayes estimators for phylogenetic reconstruction Ruriko Yoshida.
More statistical stuff CS 394C Feb 6, Today Review of material from Jan 31 Calculating pattern probabilities Why maximum parsimony and UPGMA are.
ATPase dataset from last Friday Alignment clustal vs muscle Conserved part are aligned reproducibly.
Bayesian Phylogenetics. Bayes Theorem Pr(Tree|Data) = Pr(Data|Tree) x Pr(Tree) Pr(Data)
Testing alternative hypotheses. Outline Topology tests: –Templeton test Parametric bootstrapping (briefly) Comparing data sets.
ATPase dataset from last Friday Alignment clustal vs muscle Conserved part are aligned reproducibly.
MCB5472 Computer methods in molecular evolution Slides for comp lab 4/2/2014.
N=50 s=0.150 replicates s>0 Time till fixation on average: t av = (2/s) ln (2N) generations (also true for mutations with negative “s” ! discuss among.
MCB 3421 class 26.
CENTER FOR BIOLOGICAL SEQUENCE ANALYSIS Probabilistic modeling and molecular phylogeny Anders Gorm Pedersen Molecular Evolution Group Center for Biological.
Bayes’ Theorem Reverend Thomas Bayes ( ) Posterior Probability represents the degree to which we believe a given model accurately describes the.
Bootstrap ? See herehere. Maximum Likelihood and Model Choice The maximum Likelihood Ratio Test (LRT) allows to compare two nested models given a dataset.Likelihood.
Bioinf.cs.auckland.ac.nz Juin 2008 Uncorrelated and Autocorrelated relaxed phylogenetics Michaël Defoin-Platel and Alexei Drummond.
Phylogenetic reconstruction, probability mapping, types of selection. Peter Gogarten Office: BSP 404 phone: ,
Introns early Self splicing RNA are an example for catalytic RNA that could have been present in RNA world. There is little reason to assume that the RNA.
Phylip PHYLIP (the PHYLogeny Inference Package) is a package of programs for inferring phylogenies (evolutionary trees). PHYLIP is the most widely-distributed.
Phylogenetic reconstruction - How Distance analyses calculate pairwise distances (different distance measures, correction for multiple hits, correction.
Bayesian inference with MrBayes Molecular Phylogenetics – exercise
Comments on bipartitions, quartets and supertrees
Phylogenetic reconstruction
MCB 5472 Intro to Trees Peter Gogarten Office: BSP 404
DN/dS.
Reverend Thomas Bayes ( )
Presentation transcript:

Bayes’ Theorem Reverend Thomas Bayes ( ) Posterior Probability represents the degree to which we believe a given model accurately describes the situation given the available data and all of our prior information I Prior Probability describes the degree to which we believe the model accurately describes reality based on all of our prior information. Likelihood describes how well the model predicts the data Normalizing constant P(model|data, I) = P(model, I) P(data|model, I) P(data,I)

ml mapping From: Olga Zhaxybayeva and J Peter Gogarten BMC Genomics 2002, 3:4 Olga Zhaxybayeva and J Peter Gogarten BMC Genomics 2002, 3:4

ml mapping Figure 5. Likelihood-mapping analysis for two biological data sets. (Upper) The distribution patterns. (Lower) The occupancies (in percent) for the seven areas of attraction. (A) Cytochrome-b data from ref. 14. (B) Ribosomal DNA of major arthropod groups (15). From: Korbinian Strimmer and Arndt von Haeseler Proc. Natl. Acad. Sci. USA Vol. 94, pp , June 1997Korbinian Strimmer and Arndt von Haeseler Proc. Natl. Acad. Sci. USA Vol. 94, pp , June 1997

(a,b)-(c,d) /\ / \ / \ / 1 \ / \ / \ / \ / \ / \/ \ / 3 : 2 \ / : \ /__________________\ (a,d)-(b,c) (a,c)-(b,d) Number of quartets in region 1: 68 (= 24.3%) Number of quartets in region 2: 21 (= 7.5%) Number of quartets in region 3: 191 (= 68.2%) Occupancies of the seven areas 1, 2, 3, 4, 5, 6, 7: (a,b)-(c,d) /\ / \ / 1 \ / \ / \ / /\ \ / 6 / \ 4 \ / / 7 \ \ / \ /______\ / \ / 3 : 5 : 2 \ /__________________\ (a,d)-(b,c) (a,c)-(b,d) Number of quartets in region 1: 53 (= 18.9%) Number of quartets in region 2: 15 (= 5.4%) Number of quartets in region 3: 173 (= 61.8%) Number of quartets in region 4: 3 (= 1.1%) Number of quartets in region 5: 0 (= 0.0%) Number of quartets in region 6: 26 (= 9.3%) Number of quartets in region 7: 10 (= 3.6%) Cluster a: 14 sequences outgroup (prokaryotes) Cluster b: 20 sequences other Eukaryotes Cluster c: 1 sequences Plasmodium Cluster d: 1 sequences Giardia

Bayesian Posterior Probability Mapping with MrBayes (Huelsenbeck and Ronquist, 2001) Alternative Approaches to Estimate Posterior Probabilities Problem: Strimmer’s formula Solution: Exploration of the tree space by sampling trees using a biased random walk (Implemented in MrBayes program) Trees with higher likelihoods will be sampled more often pipi NiNi N total,where N i - number of sampled trees of topology i, i=1,2,3 N total – total number of sampled trees (has to be large) pi=pi= LiLi L 1 +L 2 +L 3 only considers 3 trees (those that maximize the likelihood for the three topologies)

Figure generated using MCRobot program (Paul Lewis, 2001) Illustration of a biased random walk

A: mapping of posterior probabilities according to Strimmer and von Haeseler B: mapping of bootstrap support values C: mapping of bootstrap support for embedded quartets from extended datasets (see fig. 2) COMPARISON OF DIFFERENT SUPPORT MEASURES Zhaxybayeva and Gogarten, BMC Genomics : 37

Boostrap Support Values for Embedded Quartets vs. Bipartitions: Performance evaluation using sequence simulations and phylogenetic reconstructions

N=4(0)N=5(1) N=8(4) N=13(9)N=23(19)N=53(49) 0.01 A A B A A A A B B B B B B DC D C D C D C D C D C

Methodology : Input tree Seq-Gen Aligned Simulated AA Sequences (200,500 and 1000 AA) WAG, Cat=4 Alpha=1 Seqboot 100 Bootstraps ML Tree Calculation FastTree, WAG, Cat=4 Consense Extract Bipartitions For each individual trees Extract Highest Bootstrap support separating AB><CD Count How many trees embedded quartet AB><CD is supported Repeat 100 times

Results : Maximum Bootstrap Support value for Bipartition separating (AB) and (CD) Maximum Bootstrap Support value for embedded Quartet (AB),(CD)

PAML (codeml) the basic model

Vincent Daubin and Howard Ochman: Bacterial Genomes as New Gene Homes: The Genealogy of ORFans in E. coli. Genome Research 14: , 2004 The ratio of non- synonymous to synonymous substitutions for genes found only in the E.coli - Salmonella clade is lower than 1, but larger than for more widely distributed genes. Fig. 3 from Vincent Daubin and Howard Ochman, Genome Research 14: , 2004

Trunk-of-my-car analogy: Hardly anything in there is the is the result of providing a selective advantage. Some items are removed quickly (purifying selection), some are useful under some conditions, but most things do not alter the fitness. Could some of the inferred purifying selection be due to the acquisition of novel detrimental characteristics (e.g., protein toxicity, HOPELESS MONSTERS)?

sites model in MrBayes begin mrbayes; set autoclose=yes; lset nst=2 rates=gamma nucmodel=codon omegavar=Ny98; mcmcp samplefreq=500 printfreq=500; mcmc ngen=500000; sump burnin=50; sumt burnin=50; end; The MrBayes block in a nexus file might look something like this:

MrBayes analyzing the *.nex.p file 1.The easiest is to load the file into excel (if your alignment is too long, you need to load the data into separate spreadsheets – see here execise 2 item 2 for more info)here 2.plot LogL to determine which samples to ignore 3.for each codon calculate the the average probability (from the samples you do not ignore) that the codon belongs to the group of codons with omega>1. 4.plot this quantity using a bar graph.

plot LogL to determine which samples to ignore the same after rescaling the y-axis

for each codon calculate the the average probability enter formula copy paste formula plot row

PAML – codeml – branch model dS -treedN -tree

hy-phy Results of an anaylsis using the SLAC approach

Hy-Phy - Hypothesis Testing using Phylogenies. Using Batchfiles or GUI Information at Selected analyses also can be performed online at

Example testing for dN/dS in two partitions of the data -- John’s dataset Set up two partitions, define model for each, optimize likelihood

Example testing for dN/dS in two partitions of the data -- John’s dataset The dN/dS ratios for the two partitions are different. Save Likelihood Function then select as alternative

Example testing for dN/dS in two partitions of the data -- John’s dataset Set up null hypothesis, i.e.: The two dN/dS are equal (to do, select both rows and then click the define as equal button on top)

Example testing for dN/dS in two partitions of the data -- John’s dataset

Nam e and save as Null- hyp.

Example testing for dN/dS in two partitions of the data -- John’s dataset After selecting LRT (= Likelihood Ratio test), the console displays the result, i.e., the beginning and end of the sequence alignment have significantly different dN/dS ratios.

Example testing for dN/dS in two partitions of the data -- John’s dataset Alternatively, especially if the the two models are not nested, one can set up two different windows with the same dataset: Model 1 Model 2

Example testing for dN/dS in two partitions of the data -- John’s dataset Simulation under model 2, evaluation under model 1, calculate LR Compare real LR to distribution from simulated LR values. The result might look something like this or this