Phylogenetic Analysis — Evolutionary Tree Reconstruction from Molecular Data

Research
Introduced by
Joseph Felsenstein (maximum likelihood framework); Walter Fitch and Emanuel Margoliash (distance methods)
Year
1960s-1981 (distance trees ~1967; ML framework formalised 1981)
Type
Computational inference method
Family
Bioinformatics / omics

What does it do?

Phylogenetic analysis reconstructs the evolutionary history of organisms, genes, or proteins by comparing molecular sequence data and estimating the branching tree that best explains observed similarities and differences.

Distance-based tree building dates to the 1960s, and Felsenstein's 1981 maximum likelihood framework placed inference on a formal probabilistic footing. It is used across evolutionary biology, microbiology, epidemiology, and comparative genomics, for tasks ranging from tracing viral outbreak origins to classifying novel species.

The intuition behind the method

Think of phylogenetic analysis as building a family tree from DNA or protein sequences rather than from birth records. Sequences that share more similarity tend to sit closer together on the tree, but similarity can arise from shared ancestry or from independent changes that happen to match, and substitution models are used to account for this. Maximum likelihood scores each candidate tree by how probable the observed sequences are under a chosen substitution model and searches for the highest-scoring tree. Bayesian methods instead sample trees in proportion to their posterior probability. Distance methods such as neighbor-joining are faster but less statistically principled. The resulting tree is a hypothesis, so uncertainty is reported as bootstrap support or posterior probability at each branch.

History

Systematic use of molecular sequences for evolutionary inference began with Margoliash and Fitch distance-based analyses of cytochrome-c in the mid-1960s. Maximum parsimony methods were formalised by Fitch in 1971. The pivotal advance came with Felsenstein's 1981 maximum likelihood framework for DNA sequences, which placed phylogenetic inference on a rigorous probabilistic footing. Bayesian MCMC sampling of tree space was introduced by Rannala and Yang in 1996 and implemented in MrBayes by Huelsenbeck and Ronquist in 2001. Time-stamped Bayesian phylogenetics via BEAST enabled molecular clock dating at scale, while IQ-TREE and RAxML-NG subsequently brought fast ML inference to phylogenomic datasets of thousands of taxa.

When to use it

Use phylogenetic analysis when the central question concerns evolutionary relationships, common ancestry, divergence times, or how sequence lineages have spread over time or geography. It requires homologous sequences for all taxa that can be aligned with reasonable confidence. It is well suited to tracing infectious disease outbreaks, classifying novel organisms, dating divergences with calibrated molecular clocks, and studying gene family evolution. Do not use it when sequences are too short or too divergent to align reliably, when the question concerns variation within a population (GWAS or admixture analysis is more suitable), or when horizontal gene transfer or hybridisation is so widespread that a bifurcating tree is an inappropriate model and a phylogenetic network is needed.

Limitations and considerations

  • The tree is only as reliable as the sequence alignment; alignment errors propagate into topology errors.
  • Model misspecification, such as using an overly simple substitution model, can produce confident but incorrect trees.
  • A single gene tree may differ from the species tree because of incomplete lineage sorting, gene duplication, or horizontal gene transfer.
  • Bayesian MCMC analyses can be computationally intensive and need convergence diagnostics such as effective sample size and trace plots.
  • Long-branch attraction can cause rapidly evolving lineages to cluster together artifactually, most notably under maximum parsimony and poorly specified maximum likelihood models.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Yields an explicit, testable evolutionary hypothesis with branch support values, rather than only a cluster diagram.
  • Maximum likelihood and Bayesian methods evaluate trees against a stated substitution model, so model assumptions are visible and can be compared. Rate variation across sites (+G) and invariant sites (+I) can be modelled, although this does not remove the effect of substitution saturation.
  • Scales from a small number of sequences to thousands of taxa with fast maximum likelihood implementations such as IQ-TREE and RAxML-NG.
  • Bayesian inference in BEAST can incorporate sampling dates and calibrations to estimate divergence times under a molecular clock model.
  • Applicable to mitochondrial markers, whole genomes, transcriptomes, viral genomes, and protein families alike, provided homology can be established.

Applications

  • Tracing the geographic spread and host-jumping of viral pathogens such as SARS-CoV-2, influenza, and Ebola using time-stamped genome sequences.
  • Classifying novel bacterial or fungal isolates and resolving disputed species boundaries in microbial systematics.
  • Reconstructing the evolutionary history of gene families to identify orthologous versus paralogous relationships in comparative genomics.
  • Dating the divergence of major animal or plant lineages using fossil-calibrated molecular clocks.
  • Investigating horizontal gene transfer events in prokaryotes including the spread of antibiotic resistance genes across lineages.
  • Reconstructing transmission networks in outbreak investigations from whole-genome sequencing data for hospital-acquired or food-borne infections.

How it works

How it works

1

Homologous sequences (nucleotide or amino acid) are gathered for all taxa of interest from databases such as GenBank or from in-house sequencing. Sequence choice is critical: they must be truly homologous, derived from a common ancestral sequence, and cover enough informative positions to resolve the relationships of interest. Outgroup taxa are selected to root the tree and provide an evolutionary reference point.

2

Sequences are aligned using tools such as MUSCLE, MAFFT, or ClustalW to establish positional homology, ensuring that each column in the alignment corresponds to the same ancestral position across all sequences. Poorly aligned or ambiguous regions are masked or trimmed using tools such as trimAl before inference, because misaligned positions introduce noise rather than evolutionary signal.

3

