Time-Series Phylogenetic Analysis — Temporal Phylogenetics

Research
Introduced by
Alexei J. Drummond, Andrew Rambaut, and colleagues
Year
2000s (molecular clock methods earlier; BEAST framework 2007)
Type
Evolutionary bioinformatics pipeline
Family
Bioinformatics / omics

What does it do?

Time-series phylogenetic analysis estimates the evolutionary history of sequences collected at known, different times.

Because sampling dates are included in the model, branch lengths can be expressed in calendar time, and divergence dates and substitution rates are estimated together with the tree. The approach is used for viral outbreaks, ancient DNA and rapidly evolving microbes, where the spacing of sampling dates carries information about the rate of change.

The intuition behind the method

Ordinary phylogenetics shows which sequences are related and how their branches are arranged. Time-series phylogenetics adds the question of when each branching event happened and how fast sequences are changing. If genomes are sampled at different dates, the accumulated differences between them provide a clock signal: sequences sampled further apart in time tend to differ more, provided the rate of change is roughly consistent. The method uses this signal to place each node of the tree on a timeline and to estimate the rate of substitution. Without a usable temporal signal, the sampling dates do not constrain the clock, and the estimated dates mainly reflect the prior assumptions.

History

BEAST, described by Drummond and Rambaut in 2007, is a freely available, open-source software package for Bayesian evolutionary analysis of molecular sequences related by a tree. Its features include relaxed-clock phylogenetics and the analysis of non-contemporaneous sequence data, which are the components that time-series analysis relies on. BEAST 2 is a later, modular platform, described in its 2.5 release paper (Bouckaert et al., 2019). It extends the model hierarchy so that different kinds of evidence, including sampling dates, radiocarbon dates and fossil occurrences, can be combined in a single joint model.

When to use it

Use time-series phylogenetic analysis when sequences were sampled at several known dates and the question concerns divergence dates, substitution rates or population change on a calendar timescale. It suits viral epidemics, ancient DNA from specimens with reliable dates, and rapidly evolving bacteria. Before committing to the analysis, run a root-to-tip regression: a clear positive relationship between genetic distance and sampling date indicates usable temporal signal. If that relationship is flat or negative, the clock is not identifiable from the data and the analysis should not be interpreted without external calibration. Check the distribution of sampling dates against the sampling design before analysis. Strongly clustered sampling in time or place can weaken the clock signal or bias the estimates, so such datasets call for explicit sensitivity tests, for example on subsampled data with more even temporal coverage. Avoid the method when all sequences come from a very short time window, or when the lineages are so old, or evolve so slowly, that sampling dates cannot inform the clock and fossil or biogeographic calibration would be needed.

Limitations and considerations

  • The sequences must carry genuine temporal signal; without it the clock parameters are not identified and the posterior mostly reflects the priors.
  • MCMC inference is computationally demanding and can take hours to days for large datasets, and convergence has to be verified for every run.
  • The clock assumptions, such as constant or lineage-consistent substitution rates and the absence of recombination, may be violated in organisms with complex evolutionary histories.
  • Misspecification of the clock model, the tree prior or the handling of recombination can bias the estimated dates and rates substantially.

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

Strengths

  • Estimates divergence dates on a calendar timescale from the sampling dates themselves, so external fossil calibrations are not required when the temporal sampling is sufficient.
  • Infers tree topology, branch rates and population dynamics jointly in one statistical model, so uncertainty in the tree propagates into the date and rate estimates.
  • The Bayesian implementation returns posterior distributions for dates and rates rather than single point estimates.
  • Relaxed-clock and non-contemporaneous sampling models, as implemented in BEAST, allow the method to be applied to sequences collected at different times.
  • Phylodynamic extensions such as skyline plots and birth-death tree priors connect the inferred history to changes in population size or epidemiological processes.

Applications

  • Rapidly evolving RNA viruses sampled serially during epidemics or across seasons, where sampling dates are spread over time.
  • Pathogen lineages sampled over several years, used to estimate when lineages arose and how they spread between regions.
  • Ancient DNA from specimens with reliable radiocarbon or archaeological dates, where the sampling dates provide the calibration.
  • Serial samples taken over time from a single host, such as within-host evolution of a virus.
  • Bacterial isolates from hospital or community outbreaks, used to estimate divergence times and reconstruct likely transmission chains.
  • Organisms with fast substitution rates whose change is tracked across sampling seasons.

How it works

How it works

1

Sequences are gathered from several sampling times and each one is annotated with its collection date. The analysis needs enough spread and diversity in these dates to produce a detectable clock signal, because the wider the range of dates, the more reliably clock parameters can be estimated. As a quality check before the full analysis, a root-to-tip regression is run: the genetic distance of each sequence from the root of a preliminary tree is plotted against its sampling date. A positive slope indicates that more recently sampled sequences have accumulated more change, which is the temporal signal the clock depends on. The slope gives a rough first estimate of the substitution rate, and the fit of the line (for example its R²) indicates how consistently the signal holds.

2

