Parsimony and searching tree-space Phylogenetics Workhop, 16-18 August 2006 Barbara Holland.

Slides:



Advertisements
Similar presentations
Heuristic Search techniques
Advertisements

Algorithm Design Methods Spring 2007 CSE, POSTECH.
G5BAIM Artificial Intelligence Methods
Parsimony Small Parsimony and Search Algorithms Genome 559: Introduction to Statistical and Computational Genomics Elhanan Borenstein.
. Phylogenetic Trees (2) Lecture 13 Based on: Durbin et al 7.4, Gusfield , Setubal&Meidanis 6.1.
Bioinformatics Phylogenetic analysis and sequence alignment The concept of evolutionary tree Types of phylogenetic trees Measurements of genetic distances.
Types of Algorithms.
Parsimony based phylogenetic trees Sushmita Roy BMI/CS 576 Sep 30 th, 2014.
 Aim in building a phylogenetic tree is to use a knowledge of the characters of organisms to build a tree that reflects the relationships between them.
1 General Phylogenetics Points that will be covered in this presentation Tree TerminologyTree Terminology General Points About Phylogenetic TreesGeneral.
Phylogenetic reconstruction
Molecular Evolution Revised 29/12/06
Tree Reconstruction.
Maximum Parsimony (MP) Algorithm. MP Algorithm  Character-based algorithm – does not use distances, but utilizes the character information in sequences.
. Phylogeny II : Parsimony, ML, SEMPHY. Phylogenetic Tree u Topology: bifurcating Leaves - 1…N Internal nodes N+1…2N-2 leaf branch internal node.
UPGMA and FM are distance based methods. UPGMA enforces the Molecular Clock Assumption. FM (Fitch-Margoliash) relieves that restriction, but still enforces.
Phylogenetic trees as a visualization tools for evolutionary classification.
CISC667, F05, Lec14, Liao1 CISC 667 Intro to Bioinformatics (Fall 2005) Phylogenetic Trees (I) Maximum Parsimony.
. Phylogenetic Trees - Parsimony Tutorial #12 Next semester: Project in advanced algorithms for phylogenetic reconstruction (236512) Initial details in:
MAE 552 – Heuristic Optimization Lecture 27 April 3, 2002
Multiple Sequence Alignment Algorithms in Computational Biology Spring 2006 Most of the slides were created by Dan Geiger and Ydo Wexler and edited by.
Nature’s Algorithms David C. Uhrig Tiffany Sharrard CS 477R – Fall 2007 Dr. George Bebis.
Branch lengths Branch lengths (3 characters): A C A A C C A A C A C C Sum of branch lengths = total number of changes.
Maximum Parsimony.
Phylogeny Tree Reconstruction
. Phylogenetic Trees - Parsimony Tutorial #11 © Ilan Gronau. Based on original slides of Ydo Wexler & Dan Geiger.
. Comput. Genomics, Lecture 5b Character Based Methods for Reconstructing Phylogenetic Trees: Maximum Parsimony Based on presentations by Dan Geiger, Shlomo.
Building Phylogenies Parsimony 2.
Building Phylogenies Parsimony 1. Methods Distance-based Parsimony Maximum likelihood.
Building Phylogenies Distance-Based Methods. Methods Distance-based Parsimony Maximum likelihood.
Counting evolutionary changes the parsimony method requires an algorithm that counts the number of evolutionary changes in a tree. Fitch W.M Syst.
Phylogenetic Tree Construction and Related Problems Bioinformatics.
Ryan Kinworthy 2/26/20031 Chapter 7- Local Search part 2 Ryan Kinworthy CSCE Advanced Constraint Processing.
Optimization Methods One-Dimensional Unconstrained Optimization
CS 206 Introduction to Computer Science II 02 / 25 / 2009 Instructor: Michael Eckmann.
Motif finding : Lecture 2 CS 498 CXZ. Recap Problem 1: Given a motif, finding its instances Problem 2: Finding motif ab initio. –Paradigm: look for over-represented.
What Is Phylogeny? The evolutionary history of a group.
Metaheuristics The idea: search the solution space directly. No math models, only a set of algorithmic steps, iterative method. Find a feasible solution.
Terminology of phylogenetic trees
Distantly related organisms share structural similarities Function varies Explicable by common ancestry grasping leaping flying swimming running Homology.
SOFT COMPUTING (Optimization Techniques using GA) Dr. N.Uma Maheswari Professor/CSE PSNA CET.
1 Local search and optimization Local search= use single current state and move to neighboring states. Advantages: –Use very little memory –Find often.
1 Dan Graur Molecular Phylogenetics Molecular phylogenetic approaches: 1. distance-matrix (based on distance measures) 2. character-state.
Phylogenetic Analysis. General comments on phylogenetics Phylogenetics is the branch of biology that deals with evolutionary relatedness Uses some measure.
Molecular phylogenetics 1 Level 3 Molecular Evolution and Bioinformatics Jim Provan Page and Holmes: Sections
Bioinformatics 2011 Molecular Evolution Revised 29/12/06.
Parsimony-Based Approaches to Inferring Phylogenetic Trees BMI/CS 576 Colin Dewey Fall 2010.
Phylogenetics II.
Lecture 2: Principles of Phylogenetics
Using traveling salesman problem algorithms for evolutionary tree construction Chantal Korostensky and Gaston H. Gonnet Presentation by: Ben Snider.
Ch.6 Phylogenetic Trees 2 Contents Phylogenetic Trees Character State Matrix Perfect Phylogeny Binary Character States Two Characters Distance Matrix.
Parsimony-Based Approaches to Inferring Phylogenetic Trees BMI/CS 576 Colin Dewey Fall 2015.
Maximum Likelihood Given competing explanations for a particular observation, which explanation should we choose? Maximum likelihood methodologies suggest.
Doug Raiford Lesson 9.  3 Approaches  Distance  Parsimony  Maximum Likelihood  Have already seen a distance method 12/18/20152Phylogenetics Part.
Phylogeny Ch. 7 & 8.
Types of Algorithms. 2 Algorithm classification Algorithms that use a similar problem-solving approach can be grouped together We’ll talk about a classification.
Optimization Problems
1 Alignment Matrix vs. Distance Matrix Sequence a gene of length m nucleotides in n species to generate an… n x m alignment matrix n x n distance matrix.
Phylogenetic Trees - Parsimony Tutorial #13
Parsimony and searching tree-space. The basic idea To infer trees we want to find clades (groups) that are supported by synapomorpies (shared derived.
Probabilistic methods for phylogenetic tree reconstruction BMI/CS 576 Colin Dewey Fall 2015.
Maximum Parsimony Phenetic (distance based) methods are fast and often accurate but discard data and are not based on explicit character states at each.
Optimization Problems
Phylogenetic Trees - Parsimony Tutorial #12
Lecture 11: Tree Search © J. Christopher Beck 2008.
Character-Based Phylogeny Reconstruction
Recitation 5 2/4/09 ML in Phylogeny
Optimization Problems
CS 581 Tandy Warnow.
Phylogeny.
Presentation transcript:

Parsimony and searching tree-space Phylogenetics Workhop, August 2006 Barbara Holland

The basic idea To infer trees we want to find clades (groups) that are supported by synapomorpies (shared derived traits). More simply put, we assume that if species are similar it is usually due to common descent rather than due to chance.

Sometimes the data agrees ACCGCTTA ACTGCTTA ACTGCTAAACTGCTTA ACCCCTTA Time ACCCCATA ACCCCTTA ACCCCATA ACTGCTTA ACTGCTAA

Sometimes not ACCGCTTA ACTGCTTA ACTGCTAAACTGCTTC ACCCCTTA ACCCCTTC Time ACCCCATA ACCCCTTC ACCCCATA ACTGCTTC ACTGCTAA

Homoplasy When we have two or more characters that can’t possibly fit on the same tree without requiring one character to undergo a parallel change or reversal it is called homoplasy. ACCGCTTA ACTGCTTA ACTGCTAAACTGCTTC ACCCCTTA ACCCCTTC Time ACCCCATA

How can we choose the best tree? To decide which tree is best we can use an optimality criterion. Parsimony is one such criterion. It chooses the tree which requires the fewest mutations to explain the data. The Principle of Parsimony is the general scientific principle that accepts the simplest of two explanations as preferable.

S1 ACCCCTTC S2 ACCCCATA S3 ACTGCTTC S4 ACTGCTAA (1,2),(3,4) (1,3),(2,4)

S1 ACCCCTTC S2 ACCCCATA S3 ACTGCTTC S4 ACTGCTAA (1,2),(3,4) 0 (1,3),(2,4) 0 A A A A A A A A

S1 ACCCCTTC S2 ACCCCATA S3 ACTGCTTC S4 ACTGCTAA (1,2),(3,4) 001 (1,3),(2,4) 002 C C T T C T C T CT CT T C

S1 ACCCCTTC S2 ACCCCATA S3 ACTGCTTC S4 ACTGCTAA (1,2),(3,4) 0011 (1,3),(2,4) 0022 C C G G C G C G CG CG G C

S1 ACCCCTTC S2 ACCCCATA S3 ACTGCTTC S4 ACTGCTAA (1,2),(3,4) (1,3),(2,4) T A T T T T A T T A A T

S1 ACCCCTTC S2 ACCCCATA S3 ACTGCTTC S4 ACTGCTAA (1,2),(3,4) (1,3),(2,4) T T T A T T T A T A T A

S1 ACCCCTTC S2 ACCCCATA S3 ACTGCTTC S4 ACTGCTAA (1,2),(3,4) (1,3),(2,4) C A C A C C A A A C C A CA According to the parsimony optimality criterion we should prefer the tree (1,2),(3,4) over the tree (1,3),(2,4) as it requires the fewest mutations.

Maximum Parsimony The parsimony criterion tries to minimise the number of mutations required to explain the data The “Small Parsimony Problem” is to compute the number of mutations required on a given tree. For small examples it is straightforward to see how many mutations are needed Cat Dog Rat Mouse A A G G G A Cat Dog Rat A G G A A A Mouse

The Fitch algorithm For larger examples we need an algorithm to solve the small parsimony problem a b c d e f g h Site a A bA cC dC eG fG gT hA

The Fitch algorithm  Label the tips of the tree with the observed sequence at the site A A C C G G T A

The Fitch algorithm Pick an arbitrary root to work towards A A C C G G T A

The Fitch algorithm Work from the tips of the tree towards the root. Label each node with the intersection of the states of its child nodes. If the intersection is empty label the node with the union and add one to the cost A A C C G G T A A {A,T} A {C,G} C {A,C,G} Cost 4

Fitch continued… The Fitch algorithm also has a second phase that allocates states to the internal nodes but it does not affect the cost. To find the Fitch cost of an alignment for a particular tree we just sum the Fitch costs of all the sites.

Tricks to increase efficiency Ignore constant sites  These must cost 0 on any tree Ignore parsimony uninformative sites  Unless there are at least two states that occur at least twice the site will have the same score on any tree. Groups sites with the same pattern  E.g. the site ACCGTA will have the same score as the site CTTAGC as will any site with the pattern wxxyzw

Sankoff algorithm More general than the Fitch algorithm. Assumes we have a table of costs c ij for all possible changes between states i and j For each node k in the tree we compute S k (i) the minimal cost given that node k is assigned state i. In particular we can compute the minimum value over i for S root (i) which will be the total cost of the character on the tree.

Sankoff algorithm continued The value of S(i) is easy to compute for the tips of the tree, we assign cost 0 if the observed state is i and otherwise assign cost infinity. A dynamic programming approach is used to compute the score for an ancestral node a given that the scores of its descendent nodes l and r (left and right) are known.

c ij ACGT A0212 C2021 G1202 T2120 AGGCTT 0inf

Variants Camin-Sokal parsimony  Two states 0 and 1, change is only possible from state 0 → 1. Dollo parsimony  A character can evolve only once (0 →1), but can be lost many times (1 → 0) Ordered states, e.g. 0 → 1 → 2

The “large parsimony problem” The small parsimony problem – to find the score of a given tree - can be solved in linear time in the size of the tree. The large parsimony problem is to find the tree with minimum score. It is known to be NP-Hard.

How many trees are there? #species#unrooted binary tip- labelled trees 43 53*5=15 63*5*7=105 73*5*7*9= ,027, *10 20 n(2n-5)!! An exact search for the best tree, where each tree is evaluated according to some optimality criterion such as parsimony quickly becomes intractable as the number of species increases

Counting trees x 3 = 3 1 x 3 x 5 = 15

The Chocolate Fish question First participant to calculate the exact number of unrooted binary trees on 30 taxa collects some fish.

Search strategies Exact search  possible for small n only Branch and Bound  up to ~20 taxa Local Search - Heuristics  pick a good starting tree and use moves within a “neighbourhood” to find a better tree. Meta-heuristics  Genetic algorithms  Simulated annealing  The ratchet

Exact searches for small number of taxa (n<=12) it is possible to compute the score of every tree Branch and Bound searches also guarantee to find the optimal solution but use some clever rules to avoid having to check all trees. They may be effective for up to 25 taxa.

No need to evaluate this whole branch of the search tree, as no tree can have a score better than 9

Searching tree space For more than 25 taxa it is usually necessary to use heuristic methods. When a problem is too hard to solve exactly we use methods that will give a good solution even if we cannot guarantee it will be the best solution.  Start from a good (or perhaps random) tree  Alter the tree using some “move” and check if the new tree has a better score  Keep moving to trees with better scores until no improving move can be found

Moving between trees

Moving around in tree-space

Moving around in tree-space optimal

The problem of local optima

Meta-heuristics These will sometimes make moves to a tree with a worse score than the current tree. The advantage is that this makes it possible to avoid becoming trapped in local optima

The ratchet 1. Randomly reweight the characters 2. Perform a heuristic search on the altered alignment until a local optima is found 3. Reset the characters to their original weights 4. Start a heuristic search beginning from the tree found in step 2 5. Repeat steps 1-4 ( times)

Simulated annealing A random walk through tree space that is biased towards the better scoring trees. Moves that improve the score are always accepted Moves the worsen the score may sometimes be accepted depending on  The amount by which the score gets worse  The “temperature” The temperature is gradually lowered throughout the search The search can wander widely at first while the temperature is still high but as the temperature is lowered the bias towards making improving moves becomes stronger so it becomes more and more like a pure local search.

Review Real data sets usually contain homoplasy – characters that do not agree. To choose the best tree we can use an optimality criterion – this is a way of giving each possible tree a score. Parsimony is one example of an optimality criterion – it prefers the tree that requires the fewest mutations to explain the data. In practice we cannot check the score of every tree as there are too many. Instead we use heuristic searches to explore tree space and find locally optimal trees.