A nucleotide or amino acid substitution model is chosen using model-testing software such as ModelTest-NG or IQ-TREE's built-in ModelFinder. The model describes empirical transition and transversion frequencies, rate heterogeneity across sites via the gamma distribution (+G), and the proportion of invariant sites (+I). An overly simple model can bias estimated branch lengths and topology, because unmodelled multiple substitutions at the same site are not accounted for.

4

The tree is inferred by one or more methods: distance-based neighbor-joining computes a pairwise matrix under the chosen model and is fast but statistically suboptimal; maximum likelihood searches tree space to maximise the probability of the aligned data given the tree, its branch lengths, and the substitution model, summing over unobserved ancestral states at internal nodes at each alignment column, with IQ-TREE and RAxML as standard tools; Bayesian inference samples from the posterior distribution of trees via MCMC using MrBayes or BEAST, giving samples of trees and parameters whose spread quantifies uncertainty conditional on the chosen model and alignment, and enabling molecular clock dating. Maximum parsimony, which minimises the number of evolutionary changes, is now rarely recommended for molecular data due to inconsistency under long-branch attraction.

5

Branch support is estimated by non-parametric bootstrap resampling for maximum likelihood analyses, typically using 1000 replicates, or by Bayesian posterior probabilities. Bootstrap values of about 70-75 and posterior probabilities above 0.95 are commonly used conventions for moderate-to-strong support. They are rules of thumb rather than calibrated thresholds, and a high value does not guarantee that the corresponding clade is correct. Low support at deep nodes can reflect insufficient phylogenetic signal, long-branch attraction, or conflicting evidence across loci.

6

The inferred tree is rooted using the outgroup, annotated with support values, and examined in the context of the biological question: divergence times, biogeographic patterns, horizontal gene transfer events, or clade membership. Conflicting signal across gene trees due to incomplete lineage sorting or hybridisation may require species-tree methods such as ASTRAL or phylogenetic network representations rather than a single bifurcating tree.

Common pitfalls

  • Skipping model selection and using a default simple model when the data call for a richer model such as GTR+G+I can distort branch lengths and reduce the reliability of topology support.
  • Including poorly aligned or substitution-saturated regions without trimming adds apparent homoplasy and can make well-supported nodes unstable.
  • Interpreting bootstrap values as posterior probabilities: bootstrap support reflects how consistently a clade is recovered when the data are resampled, not the probability that the clade is correct, so a value of 70 does not mean a 70% chance that the clade is real.
  • Rooting with a distantly related outgroup, whose long branch can attract unrelated ingroup taxa and shift root placement.
  • Treating one gene tree as the species tree for multi-locus or genome-scale data. Gene-tree discordance calls for a species-tree method such as ASTRAL; concatenation alone can converge on a wrong species topology with high apparent support.

Frequently asked questions

Which tree inference method should I use: neighbor-joining, maximum likelihood, or Bayesian?

For most modern analyses, maximum likelihood with IQ-TREE or RAxML is the default choice: it is statistically principled, fast on large datasets, and provides bootstrap support. Neighbor-joining is acceptable for rapid exploratory work or very large sequence sets where runtime is prohibitive. Bayesian inference via MrBayes or BEAST is preferred when you need full posterior distributions on topologies and branch lengths or when integrating temporal information for molecular clock dating. Parsimony is now rarely recommended for molecular data due to inconsistency under long-branch attraction.

How do I know if my bootstrap support values are trustworthy?

Bootstrap values around 70-75 are a commonly used convention for moderate support, not a calibrated threshold, and higher values indicate stronger support. However, high bootstrap values can still accompany a wrong tree if the data are systematically misleading, for example through model misspecification or long-branch attraction. Interpret support values alongside biological plausibility and, where possible, corroborate them with independent loci or morphological evidence.

What is incomplete lineage sorting and why does it matter?

Incomplete lineage sorting occurs when ancestral polymorphism persists across multiple speciation events, causing individual gene trees to differ from the true species tree. It is especially common in rapid radiations and recently diverged taxa. If you are working with multiple loci across closely related species, concatenation alone may recover the wrong species topology with high confidence. Use a species-tree method such as ASTRAL (coalescent-based) or the BEAST multispecies coalescent to account for this discordance.

Can I use whole-genome data for phylogenetics?

Yes. Phylogenomics with many loci is now common and can greatly increase resolution. It requires careful ortholog identification, alignment trimming, and handling of missing data. Concatenation with partition models in IQ-TREE is widely used, but concatenation should not be assumed to recover the species tree when gene trees conflict; for species-tree estimation under incomplete lineage sorting, coalescent methods such as ASTRAL are generally preferred. For prokaryotes, where horizontal gene transfer is common, a core-genome or recombination-filtered alignment is advisable before inferring a species tree.

My sequences are from very divergent taxa. Is alignment still reliable?

As sequences diverge, alignment becomes less reliable, and repeated substitutions at the same site (substitution saturation) progressively obscure the phylogenetic signal. In such cases, consider aligning protein-coding sequences at the amino acid level, trim ambiguous columns aggressively, run saturation tests, and assess whether a network or supertree approach is more appropriate than a bifurcating tree. The point at which saturation becomes a problem depends on the dataset and should be checked rather than assumed.

Related methods

Sources

  1. Felsenstein, J. (2004). Inferring Phylogenies. Sinauer Associates.

    ISBN: 978-0878931774
  2. Felsenstein, J. (1981). Evolutionary trees from DNA sequences: A maximum likelihood approach. Journal of Molecular Evolution, 17(6), 368-376.

    Open publication reference