. Computational Genomics 5a Distance Based Trees Reconstruction (cont.) Modified by Benny Chor, from slides by Shlomo Moran and Ydo Wexler (IIT)

Slides:



Advertisements
Similar presentations
. Class 9: Phylogenetic Trees. The Tree of Life Evolution u Many theories of evolution u Basic idea: l speciation events lead to creation of different.
Advertisements

Brandon Andrews CS6030.  What is a phylogenetic tree?  Goals in a phylogenetic tree generator  Distance based method  Fitch-Margoliash Method Example.
. Phylogenetic Trees (2) Lecture 13 Based on: Durbin et al 7.4, Gusfield , Setubal&Meidanis 6.1.
Phylogenetic trees Sushmita Roy BMI/CS 576 Sep 23 rd, 2014.
The Saitou&Nei Neighbor Joining Algorithm ©Shlomo Moran & Ilan Gronau.
Problem Set 2 Solutions Tree Reconstruction Algorithms
. Phylogeny II : Parsimony, ML, SEMPHY. Phylogenetic Tree u Topology: bifurcating Leaves - 1…N Internal nodes N+1…2N-2 leaf branch internal node.
. Maximum Likelihood (ML) Parameter Estimation with applications to inferring phylogenetic trees Comput. Genomics, lecture 7a Presentation partially taken.
Bioinformatics Algorithms and Data Structures
Fast Algorithms for Minimum Evolution Richard Desper, NCBI Olivier Gascuel, LIRMM.
. Distance-Based Phylogenetic Reconstruction ( part II ) Tutorial #11 © Ilan Gronau.
Distance methods. UPGMA: similar to hierarchical clustering but not additive Neighbor-joining: more sophisticated and additive What is additivity?
In addition to maximum parsimony (MP) and likelihood methods, pairwise distance methods form the third large group of methods to infer evolutionary trees.
5 - 1 Chap 5 The Evolution Trees Evolutionary Tree.
Linear Least Squares and its applications in distance matrix methods Presented by Shai Berkovich June, 2007 Seminar in Phylogeny, CS Based on the.
CISC667, F05, Lec15, Liao1 CISC 667 Intro to Bioinformatics (Fall 2005) Phylogenetic Trees (II) Distance-based methods.
Phylogenetic Trees Tutorial 6. Measuring distance Bottom-up algorithm (Neighbor Joining) –Distance based algorithm –Relative distance based Phylogenetic.
Multiple sequence alignment
. Class 9: Phylogenetic Trees. The Tree of Life D’après Ernst Haeckel, 1891.
Phylogenetic Trees Tutorial 6. Measuring distance Bottom-up algorithm (Neighbor Joining) –Distance based algorithm –Relative distance based Phylogenetic.
Chapter 5 The Evolution Trees.
. Comput. Genomics, Lecture 5b Character Based Methods for Reconstructing Phylogenetic Trees: Maximum Parsimony Based on presentations by Dan Geiger, Shlomo.
Distance-Based Phylogenetic Reconstruction Tutorial #8 © Ilan Gronau, edited by Itai Sharon.
Building Phylogenies Distance-Based Methods. Methods Distance-based Parsimony Maximum likelihood.
. Phylogenetic Trees (2) Lecture 12 Based on: Durbin et al Section 7.3, 7.8, Gusfield: Algorithms on Strings, Trees, and Sequences Section 17.
Phylogenetic Trees Lecture 2
. Computational Genomics 5a Distance Based Trees Reconstruction (cont.) Sections 7.1, 7.2, in Durbin et al. Chapter 17 in Gusfield (updated April 12, 2009)
Phylogenetic trees Tutorial 6. Distance based methods UPGMA Neighbor Joining Tools Mega phylogeny.fr DrewTree Phylogenetic Trees.
. Phylogenetic Trees (2) Lecture 12 Based on: Durbin et al Section 7.3, 7.8, Gusfield: Algorithms on Strings, Trees, and Sequences Section 17.
Phylogenetic trees Sushmita Roy BMI/CS 576
Phylogenetic Analysis. 2 Introduction Intension –Using powerful algorithms to reconstruct the evolutionary history of all know organisms. Phylogenetic.
Terminology of phylogenetic trees
Phylogenetics Alexei Drummond. CS Friday quiz: How many rooted binary trees having 20 labeled terminal nodes are there? (A) (B)
1 Dan Graur Molecular Phylogenetics Molecular phylogenetic approaches: 1. distance-matrix (based on distance measures) 2. character-state.
1 Generalized Tree Alignment: The Deferred Path Heuristic Stinus Lindgreen
Phylogenetic Analysis. General comments on phylogenetics Phylogenetics is the branch of biology that deals with evolutionary relatedness Uses some measure.
BINF6201/8201 Molecular phylogenetic methods
Parsimony-Based Approaches to Inferring Phylogenetic Trees BMI/CS 576 Colin Dewey Fall 2010.
The Neighbor Joining Tree-Reconstruction Technique Lecture 13 ©Shlomo Moran & Ilan Gronau.
OUTLINE Phylogeny UPGMA Neighbor Joining Method Phylogeny Understanding life through time, over long periods of past time, the connections between all.
Phylogenetic Trees Tutorial 5. Agenda How to construct a tree using Neighbor Joining algorithm Phylogeny.fr tool Cool story of the day: Horizontal gene.
Building phylogenetic trees. Contents Phylogeny Phylogenetic trees How to make a phylogenetic tree from pairwise distances  UPGMA method (+ an example)
Calculating branch lengths from distances. ABC A B C----- a b c.
394C, Spring 2013 Sept 4, 2013 Tandy Warnow. DNA Sequence Evolution AAGACTT TGGACTTAAGGCCT -3 mil yrs -2 mil yrs -1 mil yrs today AGGGCATTAGCCCTAGCACTT.
Ch.6 Phylogenetic Trees 2 Contents Phylogenetic Trees Character State Matrix Perfect Phylogeny Binary Character States Two Characters Distance Matrix.
More statistical stuff CS 394C Feb 6, Today Review of material from Jan 31 Calculating pattern probabilities Why maximum parsimony and UPGMA are.
Comp. Genomics Recitation 8 Phylogeny. Outline Phylogeny: Distance based Probabilistic Parsimony.
Maximum Likelihood Given competing explanations for a particular observation, which explanation should we choose? Maximum likelihood methodologies suggest.
Phylogenetic trees Sushmita Roy BMI/CS 576 Sep 23 rd, 2014.
Tutorial 5 Phylogenetic Trees.
598AGB Basics Tandy Warnow. DNA Sequence Evolution AAGACTT TGGACTTAAGGCCT -3 mil yrs -2 mil yrs -1 mil yrs today AGGGCATTAGCCCTAGCACTT AAGGCCTTGGACTT.
Part 9 Phylogenetic Trees
Distance-Based Approaches to Inferring Phylogenetic Trees BMI/CS 576 Colin Dewey Fall 2010.
Statistical stuff: models, methods, and performance issues CS 394C September 3, 2009.
Distance-based methods for phylogenetic tree reconstruction Colin Dewey BMI/CS 576 Fall 2015.
Fitch-Margoliash Algorithm 1.From the distance matrix find the closest pair, e.g., A & B 2.Treat the rest of the sequences as a single composite sequence.
CSCE555 Bioinformatics Lecture 13 Phylogenetics II Meeting: MW 4:00PM-5:15PM SWGN2A21 Instructor: Dr. Jianjun Hu Course page:
Distance-based phylogeny estimation
394C, Spring 2012 Jan 23, 2012 Tandy Warnow.
Distance based phylogenetics
dij(T) - the length of a path between leaves i and j
Inferring a phylogeny is an estimation procedure.
Clustering methods Tree building methods for distance-based trees
Multiple Alignment and Phylogenetic Trees
Phylogenetic Trees.
BNFO 602 Phylogenetics Usman Roshan.
CS 581 Tandy Warnow.
Phylogeny.
CS 394C: Computational Biology Algorithms
September 1, 2009 Tandy Warnow
Presentation transcript:

