Presentation is loading. Please wait.

Presentation is loading. Please wait.

The bootstrap, consenus-trees, and super-trees Phylogenetics Workhop, 16-18 August 2006 Barbara Holland.

Similar presentations


Presentation on theme: "The bootstrap, consenus-trees, and super-trees Phylogenetics Workhop, 16-18 August 2006 Barbara Holland."— Presentation transcript:

1 The bootstrap, consenus-trees, and super-trees Phylogenetics Workhop, 16-18 August 2006 Barbara Holland

2 What is the bootstrap? Like in many other areas where statistical inference is applied, in phylogenetics it is not just of interest to get a point estimate of the phylogenetic tree. We would also like some measure of confidence in our point estimate.  Is our tree likely to change if we got more data, or if we had used slightly different data?  How robust is our result to sampling error? The bootstrap is a useful tool for answering these sorts of questions.

3 Assessing confidence in trees In 1985 Felsenstein introduced the idea of the bootstrap to phylogenetics. For each boostrap sample  Create a new alignment by resampling the columns of the observed alignment  Construct a tree for the ‘bootstrap’ alignment Can be applied to any method that starts from a sequence alignment, e.g., parsimony, likelihood, clustering methods if the distances are derived from an alignment… The bootstrap support for each edge is the number of bootstrap trees that edge appears in.

4 1234567 a ATATAAA bATTATAA cTAAAATA dTATAAAT 1224567 a ATTTAAA bATTATAA cTAAAATA dTAAAAAT 1334567 a AAATAAA bATTATAA cTAAAATA dTTTAAAT 1234567 a ATATAAA bATTATAA cTAAAATA dTATAAAT 1244567 a ATTTAAA bATAATAA cTAAAATA dTAAAAAT a a aa b b bb c c c c d d d d a b c d 0.75

5 Example where the bootstrap is useful Simulate data on the four taxon tree below (JC model) Use sequence lengths of 100, 1000, and 10000 100100010000 ((a,b),(c,d)) 5.7%97%100% ((a,c),(b,d)) 42.8%<5%0 ((a,d),(b,c)) 49.8%<5%0 0.2 0.01 abcd

6 Example where the bootstrap is not so useful Simulate data on the two four-taxon trees below (JC model) in the proportion 55%, 45% and concatenate the sequences Use total sequence lengths of 100, 1000, and 10000 100100010000 ((a,b),(c,d)) 64%80%98% ((a,c),(b,d)) 33%20%<5 ((a,d),(b,c)) 3%0%<5 0.1 0.05 abc d 0.1 0.05 acb d 55% 45%

7 Consensus trees Consensus trees attempt to summarise the information contained in a set of trees, where each tree in the set is on the same taxa. Some consensus tree methods are specific to rooted trees.

8 Why are consensus methods required? Many phylogenetic methods produce a collection of trees rather than a single best tree.  Monte Carlo Markov Chain (MCMC)  Bootstrapping.  Equally parsimonious trees Sometimes trees for different genes produce a collection of trees.

9 Terminology: Splits and clades Each edge in an unrooted tree corresponds to a split or bipartition of the taxa set. Each edge in a rooted tree corresponds to a clade.

10 Splits cat dog mouse turtle parrot dog, cat | mouse, turtle, parrot cat, dog, mouse | turtle, parrot cat, dog, mouse, parrot | turtle

11 Clades dogcatmouseparrotturtle

12 Clades dogcatmouseparrotturtle

13 Clades dogcatmouseparrotturtle

14 Strict Consensus The strict consensus tree contains only those splits/clades that appear in all trees cat dog mouse turtle parrot cat dogmouse turtle parrot cat dog mouse turtle parrot cat dog mouse turtle parrot

15 Semi-strict The semi-strict consensus tree also contains those splits/clades that don’t conflict with any of the input trees cat dog mouse turtle parrot cat dog mouse turtle parrot cat dog mouse turtle parrot

16 Majority-Rule The majority-rule consensus tree contains only those splits/clades that appear in more than 50% of the input trees cat dog mouse turtle parrot cat dogmouse turtle parrot cat dog mouse turtle parrot cat dogmouse turtle parrot

17 Terminolgy: 3-taxon statements 3-taxon statements are triples of three species that show two species to be more closely related than is the third. E.g. the tree below displays the 3-taxon statements ((dog,cat),mouse) ((dog,mouse),parrot) ((mouse,parrot),turtle) …and others… dogcatmouseparrot turtle

18 Terminology: Rooted trees, hierarchies, clusters, and partitions abcdef abcd | ef a | bcd | ef Partitions a | b | cd | ef Hierarchy of clusters {a}{b}{c}{d}{e}{f} {a,b,c,d} {b,c,d} {c,d} {e,f}

19 Products of partitions Given k partitions p 1, p 2, p 3,…, p k of the same set of taxa, the product of these partitions is the partition where a and b are in the same block if and only if the are in the same block for each p i Example: The product of abc|de and ad|bce is a|bc|d|e

