25/05/2004 Evolution/Phylogeny/Pattern recognition Bioinformatics Master Course Bioinformatics Data Analysis and Tools
Patterns Some are easy some are not Knitting patterns Cooking recipes Pictures (dot plots) Colour patterns Maps
Example of algorithm reuse: Data clustering Many biological data analysis problems can be formulated as clustering problems –microarray gene expression data analysis –identification of regulatory binding sites (similarly, splice junction sites, translation start sites,......) –(yeast) two-hybrid data analysis (for inference of protein complexes) –phylogenetic tree clustering (for inference of horizontally transferred genes) –protein domain identification –identification of structural motifs –prediction reliability assessment of protein structures –NMR peak assignments –......
Data Clustering Problems Clustering: partition a data set into clusters so that data points of the same cluster are “similar” and points of different clusters are “dissimilar” cluster identification -- identifying clusters with significantly different features than the background
Application Examples Regulatory binding site identification: CRP (CAP) binding site Two hybrid data analysis l Gene expression data analysis Are all solvable by the same algorithm!
Other Application Examples Phylogenetic tree clustering analysis (Evolutionary trees) Protein sidechain packing prediction Assessment of prediction reliability of protein structures Protein secondary structures Protein domain prediction NMR peak assignments ……
Multivariate statistics – Cluster analysis Dendrogram Scores Similarity matrix 5× C1 C2 C3 C4 C5 C6.. Raw table Similarity criterion Cluster criterion
Human Evolution
Comparing sequences - Similarity Score - Many properties can be used: Nucleotide or amino acid composition Isoelectric point Molecular weight Morphological characters But: molecular evolution through sequence alignment
Multivariate statistics – Cluster analysis Now for sequences Phylogenetic tree Scores Similarity matrix 5×5 Multiple sequence alignment Similarity criterion
Human -KITVVGVGAVGMACAISILMKDLADELALVDVIEDKLKGEMMDLQHGSLFLRTPKIVSGKDYNVTANSKLVIITAGARQ Chicken -KISVVGVGAVGMACAISILMKDLADELTLVDVVEDKLKGEMMDLQHGSLFLKTPKITSGKDYSVTAHSKLVIVTAGARQ Dogfish –KITVVGVGAVGMACAISILMKDLADEVALVDVMEDKLKGEMMDLQHGSLFLHTAKIVSGKDYSVSAGSKLVVITAGARQ Lamprey SKVTIVGVGQVGMAAAISVLLRDLADELALVDVVEDRLKGEMMDLLHGSLFLKTAKIVADKDYSVTAGSRLVVVTAGARQ Barley TKISVIGAGNVGMAIAQTILTQNLADEIALVDALPDKLRGEALDLQHAAAFLPRVRI-SGTDAAVTKNSDLVIVTAGARQ Maizey casei -KVILVGDGAVGSSYAYAMVLQGIAQEIGIVDIFKDKTKGDAIDLSNALPFTSPKKIYSA-EYSDAKDADLVVITAGAPQ Bacillus TKVSVIGAGNVGMAIAQTILTRDLADEIALVDAVPDKLRGEMLDLQHAAAFLPRTRLVSGTDMSVTRGSDLVIVTAGARQ Lacto__ste -RVVVIGAGFVGASYVFALMNQGIADEIVLIDANESKAIGDAMDFNHGKVFAPKPVDIWHGDYDDCRDADLVVICAGANQ Lacto_plant QKVVLVGDGAVGSSYAFAMAQQGIAEEFVIVDVVKDRTKGDALDLEDAQAFTAPKKIYSG-EYSDCKDADLVVITAGAPQ Therma_mari MKIGIVGLGRVGSSTAFALLMKGFAREMVLIDVDKKRAEGDALDLIHGTPFTRRANIYAG-DYADLKGSDVVIVAAGVPQ Bifido -KLAVIGAGAVGSTLAFAAAQRGIAREIVLEDIAKERVEAEVLDMQHGSSFYPTVSIDGSDDPEICRDADMVVITAGPRQ Thermus_aqua MKVGIVGSGFVGSATAYALVLQGVAREVVLVDLDRKLAQAHAEDILHATPFAHPVWVRSGW-YEDLEGARVVIVAAGVAQ Mycoplasma -KIALIGAGNVGNSFLYAAMNQGLASEYGIIDINPDFADGNAFDFEDASASLPFPISVSRYEYKDLKDADFIVITAGRPQ Lactate dehydrogenase multiple alignment Distance Matrix Human Chicken Dogfish Lamprey Barley Maizey Lacto_casei Bacillus_stea Lacto_plant Therma_mari Bifido Thermus_aqua Mycoplasma
Multivariate statistics – Cluster analysis Dendrogram/tree Scores Similarity matrix 5× C1 C2 C3 C4 C5 C6.. Data table Similarity criterion Cluster criterion
Multivariate statistics – Cluster analysis Why do it? Finding a true typology Model fitting Prediction based on groups Hypothesis testing Data exploration Data reduction Hypothesis generation But you can never prove a classification/typology!
Cluster analysis – data normalisation/weighting C1 C2 C3 C4 C5 C6.. Raw table Normalisation criterion C1 C2 C3 C4 C5 C6.. Normalised table Column normalisationx/max Column range normalise(x-min)/(max-min)
Cluster analysis – (dis)similarity matrix Scores Similarity matrix 5× C1 C2 C3 C4 C5 C6.. Raw table Similarity criterion D i,j = ( k | x ik – x jk | r ) 1/r Minkowski metrics r = 2 Euclidean distance r = 1 City block distance
Cluster analysis – Clustering criteria Dendrogram (tree) Scores Similarity matrix 5×5 Cluster criterion Single linkage - Nearest neighbour Complete linkage – Furthest neighbour Group averaging – UPGMA Ward Neighbour joining – global measure
Cluster analysis – Clustering criteria 1.Start with N clusters of 1 object each 2.Apply clustering distance criterion iteratively until you have 1 cluster of N objects 3.Most interesting clustering somewhere in between Dendrogram (tree) distance N clusters1 cluster
Single linkage clustering (nearest neighbour) Char 1 Char 2
Single linkage clustering (nearest neighbour) Char 1 Char 2
Single linkage clustering (nearest neighbour) Char 1 Char 2
Single linkage clustering (nearest neighbour) Char 1 Char 2
Single linkage clustering (nearest neighbour) Char 1 Char 2
Single linkage clustering (nearest neighbour) Char 1 Char 2 Distance from point to cluster is defined as the smallest distance between that point and any point in the cluster
Cluster analysis – Ward’s clustering criterion Per cluster: calculate Error Sum of Squares (ESS) ESS = x 2 – ( x) 2 /n calculate minimum increase of ESS Suppose: ObjValc l u s t e r i n g ESS
Multivariate statistics – Cluster analysis Phylogenetic tree Scores Similarity matrix 5× C1 C2 C3 C4 C5 C6.. Data table Similarity criterion Cluster criterion
Multivariate statistics – Cluster analysis Scores 5× C1 C2 C3 C4 C5 C6 Similarity criterion Cluster criterion Scores 6×6 Cluster criterion Make two-way ordered table using dendrograms
Multivariate statistics – Principal Component Analysis (PCA) C1 C2 C3 C4 C5 C6 Similarity Criterion: Correlations 6×6 Calculate eigenvectors with greatest eigenvalues: Linear combinations Orthogonal Correlations Project data points onto new axes (eigenvectors) 1 2
“Nothing in Biology makes sense except in the light of evolution” (Theodosius Dobzhansky ( )) “Nothing in bioinformatics makes sense except in the light of Biology” Bioinformatics
Evolution Most of bioinformatics is comparative biology Comparative biology is based upon evolutionary relationships between compared entities Evolutionary relationships are normally depicted in a phylogenetic tree
Where can phylogeny be used For example, finding out about orthology versus paralogy Predicting secondary structure of RNA Studying host-parasite relationships Mapping cell-bound receptors onto their binding ligands Multiple sequence alignment (e.g. Clustal)
Phylogenetic tree (unrooted) human mousefugu Drosophila edge internal node leaf OTU – Observed taxonomic unit
Phylogenetic tree (unrooted) human mousefugu Drosophila root edge internal node leaf OTU – Observed taxonomic unit
Phylogenetic tree (rooted) human mouse fugu Drosophila root edge internal node (ancestor) leaf OTU – Observed taxonomic unit time
How to root a tree Outgroup – place root between distant sequence and rest group Midpoint – place root at midpoint of longest path (sum of branches between any two OTUs) Gene duplication – place root between paralogous gene copies f D m h Dfmh f D m h Dfmh f- h- f- h- f- h- f- h-
Combinatoric explosion # sequences# unrooted# rooted trees , ,395135, ,1352,027, ,027,02534,459,425
Tree distances humanx mouse6 x fugu7 3 x Drosophila x human mouse fugu Drosophila human mousefuguDrosophila Evolutionary (sequence distance) = sequence dissimilarity
Phylogeny methods Parsimony – fewest number of evolutionary events (mutations) – relatively often fails to reconstruct correct phylogeny Distance based – pairwise distances Maximum likelihood – L = Pr[Data|Tree]
Parsimony & Distance Sequences Drosophila t t a t t a a fugu a a t t t a a mouse a a a a a t a human a a a a a a t humanx mouse2 x fugu3 4 x Drosophila5 5 3 x human mousefuguDrosophila fugu mouse human Drosophila fugu mouse human parsimony distance
Maximum likelihood If data=alignment, hypothesis = tree, and under a given evolutionary model, maximum likelihood selects the hypothesis (tree) that maximises the observed data Extremely time consuming method We also can test the relative fit to the tree of different models (Huelsenbeck & Rannala, 1997)
Bayesian methods Calculates the posterior probability of a tree (Huelsenbeck et al., 2001) –- probability that tree is true tree given evolutionary model Most computer intensive technique Feasible thanks to Markov chain Monte Carlo (MCMC) numerical technique for integrating over probability distributions Gives confidence number (posterior probability) per node
Distance methods: fastest Clustering criterion using a distance matrix Distance matrix filled with alignment scores (sequence identity, alignment scores, E-values, etc.) Cluster criterion
Phylogenetic tree by Distance methods (Clustering) Phylogenetic tree Scores Similarity matrix 5×5 Multiple alignment Similarity criterion
Human -KITVVGVGAVGMACAISILMKDLADELALVDVIEDKLKGEMMDLQHGSLFLRTPKIVSGKDYNVTANSKLVIITAGARQ Chicken -KISVVGVGAVGMACAISILMKDLADELTLVDVVEDKLKGEMMDLQHGSLFLKTPKITSGKDYSVTAHSKLVIVTAGARQ Dogfish –KITVVGVGAVGMACAISILMKDLADEVALVDVMEDKLKGEMMDLQHGSLFLHTAKIVSGKDYSVSAGSKLVVITAGARQ Lamprey SKVTIVGVGQVGMAAAISVLLRDLADELALVDVVEDRLKGEMMDLLHGSLFLKTAKIVADKDYSVTAGSRLVVVTAGARQ Barley TKISVIGAGNVGMAIAQTILTQNLADEIALVDALPDKLRGEALDLQHAAAFLPRVRI-SGTDAAVTKNSDLVIVTAGARQ Maizey casei -KVILVGDGAVGSSYAYAMVLQGIAQEIGIVDIFKDKTKGDAIDLSNALPFTSPKKIYSA-EYSDAKDADLVVITAGAPQ Bacillus TKVSVIGAGNVGMAIAQTILTRDLADEIALVDAVPDKLRGEMLDLQHAAAFLPRTRLVSGTDMSVTRGSDLVIVTAGARQ Lacto__ste -RVVVIGAGFVGASYVFALMNQGIADEIVLIDANESKAIGDAMDFNHGKVFAPKPVDIWHGDYDDCRDADLVVICAGANQ Lacto_plant QKVVLVGDGAVGSSYAFAMAQQGIAEEFVIVDVVKDRTKGDALDLEDAQAFTAPKKIYSG-EYSDCKDADLVVITAGAPQ Therma_mari MKIGIVGLGRVGSSTAFALLMKGFAREMVLIDVDKKRAEGDALDLIHGTPFTRRANIYAG-DYADLKGSDVVIVAAGVPQ Bifido -KLAVIGAGAVGSTLAFAAAQRGIAREIVLEDIAKERVEAEVLDMQHGSSFYPTVSIDGSDDPEICRDADMVVITAGPRQ Thermus_aqua MKVGIVGSGFVGSATAYALVLQGVAREVVLVDLDRKLAQAHAEDILHATPFAHPVWVRSGW-YEDLEGARVVIVAAGVAQ Mycoplasma -KIALIGAGNVGNSFLYAAMNQGLASEYGIIDINPDFADGNAFDFEDASASLPFPISVSRYEYKDLKDADFIVITAGRPQ Lactate dehydrogenase multiple alignment Distance Matrix Human Chicken Dogfish Lamprey Barley Maizey Lacto_casei Bacillus_stea Lacto_plant Therma_mari Bifido Thermus_aqua Mycoplasma
Cluster analysis – (dis)similarity matrix Scores Similarity matrix 5× C1 C2 C3 C4 C5 C6.. Raw table Similarity criterion D i,j = ( k | x ik – x jk | r ) 1/r Minkowski metrics r = 2 Euclidean distance r = 1 City block distance
Cluster analysis – Clustering criteria Phylogenetic tree Scores Similarity matrix 5×5 Cluster criterion Single linkage - Nearest neighbour Complete linkage – Furthest neighbour Group averaging – UPGMA Ward Neighbour joining – global measure
Neighbour joining Global measure – keeps total branch length minimal, tends to produce a tree with minimal total branch length At each step, join two nodes such that distances are minimal (criterion of minimal evolution) Agglomerative algorithm Leads to unrooted tree
Neighbour joining x x y x y x y x y x (a)(b) (c) (d)(e) (f) At each step all possible ‘neighbour joinings’ are checked and the one corresponding to the minimal total tree length (calculated by adding all branch lengths) is taken.
How to assess confidence in tree Bayesian method – time consuming –The Bayesian posterior probabilities (BPP) are assigned to internal branches in consensus tree –Bayesian Markov chain Monte Carlo (MCMC) analytical software such as MrBayes (Huelsenbeck and Ronquist, 2001) and BAMBE (Simon and Larget,1998) is now commonly used –Uses all the data Distance method – bootstrap: –Select multiple alignment columns with replacement –Recalculate tree –Compare branches with original (target) tree –Repeat times, so calculate different trees –How often is branching (point between 3 nodes) preserved for each internal node? –Uses samples of the data
The Bootstrap C C V K V I Y S M A V R L I F S M C L R L L F T V K V S I I S I V R V S I I S I L R L T L L T L Original Scrambled x2x 3x3x Non- supportive