1 / 23

Inferring phylogenetic trees

Inferring phylogenetic trees. Prof. William Stafford Noble Department of Genome Sciences Department of Computer Science and Engineering University of Washington thabangh@gmail.com. One-minute responses. I did not understand anything in the Gibbs sampling and the second method.

zayit
Download Presentation

Inferring phylogenetic trees

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Inferring phylogenetic trees Prof. William Stafford Noble Department of Genome SciencesDepartment of Computer Science and Engineering University of Washington thabangh@gmail.com

  2. One-minute responses • I did not understand anything in the Gibbs sampling and the second method. • The class was quite OK now. Understood most important things. • I understood 50% of the Python part. But I am a bit confused about the goal of the programs. • Please send us the slides immediately after lecture. • I put the slides on the website during the Python half of the class. Hit “refresh” on the web browser to see them. • I didn’t understand clearly converting scores to p-values, more especially putting 1 and 2. Otherwise everything was clear. • I think we should go a little bit slower. • I didn’t understand the EM and Gibbs. • The concept of EM and Gibbs sampling are really very important. Please go in depth on them. • Python sessions are still fine as usual. • These algorithms are complex. Could you please explain them with a bit of some examples? • I didn’t understand the second Python problem. • Emile must not mark our assessment on the programming part.

  3. Revision - Gibbs Randomly select sequences Motif occurrences Scan discarded sequence with PSSM Choose new occurrence according to resulting probabilities • Randomly discard one sequence • Build PSSM from remaining sequences • Counts • Add pseudocounts • Normalize PSSM

  4. Revision - EM Randomly select sequences Motif occurrences Scan each sequence with PSSM Take top-scoring occurrence Counts Add pseudocounts Normalize Divide by background Take log2 PSSM

  5. Phylogenetic inference Rabbit Dove Lion Donkey ?

  6. Outline • Parsimony • Distance methods • Computing distances • Finding the tree • Maximum likelihood

  7. Selecting a method Choose set of related sequences Obtain multiple sequence alignment Is there strong sequence similarity? Yes Maximum parsimony methods No Is there clearly recognizable sequence similarity Yes Distance methods No Maximum likelihood methods

  8. Maximum parsimony Enumerating these trees can take a very long time for each possible tree compute the parsimony score return the tree with the best score Computing this score is straightforward

  9. How many trees? • With four sequences: 3 unrooted trees • With five sequences: 15 unrooted trees. • With seven sequences: 954 unrooted trees. 1 3 1 2 1 3 2 3 4 4 4 2

  10. Computing parsimony scores Scer = A Smik = A Spar = G Skud = A

  11. Computing parsimony scores Scer = A Smik = A A A Spar = G Skud = A Score = 1

  12. Computing parsimony scores Scer = A Scer = A Smik = A Smik = A A A Scer = A A A Spar = G A A Spar = G Skud = A Skud = A Spar = G Score = 1 Score = 1 Smik = A Skud = A Score = 1 This site is uninformative, because all the trees have the same score.

  13. Computing parsimony scores Scer = Scer = Smik = Smik = Scer = Spar = Spar = Skud = Skud = Spar = Score = ? Score = ? Smik = Skud = Score = ?

  14. Computing parsimony scores Scer = G Scer = G Smik = A Smik = A G A Scer = G G G Spar = G G G Spar = G Skud = T Skud = T Spar = G Score = 2 Score = 2 Smik = A Skud = T Score = 2

  15. Computing parsimony scores Scer = Scer = Smik = Smik = Scer = Spar = Spar = Skud = Skud = Spar = Score = ? Score = ? Smik = Skud = Score = ?

  16. Computing parsimony scores Scer = A Scer = A Smik = T Smik = T A T Scer = A A A Spar = A A A Spar = A Skud = T Skud = T Spar = A Score = 2 Score = 1 Smik = T Skud = T Score = 2 This tree is best.

  17. Computing parsimony scores Scer Smik Total = 26 Spar Skud

  18. Computing parsimony scores Total = 28 Scer Spar Smik Skud

  19. Parsimony software • In general, the most widely used programs for phylogenetic analysis are • Phylip (Joe Felsenstein) • PAUP (Jim Swofford) • MacClade (David and Wayne Maddison) • All three do parsimony. Only Phylip is free.

  20. Previous one-minute responses • How many sequences are usually analyzed by parsimony methods? • Exhaustively, probably tens of sequences. With heuristic search methods, you can analyze arbitrarily many, but you lose the guarantee that you’re finding the most parsimonious tree. • What do good parsimony scores look like? • It depends upon how many sequences are involved, and how divergent they are. • Why doesn’t the parsimony method take into account transitions versus transversions? • It can; I presented the simplest version.

  21. Jukes-Cantor model • Assume the same probability of change at all positions and all times. • dAB is the proportion of changed sites in the alignment. • KAB is the distance between sequences A and B.

  22. Problem #1 • Write a program jukes-cantor.py that takes as input a pairwise sequence alignment and prints the Jukes-Cantor distance. Skip sites that contain gaps. > cat twoseqs.txt ACGT ACCG > python jukes-cantor.pytwoseqs.txt 0.823959

  23. Problem #2 • Generalize your previous program to work for a multiple sequence alignment. > cat threeseqs.txt ACGT ACTG ACGG > python jukes-cantor-matrix.pythreeseqs.txt 0.000 0.824 0.304 0.824 0.000 0.304 0.304 0.304 0.000 > jukes-cantor-multiple.pymoreseqs.txt 0.000 0.233 0.383 0.233 0.233 0.000 0.824 0.572 0.383 0.824 0.000 0.107 0.233 0.572 0.107 0.000

More Related