The sequences are aligned with a multiple sequence alignment tool such as MAFFT or MUSCLE, producing a matrix of homologous positions. Alignment quality affects both the estimated rates and the tree topology, so poorly aligned or highly divergent regions are masked or trimmed before inference.

3

A molecular clock model describes how the substitution rate varies across lineages and over time. A strict clock assumes one constant rate for the whole tree. A relaxed clock (for example uncorrelated log-normal or exponential) lets rates differ among branches. A local clock assigns different rates to predefined clades. The choice rests on prior knowledge and on model comparison, for example with Bayes factors.

4

A time-calibrated tree is usually inferred within a Bayesian Markov chain Monte Carlo (MCMC) framework, for example with BEAST or BEAST 2. A tree prior, such as a coalescent or birth-death model, describes the branching process and encodes assumptions about population size or speciation and extinction rates. The MCMC samples from the joint posterior distribution of tree topology, branch lengths in time, and evolutionary parameters.

5

After discarding burn-in, the posterior distributions of the substitution rate, the tree height (age of the most recent common ancestor) and effective population size through time are summarised from the MCMC trace. Convergence is checked by inspecting trace plots and effective sample sizes (ESS) for every parameter. An ESS of at least about 200 is a conventional minimum for each parameter; it is not a guarantee of convergence, and lower values indicate that the posterior has probably not been sampled adequately. Convergence should also be assessed by running multiple independent chains and comparing them.

6

The maximum clade credibility (MCC) tree, annotated with posterior node ages, is visualised and interpreted alongside the epidemiological or ecological context. For pathogens this step may be used to infer outbreak origins, migration routes or transmission clusters. Phylodynamic summaries, such as Bayesian skyline plots, show how effective population size changes over calendar time.

Common pitfalls

  • Running the full BEAST analysis without first checking the root-to-tip regression risks accepting clock estimates from a dataset with no real temporal signal, which can still return estimates that look plausible.
  • Poor MCMC mixing, shown by unstable trace plots or ESS values well below the conventional minimum of about 200, means the posterior has not been adequately sampled. Longer chains, multiple independent runs or adjusted operators are needed before the results are interpreted.
  • Recombination violates the bifurcating tree model that the analysis assumes. In organisms such as HIV or bacteria it can distort rate and date estimates, so recombination screening (for example with RDP4 or ClonalFrameML) should come before the temporal analysis.
  • Branch lengths in a time-calibrated tree are in years, not substitutions per site. Mixing the two scales when comparing analyses leads to wrong conclusions.

Frequently asked questions

How do I know if my dataset has enough temporal signal for this analysis?

Run a root-to-tip regression: align the sequences, build a quick neighbour-joining or maximum likelihood tree, and plot the root-to-tip genetic distance of each sequence against its sampling date. A clear positive correlation indicates usable temporal signal. If the correlation is flat or negative, the clock model cannot be identified from the data, and the analysis should not proceed without external calibration.

What is the difference between a strict clock and a relaxed clock?

A strict clock assumes every branch in the tree evolves at the same substitution rate, which is a reasonable approximation for fast-evolving RNA viruses over short timescales. A relaxed clock lets rates vary independently across branches, drawn from an underlying distribution (commonly log-normal). The relaxed clock is more realistic where rate variation across lineages is expected, such as mixed-host pathogens or deep phylogenies, but it requires more data to estimate reliably.

Can I use this method for organisms that do not evolve rapidly?

Yes, but external calibration is usually needed. For organisms with slow substitution rates (e.g., mammals, plants), temporal signal from sampling dates alone is rarely detectable over the timescales of typical sampling schemes. These studies use fossil-calibrated node ages or biogeographic events as calibration points instead. Dedicated tools such as MCMCtree (PAML) are designed for these slower-evolving datasets.

How many sequences do I need?

There is no single rule. Datasets of 50 to 500 sequences spanning meaningful temporal diversity are common in viral studies. More sequences improve the precision of rate and date estimates but also increase computational cost. Temporal spread matters more than sheer numbers: a small set spanning several years may carry more clock signal than a large set sampled within one week.

Does recombination invalidate the analysis?

It does for methods that assume a strictly bifurcating tree. Recombination creates conflicting phylogenetic signals across the genome, which violate the tree-model assumptions and can bias both topology and date estimates. Screen for recombination before the analysis (e.g., with RDP4 or GARD). For organisms with frequent recombination (HIV, coronaviruses, bacteria), analyse non-recombinant genomic segments separately or use network-based methods.

Related methods

Sources

  1. Drummond, A. J., & Rambaut, A. (2007). BEAST: Bayesian evolutionary analysis by sampling trees. BMC Evolutionary Biology, 7, 214.

    Open DOI reference
  2. Bouckaert, R., Vaughan, T. G., Barido-Sottani, J., Duchene, S., Fourment, M., Gavryushkina, A., et al. (2019). BEAST 2.5: An advanced software platform for Bayesian evolutionary analysis. PLOS Computational Biology, 15(4), e1006650.

    Open DOI reference