Building phylogenetic trees
Statement
Distance and likelihood methods.
Why it matters
sequence-alignment already established how to detect homology between sequences and score their similarity position by position; this result addresses the next problem — converting a whole collection of pairwise similarity or distance scores among many aligned, homologous sequences into a single branching hypothesis of evolutionary relationships. blast-database-search finds candidate homologs rapidly across huge databases and hidden-markov-models locate genes and motifs probabilistically, but neither, by itself, produces a tree; tree construction is the distinct combinatorial and statistical problem this result solves, and it underlies comparative genomics, taxonomy, and tracing the origin and spread of pathogens.
expression-clustering, also in this unit, solves a structurally similar problem — grouping objects by similarity — using closely related clustering algorithms, though applied to expression profiles rather than sequence divergence.
Hypotheses
Proof
Result
Reading. Two broad families of method turn aligned sequence data into a tree: distance methods (fast, reducing the data to a matrix before building, e.g. UPGMA and neighbour-joining), and character-based likelihood methods (slower, using the full sequence data directly, generally more accurate for deep or rate-heterogeneous divergences).
Scope. Distance methods scale to very large datasets and give a fast, approximate topology; likelihood (and Bayesian) methods are the modern standard for publication-quality trees, particularly where lineages evolve at markedly unequal rates (Fails without).
Corollaries & converses
- expression-clustering's agglomerative clustering of gene-expression profiles is structurally the same algorithm as UPGMA (Step 2), applied to a different kind of distance matrix, since both solve the same core problem of grouping objects by pairwise similarity.
- Trees built by different methods on the same alignment typically agree on well-supported clades but can disagree on deep or weakly supported branches; bootstrap values (Step 5) are the standard tool for identifying which parts of a given tree to trust.
- Converse: a clade recovered with high bootstrap support by multiple independent methods (distance-based and likelihood-based alike) is strong evidence that the grouping reflects genuine shared ancestry rather than a method-specific artefact.
Fails without
- Drop the homology/correct-alignment assumption (Hypotheses): building a tree from misaligned or non-homologous sequences produces a topology with no evolutionary meaning at all — any distances or likelihoods computed afterward are computed over meaningless position-by-position correspondences, regardless of how sophisticated the tree-building algorithm itself is.
- Drop the molecular-clock assumption specifically for UPGMA: if lineages genuinely evolve at different rates — common, for instance, between a fast-evolving parasite lineage and its slower-evolving host — UPGMA can recover a demonstrably incorrect topology, since it forces an ultrametric tree regardless of actual rate variation; neighbour-joining or maximum likelihood, which do not assume a clock, are used instead in exactly this situation.
Common errors
- Assuming greater sequence similarity always implies closer evolutionary relationship, ignoring the possibility of long-branch attraction, where two fast-evolving, actually-distantly-related lineages are spuriously grouped together because both independently accumulated many changes, some coincidentally identical.
- Treating raw percent sequence difference as true evolutionary distance without a substitution-model correction, which systematically underestimates distance between highly diverged sequences (Hypotheses).
- Interpreting a low bootstrap value as proof a clade is wrong, rather than as a signal of insufficient statistical support given the current data; it often simply reflects too few informative sites, not necessarily an incorrect grouping.
- Reading branch lengths on an unrooted, non-clock (e.g. neighbour-joining or maximum-likelihood) tree as if they directly represented elapsed time, when they in fact represent estimated amount of sequence change.
Discussion
UPGMA was originally developed by Sokal and Michener in 1958 for phenetic taxonomy, before molecular sequence data existed; neighbour-joining, introduced by Saitou and Nei in 1987, was developed specifically to address UPGMA's dependence on a strict molecular clock. Maximum-likelihood phylogenetics was developed largely by Joseph Felsenstein through the 1980s, and Bayesian phylogenetic methods using Markov-chain Monte Carlo became computationally practical through the 1990s and 2000s as computing power grew.
Long-branch attraction, a well-known failure mode particularly for parsimony and, to a lesser degree, distance methods, is one of the main motivations for the shift toward explicit likelihood-based models: because likelihood methods model the substitution process directly, they can, in principle, account for the possibility of multiple, unobserved substitutions at a single site far better than a simple distance or parsimony count can.
Common misconception: that a phylogenetic tree, once built, is uniquely and permanently "the" true tree. Different methods, models, or genes can yield different topologies, and a single-gene tree need not even match the true species tree, owing to complications such as incomplete lineage sorting — a reminder that any given tree is a hypothesis supported to a stated confidence level (Step 5), not a settled fact.
Worked examples
Reading. Even a modest increase in the number of taxa produces an astronomically larger space of candidate tree topologies, which is why practical tree-building software relies on heuristic search strategies rather than exhaustive enumeration for any realistically sized dataset.
Scope. The same combinatorial growth applies regardless of which method (distance or likelihood) is ultimately used to score and select a topology.
Problems
- Given \(D(A,B)=2\), \(D(A,C)=8\), \(D(B,C)=8\), use UPGMA to determine which two taxa merge first and at what height.
Solution
The smallest distance is \(D(A,B)=2\), so \(A\) and \(B\) merge first, at height \(2/2=1\) (Step 1's logic). - Explain why neighbour-joining is generally preferred over UPGMA when lineages are suspected to evolve at markedly different rates, referencing Fails without.
Solution
UPGMA forces an ultrametric tree, implicitly assuming all lineages have accumulated the same amount of change since their common ancestor (a strict molecular clock); when rates genuinely differ between lineages, this assumption is violated and UPGMA can recover an incorrect topology. Neighbour-joining minimises total tree length without assuming equal rates (Step 3), so it correctly accommodates lineages evolving at different speeds. - For \(n=6\) taxa, compute the number of distinct unrooted binary tree topologies using \((2n-5)!!\), and comment on the practicality of exhaustive search at this scale.
Solution
\((2\times6-5)!!=7!!=7\times5\times3\times1=105\). This is still small enough for exhaustive search to be practical, but the rapid combinatorial growth demonstrated in Worked Example 2 (over two million topologies already at \(n=10\)) means exhaustive search quickly becomes infeasible as datasets grow, which is why most real maximum-likelihood analyses rely on heuristic topology search instead.