Presentation is loading. Please wait.

Presentation is loading. Please wait.

BINF6201/8201 Molecular phylogenetic methods 4 11-10-2011.

Similar presentations


Presentation on theme: "BINF6201/8201 Molecular phylogenetic methods 4 11-10-2011."— Presentation transcript:

1 BINF6201/8201 Molecular phylogenetic methods 4 11-10-2011

2 Maximum likelihood methods  So far we have only considered a single site (configuration). The likelihood for all sites is the product of the likelihoods for each site if all the sites evolve independently.  Suppose there are s homologous sequences each with N nucleotides. Let D n be the n-th column of the multiple alignment.  For a tree T, let be the likelihood of tree T for the n-th site, where  ,  ,…,  m are the unknown parameters such as the branch length. Using the previous case as an example, we have,

3 Maximum likelihood methods  For simplicity, let’s assume the sequences are homogenous, i.e., all sites evolve at the same rate, then the likelihood function for the entire sequence for the tree T is,  Here, we treat L as a function of the parameters. We then search for the values of  ,  ,…,  m that maximize L given the topology of the tree T, this value of L is called a ML value of the tree T.  Finding the ML value can be a slow process.  We do this for all possible tree topologies, and identify the one that has the largest ML value as the inferred phylogenetic tree of the s sequences.  Clearly, different substitution models may result in different trees.  When the number of OTUs is larger, a heuristic trees search algorithm should be used for evaluating the alternative trees.

4 Heuristic tree search using predefined clusters  Although the tree space could be very large, majority of them have extremely low likelihood values for a certain OTUs.  So we can safely ignore these unpromising trees, and focus on the promising ones.  To reduce the searching space, we can predefine clusters if their relationships are known as the input.  Then the problem becomes to examine the (105) possible trees generated by connecting these predefined groups, instead of an astronomically large number of unrooted trees:

5 Heuristic tree search using predefined clusters  The ML value is computed for each tree, the one with the largest ML value is returned as the inferred tree.  As this algorithm examines all possible trees, so the global optimum is guaranteed if the predefined groups are correct.  When the simple J-C model was used, and a homogenous substitution rate is assumed, the resulting ML tree is similar to the NJ and parsimony tree with the problem of misplacing tree shrews inside the primate group.

6 Maximum likelihood trees for primates  However, when the more sophisticated HKY substitution model, plus six  - distribution rate categories and invariant sites were used, the tree constructed by the ML method places the tree shrews outside of the primate group.  Nevertheless, there are three trifurcations on this tree, indicating that at a trifurcation point, any of the three clusters can be an outgroup of the other two, and the three trees have the same ML value.

7 Comparison of parsimony and maximum likelihood methods  Parsimony methods have only one assumption that the changes on the branches are equally possible, however, this assumption may not hold.  Because of the few assumptions are used in parsimony methods, their proponents believe that these methods can be applied to any sequence data.  Parsimony method is also relatively fast, so can be applied to larger data sets.  ML methods make assumptions about the evolutionary models.  ML methods need to optimize all these parameters to find the ML value, therefore they are computationally intensive, and are very slow.  When evolutionary models are properly selected, ML methods tend to achieve better results than parsimony methods.

8 Heuristic tree search using quartet puzzling  The quartet puzzling algorithm is very fast heuristic algorithm for exploring the promising trees. Step 1: Computer ML values of the three trees for all possible four sequences For each possible 4 sequences 1 2 3 4 1 3 2 4 1 4 2 3 trees The best ML tree 123456123456

9 Heuristic tree search using quartet puzzling Step 2: Randomly pick up four sequences, place them in the tree according to their best ML tree. 1 4 2 3 Step 3: Randomly pick up a remaining sequence, and add it to the tree, such that growing tree has a maximum number of best ML quartet trees. Repeat this process until all sequences are added to the tree. 5 1 3 2 5 then, the resulting tree will be, 4 3 2 5 1 4 2 3 For example, if sequence 5 is randomly picked, and if one or both of the following trees are the best ML quartet trees involving 1, 2, 3, 4, and 5:

10 Heuristic tree search using quartet puzzling 1 4 2 3 5 Add sequence 6 1 4 2 3 5 6 6 1 3 4 Then the resulting tree will be Then last sequence 6 is added to the tree. If the following has the best ML among all quartet trees containing sequence 6,  The whole process is repeated many times with the sequences being selected in different orders. The resulting tree will depend on the order of sequence selections.  The tree that happens most frequently will be chosen as the inferred tree.

11 Bayesian phylogenetic methods  Bayesian theorem: if A and B are two events, then T1T1 T2T2 T3T3 T4T4 T5T5 T6T6 T7T7 T8T8 T9T9 T 10 T 11 T 12 D  If T 1, T 2, …, and T n, are events that partitions the sample space, and D is an event from the sample space, then,

12 Bayesian phylogenetic methods  For N OTUs, we can have n=(2N-5)!! possible unrooted trees, which is a partition of the tree space. Let D be the alignment of the N OUTs, but we do not know which tree is most likely to account for D. tree 1 tree 2 tree 3 tree 4 tree 5 tree 6 tree 7 tree 8 tree 9 tree 10 …….tree n  In the ML method, we compute the probability (likelihood) that D can be generated by each tree: L(tree i )=P(D/tree i ). We find the maximum likelihood ML=max [P(D/tree i )] by changing the parameters (branch length or substitution rates) on each tree i, and return the tree that has largest ML.  In Bayesian methods, we compute the probability that a tree can be generated by the observed alignment of the N OTUs, which is called the posterior probability,

