http://creativecommons.org/licenses/by-sa/2.0/. bnfo 602, lecture 3 usman roshan some of the slides...
Post on 21-Dec-2015
216 views
TRANSCRIPT
![Page 1: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/1.jpg)
http://creativecommons.org/licenses/by-sa/2.0/
![Page 2: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/2.jpg)
BNFO 602, Lecture 3
Usman Roshan
Some of the slides are based upon material by David Wishart of University of Alberta and Ron Shamirof Tel Aviv University
![Page 3: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/3.jpg)
Previously…
• Pairwise sequence alignment problem– Applications of alignments– Dynamic programming matrix– Traceback– Local alignment --- finding maximal local
matches
![Page 4: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/4.jpg)
Previously…
• Database searching– FASTA– BLAST
• Scoring matrices– PAM
![Page 5: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/5.jpg)
Multiple sequence alignment
• “Two sequences whisper, multiple sequences shout out loud”---Arthur Lesk
• Computationally very hard---NP-hard
![Page 6: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/6.jpg)
Formally…
![Page 7: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/7.jpg)
Multiple sequence alignment
Unaligned sequences
GGCTT
TAGGCCTT
TAGCCCTTA
ACACTTC
ACTT
Aligned sequences
_G_ _ GCTT_
TAGGCCTT_
TAGCCCTTA
A_ _CACTTC
A_ _C_ CTT_ Conserved regions help us to identify functionality
![Page 8: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/8.jpg)
Sum of pairs score
![Page 9: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/9.jpg)
Sum of pairs score
• What is the sum of pairs score of this alignment?
![Page 10: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/10.jpg)
Tree alignment score
![Page 11: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/11.jpg)
Tree alignment score
![Page 12: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/12.jpg)
Tree Alignment
TAGGCCTT (Human)
TAGCCCTTA (Monkey)
ACCTT (Cat)
ACACTTC (Lion)
GGCTT (Mouse)
![Page 13: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/13.jpg)
Tree Alignment
TAGGCCTT_ (Human)
TAGCCCTTA (Monkey)
A__C_CTT_ (Cat)
A__CACTTC (Lion)
_G__GCTT_ (Mouse)
TAGGCCTT_ A__CACTT_
TGGGGCTT_
AGGGACTT_
0 2
2
11
3
3
2
Tree alignment score = 14
![Page 14: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/14.jpg)
Tree Alignment---depends on tree
TAGGCCTT_ (Human)
TAGCCCTTA (Monkey)
A__C_CTT_ (Cat)
A__CACTTC (Lion)
_G__GCTT_ (Mouse)
TA_CCCTT_ TA_CCCTTA
TA_CCCTT_
TA_CCCTTA
2 3
1
41
0
4
0
Tree alignment score = 15 Switch monkey and cat
![Page 15: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/15.jpg)
Profiles
• Before we see how to construct multiple alignments, how do we align two alignments?
• Idea: summarize an alignment using its profile and align the two profiles
![Page 16: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/16.jpg)
Profile alignment
![Page 17: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/17.jpg)
Iterative alignment(heuristic for sum-of-pairs)
• Pick a random sequence from input set S• Do (n-1) pairwise alignments and align to
closest one t in S• Remove t from S and compute profile of
alignment• While sequences remaining in S
– Do |S| pairwise alignments and align to closest one t
– Remove t from S
![Page 18: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/18.jpg)
Iterative alignment
• Once alignment is computed randomly divide it into two parts
• Compute profile of each sub-alignment and realign the profiles
• If sum-of-pairs of the new alignment is better than the previous then keep, otherwise continue with a different division until specified iteration limit
![Page 19: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/19.jpg)
Progressive alignment
• Idea: perform profile alignments in the order dictated by a tree
• Given a guide-tree do a post-order search and align sequences in that order
• Widely used heuristic
• Can be used for solving tree alignment
![Page 20: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/20.jpg)
Simultaneous alignment and phylogeny reconstruction
• Given unaligned sequences produce both alignment and phylogeny
• Known as the generalized tree alignment problem---MAX-SNP hard
• Iterative improvement heuristic:– Take starting tree– Modify it using say NNI, SPR, or TBR– Compute tree alignment score– If better then select tree otherwise continue until
reached a local minimum
![Page 21: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/21.jpg)
Median alignment
• Idea: iterate over the phylogeny and align every triplet of sequences---takes o(m3) (in general for n sequences it takes O(2nmn) time
• Same profiles can be used as in progressive alignment
• Produces better tree alignment scores (as observed in experiments)
• Iteration continues for a specified limit
![Page 22: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/22.jpg)
Popular alignment programs
• ClustalW: most popular, progressive alignment• MUSCLE: fast and accurate, progressive and
iterative combination• T-COFFEE: slow but accurate, consistency
based alignment (align sequences in multiple alignment to be close to the optimal pairwise alignment)
• PROBCONS: slow but highly accurate, probabilistic consistency progressive based scheme
• DIALIGN: very good for local alignments
![Page 23: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/23.jpg)
MUSCLE
![Page 24: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/24.jpg)
MUSCLE
![Page 25: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/25.jpg)
MUSCLE
Profile sum-of-pairs score
Log expectation score used by MUSCLE
![Page 26: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/26.jpg)
Evaluation of multiple sequence alignments
• Compare to benchmark “true” alignments
• Use simulation
• Measure conservation of an alignment
• Measure accuracy of phylogenetic trees
• How well does it align motifs?
• More…
![Page 27: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/27.jpg)
BAliBASE
• Most popular benchmark of alignments
• Alignments are based upon structure
BAliBASE currently consists of 142 reference alignments, containing over 1000 sequences. Of the 200,000 residues in the database, 58% are defined within the core blocks. The remaining 42% are in ambiguous regions that cannot be reliably aligned. The alignments are divided into four hierarchical reference sets, reference 1 providing the basis for construction of the following sets. Each of the main sets may be further sub-divided into smaller groups, according to sequence length and percent similarity.
![Page 28: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/28.jpg)
BAliBASE
• The sequences included in the database are selected from alignments in either the FSSP or HOMSTRAD structural databases, or from manually constructed structural alignments taken from the literature. When sufficient structures are not available, additional sequences are included from the HSSP database (Schneider et al., 1997). The VAST Web server (Madej, 1995) is used to confirm that the sequences in each alignment are structural neighbours and can be structurally superimposed. Functional sites are identified using the PDBsum database (Laskowski et al., 1997) and the alignments are manually verified and adjusted, in order to ensure that conserved residues are aligned as well as the secondary structure elements.
![Page 29: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/29.jpg)
BAliBASE
• Reference 1 contains alignments of (less than 6) equi-distant sequences, ie. the percent identity between two sequences is within a specified range. All the sequences are of similar length, with no large insertions or extensions. Reference 2 aligns up to three "orphan" sequences (less than 25% identical) from reference 1 with a family of at least 15 closely related sequences. Reference 3 consists of up to 4 sub-groups, with less than 25% residue identity between sequences from different groups. The alignments are constructed by adding homologous family members to the more distantly related sequences in reference 1. Reference 4 is divided into two sub-categories containing alignments of up to 20 sequences including N/C-terminal extensions (up to 400 residues), and insertions (up to 100 residues).
![Page 30: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/30.jpg)
Comparison of alignments on BAliBASE
![Page 31: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/31.jpg)
Parsimonious aligner (PAl)
1. Construct progressive alignment A
2. Construct MP tree T on A
3. Construct progressive alignment A’ on guide-tree T
4. Set A=A’ and go to 3
5. Output alignment and tree with best MP score
![Page 32: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/32.jpg)
PAl
• Faster than iterative improvement• Speed and accuracy both depend upon
progressive alignment and MP heuristic• In practice MUSCLE and TNT are used for
constructing alignments and MP trees• How does PAl compare against traditional
methods?• PAl not designed for aligning structural regions
but focuses on evolutionary conserved regions • Let’s look at performance under simulation
![Page 33: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/33.jpg)
Evaluating alignments under simulation
• We first need a way to evolve sequences with insertions and deletions
• NOTE: evolutionary models we have encountered so far do not account for insertions and deletions
• Not known exactly how to model insertions and deletions
![Page 34: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/34.jpg)
ROSE
• Evolve sequences under an i.i.d. Markov Model• Root sequence: probabilities given by a probability vector
(for proteins default is Dayhoff et. al. values)• Substitutions
– Edge length are integers– Probability matrix M is given as input (default is PAM1*)– For edge of length b probabilty of x y is given by Mb
xy
• Insertion and deletions:– Insertions and deletions follow the same probabilistic model– For each edge probability to insert is iins . – Length of insertion is given by discrete probability distribution
(normally exponential)– For edge of length b this is repeated b times.
• Model tree can be specified as input
![Page 35: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/35.jpg)
Evaluation of alignments
Let’s simulate alignments and
phylogenies and compare them under
simulation!!
![Page 36: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/36.jpg)
Parameters for simulation study
• Model trees: uniform random distribution and uniformly selected random edge lengths
• Model of evolution: PAM with insertions and deletions probabilities selected from a gamma distribution (see ROSE software package)
• Replicate settings: Settings of 50, 100, and 400 taxa, mean sequence lengths of 200 and 500 and avg branch lengths of 10, 25, and 50 were selected. For each setting 10 datasets were produced
![Page 37: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/37.jpg)
Phylogeny accuracy
![Page 38: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/38.jpg)
Alignment accuracy
![Page 39: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/39.jpg)
Running time
![Page 40: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/40.jpg)
Conclusions
• DIALIGN seems to perform best followed by PAl, MUSCLE, and PROBCONS
• DIALIGN, however, is slower than PAl
• Does this mean DIALIGN is the best alignment program?
![Page 41: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/41.jpg)
Conclusions
• DIALIGN seems to perform best followed by PAl, MUSCLE, and PROBCONS
• DIALIGN, however, is slower than PAl• Does this mean DIALIGN is the best
alignment program?• Not necessarily: experiments were
performed under uniform random trees with uniform random edge lengths. Not clear if this emulates the real deal.
![Page 42: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/42.jpg)
Conclusions
• DIALIGN seems to perform best followed DIALIGN seems to perform best followed by PAl, MUSCLE, and PROBCONSby PAl, MUSCLE, and PROBCONS
• DIALIGN, however, is slower than PAlDIALIGN, however, is slower than PAl• Does this mean DIALIGN is the best Does this mean DIALIGN is the best
alignment program?alignment program?• Not necessarily: experiments were Not necessarily: experiments were
performed under uniform random trees performed under uniform random trees with uniform random edge lengths. Not with uniform random edge lengths. Not clear if this emulates the real deal.clear if this emulates the real deal.
• What about sum-of-pairs vs MP scores?
![Page 43: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/43.jpg)
Sum-of-pairs vs MP score
![Page 44: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/44.jpg)
Sum-of-pairs vs MP score
![Page 45: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/45.jpg)
Conclusions
• Optimizing MP scores under this simulation model leads to better phylogenies and alignments
![Page 46: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/46.jpg)
Conclusions
• Optimizing MP scores under this simulation model leads to better phylogenies and alignments
• What other models can we try?
![Page 47: Http://creativecommons.org/licenses/by-sa/2.0/. BNFO 602, Lecture 3 Usman Roshan Some of the slides are based upon material by David Wishart of University](https://reader030.vdocuments.site/reader030/viewer/2022032801/56649d555503460f94a3229d/html5/thumbnails/47.jpg)
Conclusions
• Optimizing MP scores under this simulation model leads to better phylogenies and alignments
• What other models can we try?• Real data phylogenies as model trees• Birth-death model trees• Other distributions for model trees…• Branch lengths: similar issues…• Evolutionary model parameters estimated
from real data