. Computational Genomics 5a Distance Based Trees Reconstruction (cont.) Modified by Benny Chor, from slides by Shlomo Moran and Ydo Wexler (IIT)

2 Phylogenetic Trees - Methods There are several methods with which we construct trees and estimate how good a tree describes the data (and thus the evolution process) Distance based methods Parsimony character based methods Likelihood Whole genome/proteome methods

3 Additive Distances We say that a distance metric D on L objects is additive if there is an unrooted binary tree on L leaves, with positive edge weights, that realizes the distance D. Namely for all i,j, D(i,j)=D T (i,j)

4 Characterizing Additive Distances An additive distance is fully characterized by the four point condition: Any 4 points can be renamed such that

5 Trees from Additive Distances: Algorithm Verify that the distance matrix constitutes an additive metric Choose a pair of objects, which results in the first path in the tree. Choose a third object and establish the linear equations to let the object branch off the path. Choose a pair of leaves in the tree constructed so far and compute the point a newly chosen object is inserted at. 1. If the new path branches off an existing branch in the tree: Do the insertion step once more, replacing one of the two original leaves by another leaf along the branching path. 2. Once the new path branches off an edge in the tree, this insertion is finished. ABCDE A02747 B0747 C076 D07 E0 A C 7

6 Verify that the distance matrix constitutes an additive metric Choose a pair of objects, which results in the first path in the tree. Choose a third object and establish the linear equations to let the object branch off the path. Choose a pair of leaves in the tree constructed so far and compute the point a newly chosen object is inserted at. 1. If the new path branches off an existing branch in the tree: Do the insertion step once more, replacing one of the two original leaves by another leaf along the branching path. 2. Once the new path branches off an edge in the tree: This insertion is finished. ABCDE A02747 B0747 C076 D07 E0 A C 6 B 1 1 X Trees from Additive Distances: Algorithm