13 Bayesian phylogenetic methods  Using Bayesian theorem, we have,  Calculation of the denominator of the posterior probability can difficulty, because we have to numerate all possible trees, and their branch length or substitution rate.  However, the value of the denominator is a constant for all possible trees, thus the posterior probability of each tree is only proportional to the likelihood of the tree multiplied by the prior probability.  If we can generate a large number of trees, such that the frequency of a tree is proportional to its likelihood of the tree multiplied by the prior probability, then the posterior probability can be easily computed by, where, P(tree i ) is called the prior probability.

14 The Markov chain Monte Carlo method for sampling  Markov chain Monte Carlo (MCMC) is a method for generating a sample from the entire sample space, such that the frequency of each individual in the sample is propotional to the likelihood to generate the observed data.  If we have no preference for choosing a tree before seeing the data, we can use a non-informative uniform prior probability, therefore,  The MCMC method begins with a trial tree T 1 and compute its likelihood, L 1, a move is then made on this tree that changes it by a small amount on any of the following parameters, 1. Branch length; 2. Rate of substitution; 3. Topology by a nearest neighbor interchange tree move.

15 The Markov chain Monte Carlo method for sampling  The likelihood of the new tree T 2, L 2 is computed, which is usually slightly different from L 1. If L 2 > L 1, then T 2 is accepted, and it becomes an element in the sample If L 2 < L 1, then T 2 is accepted with probability L 2 / L 1. This rule of selection is call the Metropolis algorithm.  Therefore the MCMC method favors hill-climbing moves, but also allows downhill moves with the a certain probability.  The result will be that the equilibrium probabilities of observing the different trees in the sample are given by the likelihoods of the trees.  To see this, suppose that we have only two trees, so MCMC moves back and forward between them with transition probabilities r 12 and r 21. T1T1 T2T2 r 12 r 21

16 The Markov chain Monte Carlo method for sampling  Let p 1 and p 2 be the equilibrium probabilities of these trees in the sample. Then at equilibrium, the probabilities of observing these trees during the sampling process should be constant,  This property is called detailed balance. To have trees in the sample to be proportional to their likelihoods, we need to set Therefore, we have,  This means that to generate the desired sample, we should set the ratio of transitional probability to be equal to the ratio of likelihoods.  The MCMC algorithm just does this, because, if L 2 > L 1, we set r 12 =1, r 21 = L 1 /L 2 ; therefore, r 21 /r 12 = L 1 /L 2. if L 2 < L 1, we set r 12 = L 2 /L 1, and r 21 =1; therefore, r 21 /r 12 = L 1 /L 2.

17 The top four trees for the Platyrrhini group by MCMC The same as in the tree constructed by NJ and parsimony methods  To compute likelihoods, HKY substitution model, plus six  - distribution rate categories and invariant sites are used.  The most parts o the tree are well defined, except the following groups. The positions of Capuchin is varying

18 The top seven trees for principle groups by MCMC The same as by NJ and parsimony  The uncertainty of these trees indicate that more sequences are needed to solve the problem. The positions of Capuchin is varying

19 Popular phylogenetic tree construction programs  PHYLIP  PAUP (Phylogenetic Analysis Using Parsimony) Developed by Joseph Felsenstein; Implements most known distance methods such as UPGAM and NJ, maximum parsimony and ML methods; The most recent release is version 3.69, which contains more than 50 programs; Command line interface; The package can be freely downloaded at http://evolution.genetics.washington.edu/phylip.html Written by David Swofford; Includes parsimony, distance matrix, invariants, and maximum likelihood methods and many indices and statistical tests; Described at http://paup.csit.fsu.edu/ Unfortunately, it is now commercialized by Sinauer Associates, selling for $85-150/package.

20 Popular phylogenetic tree construction programs  MEGA (Molecular Evolutionary Genetic Analysis)  TREE-PUZZLE Developed by Sudhir Kumar and colleagues; Contains parsimony, distance and likelihood methods for molecular data (nucleic acid sequences and protein sequences); Can do bootstrapping, consensus trees, and a variety of data editing tasks; Has sequence alignment function using an implementation of ClustalW; A GUI based program; Contain tree display functions. Written by Korbinian Strimmer; A program for maximum likelihood analysis for nucleotide and amino acid alignments; Infers phylogenies by quartet puzzling;

21 Popular phylogenetic tree construction programs  TREE-PUZZLE  MrBayes  Tree View Supports all popular models of sequence evolution of nucleotides and proteins, and can take rate heterogeneity among sites into account; Compatible with PHYLIP files; The current version also has features for parallel computation using the MPI message-passing interface if this is available; Freely available at http://www.tree-puzzle.de/. A program for the Bayesian estimation of phylogenetic trees. Ability to analyze nucleotide, amino acid, restriction site, and morphological data Freely available at http://mrbayes.csit.fsu.edu/ A program for visualization and printing trees; Free at http://taxonomy.zoology.gla.ac.uk/rod/treeview.html


Download ppt "BINF6201/8201 Molecular phylogenetic methods 4 11-10-2011."

Similar presentations


Ads by Google