20 Adams Consensus Adams consensus method only applies to rooted trees. It preserves all the 3-taxon statements that are common to all of the input trees. Recursive algorithm that looks at the product of the maximal partitions of each of the input trees

21 AdamsTree algorithm (from Bryant 2003) Procedure AdamsTree( T 1,…T k ) if T 1 contains only 1 leaf then return T 1 else construct the product of the maximal partitions of the input trees For each block B in the partition do construct AdamsTree( T 1 |B, …T k |B ) Attach the roots of these trees to a new node v return this tree end

22 Adams consensus example abcdef ebcdaf Maximal partition abcd | ef Maximal partition bcde | af Product of maximal partitions a|bcd|e|f {b,c,d} {a} {e} {f}

23 Adams consensus example cont. abcdef ebcdaf Maximal partition b | cd Maximal partition b | cd Product of maximal partitions b | cd {b,c,d} {a} {e} {f} Restrict to b,c,d {b}{c,d}

24 Adams consensus example cont. abcdef ebcdaf Maximal partition c | d Maximal partition c | d Product of maximal partitions c | d Restrict to c,d {b,c,d} {a} {e} {f} {b}{c,d} {c}{d}

25 What about an “Adams” like method for unrooted trees? Instead of triples we would need to consider statements about quartets of taxa. If a quartet ((a,b),(c,d)) appeared in all the input trees it should be displayed in the output. Easy enough?

26 Three requirements (Steel, Dress and Böcker 2000) 1. Relabelling of the species at the tip of the tree should yeild the same answer relabelled in the appropriate way 2. The input order of the trees should not matter 3. A quartet that appears in all the input trees should appear in the output tree

27 No method can satisfy these 3 requirements Counter example a b c d e f a b c d e f

28 Supertree methods Super-tree methods take a set of trees on overlapping taxa sets and return a tree (or sometimes a ‘fail’ message) Biological relevance  Not all genes are present in all species  Not all genes are easy to sequence for all species Assembling the Tree of Life  Computationally impossible to try and build a tree for all taxa  Use a divide and conquer approach  And then use supertree methods to piece the Tree of Life together

29 Concept: Refinement refines a b c d e a b c d e The trees below are also refinements a b d c e a b e d c

30 Concept: Restriction a b c d e f g h The label set X = {a,b,c,d,e,f,g,h} We can restrict T to any subset of the labels X’ T

31 Concept: Restriction a b c d e f g h E.g. The restriction to {a,c,e,g} T a ce g Find the subtree and then supress the degree two vertices

32 Concept: Displaying A tree T (on label set X ) displays a tree T’ (on label set X’ subset of X ) if T restricted to the labels X’ is a refinement of T’ E.g. a b c d e displays f and a c d e f a b d f

33 Concept: Displaying BUT a b c d e Does not display f or a c d e f a d b c

34 The BUILD algorithm Polynomial-time algorithm due to Aho et al (1981) Takes a set of rooted input trees and either outputs a supertree that displays all of the input trees or returns a fail message.

35 BUILD algorithm Recursive algorithm, at each step it constructs a graph associated with the triples displayed by the input trees. Depending on whether this associated graph is connected or disconnected the algorithm either terminates or subdivides the problem. What is this associated graph?

36 The associated graph Nodes of the graph are the complete label set, i.e. all the labels that appear in any of the input trees Put an edge between two nodes a and b if there is at least one input tree that displays the rooted triple (( a, b ), c ) for some c. If this graph is connected stop and report a fail message Otherwise call the algorithm again once for each connected component, restricting the input to the labels in that component.

37 BUILD Example (from Semple and Steel) abcecbe d abfd a b c e f d {a,b,c,f}{d,e}

38 BUILD example continued Subproblem 1: Restrict input to {a,b,c,f} abccb abf a b c f {a,b,c,f}{d,e} {a,b} {c} {f}

39 BUILD example continued Subproblem 2 and 3 on {d,e}, and {a,b} are trivial so the final tree is {a,b,c,f}{d,e} {a,b} {c} {f} {a} {b} {d} {e} abcfde

40 What if the trees don’t agree? If the input trees are not compatible BUILD will return a fail message. It is also of interest to have methods that will return some output even if the input trees cannot all be displayed by a single supertree. Matrix representation with parsimony (MRP) is one such method…

41 Matrix Representation with Parsimony (MRP) Supertree method invented independently by Baum and Ragan (1992). Recode the input trees as a character matrix where each edge in each input tree defines a character. Do a parsimony analysis of the resulting character matrix. Take the strict consensus of the most parsimonious trees.

42 MRP example a b cd e f a b dc e g e d g h 12345678912345678912345 a101010100101010000????? b011010100011010000????? c000110100000001000????? d00000110000011000001100 e00000001000000011010100 f000000001?????????????? g?????????00000010100010 h??????????????????00001 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 1 2 3 4 5

43 MRP example a b cd e f a b dc e g e d g h a b c d e f g h 10 most parsimonious trees Strict consensus:


Download ppt "The bootstrap, consenus-trees, and super-trees Phylogenetics Workhop, 16-18 August 2006 Barbara Holland."

Similar presentations


Ads by Google