7 Verify that the distance matrix constitutes an additive metric Choose a pair of objects, which results in the first path in the tree. Choose a third object and establish the linear equations to let the object branch off the path. Choose a pair of leaves in the tree constructed so far and compute the point a newly chosen object is inserted at. 1. If the new path branches off an existing branch in the tree: Do the insertion step once more, replacing one of the two original leaves by another leaf along the branching path. 2. Once the new path branches off an edge in the tree: This insertion is finished. ABCDE A02747 B0747 C076 D07 E0 d(A,B)=d(A,X)+d(X,B) d(A,C)=d(A,X)+d(X,C) d(B,C)=d(B,X)+d(X,C) Trees from Additive Distances: Algorithm

8 Verify that the distance matrix constitutes an additive metric Choose a pair of objects, which results in the first path in the tree. Choose a third object and establish the linear equations to let the object branch off the path. Choose a pair of leaves in the tree constructed so far and compute the point a newly chosen object is inserted at. 1. If the new path branches off an existing branch in the tree: Do the insertion step once more, replacing one of the two original leaves by another leaf along the branching path. 2. Once the new path branches off an edge in the tree: This insertion is finished. ABCDE A02747 B0747 C076 D07 E0 A C 1 B D Trees from Additive Distances: Algorithm

9 Verify that the distance matrix constitutes an additive metric Choose a pair of objects, which results in the first path in the tree. Choose a third object and establish the linear equations to let the object branch off the path. Choose a pair of leaves in the tree constructed so far and compute the point a newly chosen object is inserted at. 1. If the new path branches off an existing branch in the tree: Do the insertion step once more, replacing one of the two original leaves by another leaf along the branching path. 2. Once the new path branches off an edge in the tree: This insertion is finished. ABCDE A02747 B0747 C076 D07 E0 A C 1 B D E 5 NO! Trees from Additive Distances: Algorithm

10 Verify that the distance matrix constitutes an additive metric Choose a pair of objects, which results in the first path in the tree. Choose a third object and establish the linear equations to let the object branch off the path. Choose a pair of leaves in the tree constructed so far and compute the point a newly chosen object is inserted at. 1. If the new path branches off an existing branch in the tree: Do the insertion step once more, replacing one of the two original leaves by another leaf along the branching path. 2. Once the new path branches off an edge in the tree: This insertion is finished. ABCDE A02747 B0747 C076 D07 E0 A C 1 B D E 3 3 Trees from Additive Distances: Algorithm

