Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture 6A – Introduction to Trees & Optimality Criteria Branches: n-taxa -> 2n-3 branches 1, 2, 4, 6, & 7 are external (leaves) 3 & 5 are internal branches.

Similar presentations


Presentation on theme: "Lecture 6A – Introduction to Trees & Optimality Criteria Branches: n-taxa -> 2n-3 branches 1, 2, 4, 6, & 7 are external (leaves) 3 & 5 are internal branches."— Presentation transcript:

1 Lecture 6A – Introduction to Trees & Optimality Criteria Branches: n-taxa -> 2n-3 branches 1, 2, 4, 6, & 7 are external (leaves) 3 & 5 are internal branches (edges) Nodes A – E are terminals x, y, & z are internal (vertices)

2 If we break branch 3, we have two sub-trees (A,B) and (C,(D,E)). ((A,B),C,(D,E)). Newick Format

3 Rooting – The tree is an unrooted tree.

4 Also note that there is free rotation around nodes:

5 The Scope of the Problem TaxaUnrooted Trees 31 43 515 6105 7945 810,395 9135,135 102.027 X 10 6 223 X 10 23 503 X 10 74 1002 X 10 82 10002 X 10 2,860 10 mil 5 X 10 68,667,340

6 II. Optimality Criteria A. Parsimony First, the score of a tree (i.e., its length) for the entire data set is given by: l i is the length of character i when optimized on tree . w i is the weight we assign to character i.

7 The Fitch Algorithm: state sets and accumulated lengths. We erect a state set at each terminal node and assign an accumulated length of zero to terminal nodes. This is the minimum number of changes in the daughter subtree.

8 The Fitch Algorithm: state sets and accumulated lengths. 1 – Form the intersection of the state sets of the two daughter nodes. If the intersection is non-empty, assign the set for the internal node equal to the intersection. The accumulated length of the internal node is the sum of those of the daughter nodes. 2 – If the intersection is empty, we assign the union of the two daughter nodes to the state set for the internal node. The accumulated length is the sum of those of the daughter nodes plus one. empty Union: 0+0+1=1 non-empty Intersection: 0+0=0 empty Union: 1+0+1=2 So l i = 2

9 Sankoff Algorithm – Character-state vectors and step-matrices Step Matrix – define c i,j ACGT A--414 C4--41 G14--4 T414-- Step one: Fill in the character-state vectors for terminal nodes. Each cell is the s k(i)

10 Step two: Fill in vectors for other nodes, descending tree. s 1(A) = c AG + c AA = 1 + 0 = 1, s 1(C) = c CG + c CA = 4 + 4 = 8, s 1(G) = c GG + c GA = 0 + 1 = 1, s 1(T) = c TG + c TA = 4 + 4 = 8 Node 1: Node 2: s 2(A) = 4 + 4 = 8 s 2(C) = 0 + 0 = 0 s 2(G) = 4 + 4 = 8 s 2(T) = 1 + 1 = 2

11 For nodes below, we must calculate the cost for each possible state assignment for daughter nodes. s 3(A) = min[s 1A + c Aj ] + min[s 2A + c Aj ] s 3(C) = min[s 1C + c Cj ] + min[s 2C + c Cj ] s 3(G) = min[s 1G + c Gj ] + min[s 2G + c Gj ] s 3(T) = min[s 1T + c Tj ] + min[s 2T + c Tj ] So we fill in the character-state vector for node 3. From daughter node 1 From step matrix = min[1,12,2,12] + min[8,4,9,6] = 1+4 = 5 5 = min [5,8,5,9] + min[12,0,12,3] = 5+0 = 5 5 = min [2,12,1,12] + min[9,4,8,6] = 1+4 = 5 5 = min [5,9,5,8] + min[12,1,12,2] = 5+1 = 6 6

12 Points to note: 1) Two types of weighting are possible: weighting of transformations within characters (which we demonstrated with the step matrix) and weighting among characters, which are reflected in the weighted sum of lengths across characters. 2) One can’t compare tree lengths across weighting schemes. In the first example, with all transformations having the same cost, the length of the character on this tree was 2. In the second, with a 4:1 step matrix to weight transversions, the length was 5.


Download ppt "Lecture 6A – Introduction to Trees & Optimality Criteria Branches: n-taxa -> 2n-3 branches 1, 2, 4, 6, & 7 are external (leaves) 3 & 5 are internal branches."

Similar presentations


Ads by Google