A substitution model describes how one nucleotide or amino acid changes into another over evolutionary time. The model affects branch lengths, tree topology and support, so it should be chosen deliberately and reported.
Why a model is needed
A phylogenetic method needs a rule for the probability of change. A simple model might give every substitution the same rate. A more complex model allows different rates for transitions and transversions, unequal base frequencies and variation across sites.
The model is a simplification. No model is true. The aim is a model that captures the important features of the data without adding parameters that the data cannot support.
Common DNA models
- JC69: equal base frequencies and one substitution rate.
- K80: distinguishes transitions from transversions.
- F81: unequal base frequencies, one rate.
- HKY85: unequal base frequencies and transition/transversion rates.
- GTR: a general reversible model with several rate parameters.
The names are a ladder of increasing complexity. A more complex model can fit the data better, but it can also overfit. Model selection compares the fit with the number of parameters.
Rate variation across sites
Real sequences do not evolve at the same rate at every position. A proportion of sites may be invariant, and the rest may follow a gamma distribution. A common notation is +G for gamma-distributed rates and +I for a proportion of invariant sites.
Ignoring rate variation can compress branch lengths and distort support. Adding it usually improves the fit, but the parameters should be estimated rather than guessed.
Protein models
Protein models such as LG, WAG and JTT describe amino acid replacement probabilities. They differ in the data used to estimate them. Some models account for amino acid frequencies in the dataset, and some account for heterogeneity across sites.
For a protein family with a strong compositional bias, a model that estimates frequencies from the data may be more appropriate than a fixed matrix.
Model selection
A common approach is to fit several models and compare them with a criterion such as AIC or BIC. The best-scoring model is a starting point, not a mandate. If two models give very different trees, the data may not resolve the relationships well enough to choose confidently.
Model selection should use the alignment that will be used for the tree. Changing the alignment after selection invalidates the comparison.
Practical advice
- Decide whether the data are DNA, protein or codon.
- Choose a set of candidate models that the software supports.
- Include rate variation if the alignment is long enough to estimate it.
- Compare with a criterion and record the result.
- Report the model, the rate variation and the software version.
- Test whether the main conclusion survives a simpler or more complex model.
What the model does not fix
A substitution model cannot correct a bad alignment, a wrong root, contamination or non-independent sampling. It cannot turn a short alignment into a resolved tree. It is one part of the analysis, not a substitute for the others.
A model-selection example
Suppose an alignment of mitochondrial protein-coding genes is analysed as DNA. A simple model with equal base frequencies fits poorly because the sequence is AT-rich. A model with unequal frequencies fits better. Adding rate variation across sites improves the fit further, because third codon positions change more often than first and second positions.
A criterion such as BIC may favour a model with unequal frequencies, separate transition and transversion rates, and gamma-distributed rate variation. That does not mean every parameter is biologically meaningful. It means the model captures the main features of this alignment better than the alternatives that were compared.
The important check is whether the tree changes. If the topology and the supported branches are the same under a simpler model, the conclusion is robust. If they differ, the result depends on the model and should be reported with that caveat.
Partitioning and mixed data
An alignment often contains regions with different evolutionary pressures: coding and non-coding sequence, different genes, or different codon positions. A single model for the whole alignment may fit none of them well.
Partitioning assigns separate models to defined subsets. It can improve the fit, but it also multiplies the number of parameters. With short partitions, the estimates become unstable. A sensible compromise is to partition by gene or by codon position when there is enough data, and to test whether the partitioning changes the conclusion.
For concatenated datasets, the assumption that all partitions share one tree is itself a hypothesis. Gene tree discordance can be hidden by concatenation. If the question is about species relationships, compare gene trees and consider methods that account for discordance.
Model uncertainty and reporting
A single best model is a point estimate. Some methods average over models or report results under several models. Even a simple sensitivity check, such as rebuilding the tree under a second plausible model, is worth doing when a claim depends on the tree.
In the methods, report the candidate models, the selection criterion, the final model and any rate variation. If you used a fixed model because the software or the data required it, say why. "Default settings" is not a model description.
A note on codon models
Codon models treat each codon as a state and allow for the structure of the genetic code. They are useful for questions about selection, because they can estimate the relative rates of synonymous and non-synonymous change. They are also more demanding: they need a codon alignment, a reasonable number of sequences and careful handling of gaps and stop codons.
For a simple relationship between closely related species, a nucleotide model is often enough. For a question about adaptive evolution, a codon model may be the right tool, but it should be matched to the data and the hypothesis.
Key points
- The model describes the probability of substitution.
- More complex is not always better.
- Rate variation across sites is common.
- Model selection uses the alignment that will be analysed.
- Report the model and test the main conclusion.
Common mistakes
- Using the default model without checking.
- Adding complexity that the data cannot support.
- Ignoring rate variation.
- Selecting a model on one alignment and building the tree on another.
- Reporting a tree without the model name.
When to ask for help
If different models give different trees, if the alignment is short, or if you are unsure whether a protein or DNA model is appropriate, ask for a review. You can order an analysis or read the tree reading guide. The Alignment & Phylogenetics studio supports model-based trees, and the bootstrap guide explains support.
Sources and further reading
Written by the Solagene team for research and education. Found an error? Tell us and we will correct it.