11 Verify that the distance matrix constitutes an additive metric Choose a pair of objects, which results in the first path in the tree. Choose a third object and establish the linear equations to let the object branch off the path. Choose a pair of leaves in the tree constructed so far and compute the point a newly chosen object is inserted at. 1. If the new path branches off an existing branch in the tree: Do the insertion step once more, replacing one of the two original leaves by another leaf along the branching path. 2. Once the new path branches off an edge in the tree: This insertion is finished. ABCDE A02747 B0747 C076 D07 E0 A C 1 B D E 3 3 is this necessary? Trees from Additive Distances: Algorithm

12 Reconstructing a Tree from an Additive Distance ABCDE A02747 B0747 C076 D07 E0 A C 1 B D E 3 3 By algorithm, given a distance matrix constituting an additive metric, the topology of the corresponding additive tree is unique. Q.: Given an additive metric on n leaves, what is the run time of the algorithm? A.: Number of phases is n. Work per phase is O(n). So total is O(n 2 ).

13 Approximating Additive Metrices In practice, the distance matrix between molecular sequences will not be additive. In such case we want to find a tree T whose distance matrix is “close” to the given one. The methods for exact tree reconstruction provide an inventory for heuristics for tree construction based on approximating additive metrics. Heuristics give exact results when operating on additive metrics, but the performance of solutions gets unclear when non additive metrics are handled.

14 Neighbor Finding How can we find from distances alone a pair of sisters (neighboring leaves)? Closest nodes are not necessarily neighboring leaves. A B C D Next, we show a way to find neighbors from distances.

15 Neighbour Joining Algorithm: Outline Identify a pair of leaves u,v as neighbors. Combine u,v into a new node, w. Update the distance matrix: Calculate w’s distance from any other node x of the tree using Notice that all 3 quantities on rhs are known. When only 3 nodes are left – compute 3 distances & finish.

16 Neighbour Joining Algorithm Identify a pair of neighbors i,j among n leaves. Combine i,j into a new node u. Update the distance matrix. When only 3 nodes are left – finish. Let r i be the sum of distances from i to every other node The measure between i and j we use in the algorithm is im jn kl

17 Neighbour Joining Algorithm Let r i be the sum of distances from i to all other nodes The measure between i and j we use in the algorithm is im jn kl

18 Neighbor Finding: Seitou & Nei method Theorem (Saitou&Nei) Assume D is additive, and all tree edge weights are positive. If X D (i,j) is minimal (among all pairs of leaves), then i and j are sister taxa in the tree. i j kl m T1T1 T2T2 The proof is rather involved, and will be skipped (no tears pls).skipped

19 Complexity of Neighbor Joining Algorithm Naive Implementation: Initialization: θ(L 2 ) to compute the X D (i,j)’s. Each Iteration: u O(L) to update {X D (i,k):i  L} for the new node k. u O(L 2 ) to find the minimal X D (i,j). Total of O(L 3 ). u This can be improved using better data structures (e.g. heap) i j k m

20 Reconstructing Trees from Additive Matrices ABCDE A02747 B0747 C076 D07 E0 A C 1 B D E 3 3 Q: Do we have to test additivity before running NJ? A: By Seito-Nei, if matrix is additive, NJ will construct the correct tree. Algorithm does not care about awareness and need not know anything about the matrix!

21 Running NJ: Example on 4 Leaves ABCD A0236 B2035 C3306 D6560 U B A Remark: The X D values imply that the distances are not additive (why?).

22 Updated Distance Matrix, Choosing A,B as Neighbors UCD U024.5 C206 D 60 U B A V D Notice that now we have only one Choice: The neighbors are U and D.

23 Final Distance Matrix VC V05.6 C 0 U B A V D C Remark: Resulting tree is unrooted.

24 Reconstructing Trees from non Additive Matrices Q: What if the distance matrix is not additive? A: We could still run NJ! Q: But can anything be said about the resulting tree? A: Not really. Resulting tree topology could even vary according to way ties are resolved on the way. Remark: This indeed was the case with last example.

25 Almost Additive Matrix A distance matrix d’ is “almost additive” if there exists an additive matrix D such that Atteson: If d’ is almost additive with respect to a tree T, then the output of NJ is a tree T’ with the same topology as T

26 Distance Matrix Example

27 Unrooted Tree - NJ Root

28 Output - NJ Tree Branch length is proportional to distance

29 N-J Method produces an Unrooted, Additive tree