How to Make an Evolutionary Tree
Creating an evolutionary tree, also known as a phylogenetic tree, is a fundamental skill for anyone studying biology, paleontology, or genetics. The tree visualizes hypotheses about how species or genes are related through common ancestry. Below is a step‑by‑step guide that covers the theory, data preparation, methodological choices, and practical tips for building a reliable tree from scratch.
Honestly, this part trips people up more than it should.
Understanding Evolutionary Trees
An evolutionary tree represents the branching pattern of descent. Each node signifies a common ancestor, and the length of branches can indicate time or genetic change. Before diving into software, grasp these core concepts:
- Taxa: The operational units you are comparing (species, populations, genes).
- Characters: Heritable traits used to infer relationships; these can be morphological, molecular (DNA/RNA/protein sequences), or behavioral.
- Homology vs. Analogy: Only homologous traits (shared because of inheritance from a common ancestor) should drive tree construction; analogous traits (similar due to convergent evolution) can mislead.
- Rooted vs. Unrooted: A rooted tree includes an inferred ancestor (the root), showing direction of time; an unrooted tree only shows relationships without a temporal axis.
Gathering and Preparing Data
The quality of your tree hinges on the data you input. Follow these best practices:
-
Select Appropriate Taxa
Choose a set that answers your biological question. Too few taxa may oversimplify; too many can introduce noise and computational burden. Aim for a balanced sampling that includes outgroups (taxa known to diverge earlier) to help root the tree Not complicated — just consistent.. -
Choose Character Types
- Molecular data (e.g., mitochondrial COI gene, nuclear ribosomal DNA) are most common because they provide abundant, quantifiable characters.
- Morphological data work well for fossils or when molecular data are unavailable.
- Combined (total‑evidence) analyses can increase resolution but require careful weighting.
-
Sequence Alignment
For molecular data, align sequences using tools like MAFFT, MUSCLE, or Clustal Omega. Inspect the alignment manually to remove ambiguously aligned regions (e.g., hypervariable loops) that could introduce systematic error. -
Data Cleaning
- Remove duplicate or identical taxa.
- Check for contamination (e.g., bacterial sequences in a eukaryotic dataset).
- Translate protein‑coding sequences to amino acids if saturation is suspected at the DNA level.
-
Format the Matrix
Save your aligned data in a format accepted by phylogenetic programs (FASTA, PHYLIP, NEXUS, or XML for Bayesian tools). Ensure taxon names are consistent and free of spaces or special characters that could crash software.
Choosing a Phylogenetic Method
Different algorithms make distinct assumptions about evolution. Your choice should reflect data size, computational resources, and the evolutionary model you trust Easy to understand, harder to ignore..
Distance‑Based Methods
- Neighbor‑Joining (NJ) and UPGMA compute pairwise distances (e.g., p‑distance, Kimura 2‑parameter) and cluster taxa iteratively.
- Pros: Fast, suitable for large datasets or preliminary explorations.
- Cons: Sensitive to unequal evolutionary rates; UPGMA assumes a molecular clock (often unrealistic).
Maximum Parsimony (MP)
- Seeks the tree requiring the fewest evolutionary changes (character state transitions).
- Pros: Intuitive; works well with discrete morphological data.
- Cons: Can be inconsistent under high rates of evolution (long‑branch attraction) and computationally intensive for many taxa.
Maximum Likelihood (ML)
- Evaluates trees based on the probability of observing the data given a specific substitution model (e.g., GTR+Γ).
- Pros: Statistically reliable; accommodates complex models of sequence evolution.
- Cons: Computationally demanding; requires model selection (often via AICc or BIC).
Bayesian Inference (BI)
- Uses Markov Chain Monte Carlo (MCMC) to sample trees proportionally to their posterior probability.
- Pros: Provides credibility intervals for clades; integrates model uncertainty.
- Cons: Requires careful convergence diagnostics; can be slow for very large datasets.
Tip: For most molecular datasets, start with a fast ML tree (e.g., using IQ‑TREE or RAxML‑NG) to get a topology, then refine with Bayesian analysis (MrBayes or BEAST) if you need posterior probabilities or divergence times.
Building the Tree: Practical Workflow
Below is a concrete workflow using freely available, command‑line tools. Adjust software names and parameters to match your operating system and preferences.
Step 1: Model Selection (for ML/BI)
# Using IQ‑TREE to find the best-fit model
iqtree -s alignment.fasta -m TEST
The output lists models ranked by BIC/AICc; note the best model (e.g., GTR+F+I+G4).
Step 2: Maximum Likelihood Tree Search
iqtree -s alignment.fasta -m GTR+F+I+G4 -bb 1000 -alrt 1000
-bb 1000performs 1,000 ultrafast bootstrap replicates.-alrt 1000computes approximate likelihood ratio test support.
The resulting.treefilecontains the ML tree with bootstrap values on nodes.
Step 3: Bayesian Inference (Optional)
# Convert to NEXUS for MrBayes
seqmagick convert alignment.fasta alignment.nexus
# MrBayes block (insert into alignment.nexus)
begin mrbayes;
set autoclose=yes nowarn=yes;
lset nst=6 rates=invgamma;
mcmc ngen=5000000 samplefreq=1000 printfreq=1000 nchains=4 temp=0.2;
sump burnin=1250;
sumt burnin=1250;
end;
Run MrBayes:
mb alignment.nexus
Check convergence (avgstddev < 0.01) and effective sample sizes (>200) in Tracer if you used BEAST for dating And that's really what it comes down to..
Step 4: Tree Visualization
Load the tree file into FigTree, iTOL, or the R package ggtree:
library(ggtree)
tree <- read.tree("alignment.fasta.treefile")
ggtree(tree) + geom_tiplab() + geom_nodepoint(aes(subset=!isTip, label=label))
Add bootstrap or posterior probability values as node labels for interpretation That's the part that actually makes a difference. Still holds up..
Interpreting the Evolutionary Tree
Once you have a visual tree, focus on these aspects:
- Clade Support: High bootstrap (≥70
Interpreting Node Support
-
Bootstrap thresholds – While 70 % is a common rule‑of‑thumb, the significance of a bootstrap value can depend on dataset size and taxon sampling:
- 70–79 %: moderate support; the clade is plausible but may be sensitive to alignment trimming or model choice.
- 80–94 %: strong support; the relationship is strong to most sources of error.
- ≥95 %: very strong support; the clade is typically considered well‑resolved and can be treated as a hypothesis for downstream comparative work.
-
Posterior probabilities (PP) – In Bayesian trees, PP values are often higher than bootstrap percentages for the same underlying signal:
- PP ≥ 0.95: strong credibility; the clade is present in >95 % of sampled trees.
- PP = 0.90–0.94: moderate credibility; consider additional data or alternative models if the clade is critical.
- PP < 0.90: weak credibility; the clade may be an artifact of model misspecification or limited phylogenetic signal.
-
Combined support plots – Many software packages (e.g., FigTree, iTOL, ggtree) allow you to display both bootstrap and posterior values on the same node. When the two metrics disagree (e.g., high bootstrap but low PP), examine:
- The underlying alignment quality (e.g., saturation, compositional heterogeneity).
- Whether the Bayesian analysis converged adequately (check
avgstddev, ESS, and potential scale reduction factor). - The impact of priors on tree topology.
Dealing with Conflicting Signals
- Partitioned analyses – If certain gene regions or codon positions drive discordance, run separate ML or Bayesian analyses on each partition and compare topologies.
- Gene‑tree reconciliation – Use tools such as ASTRAL, BEST, or BEAST star‑tree approaches to summarize gene trees while accounting for incomplete lineage sorting.
- Model adequacy tests – Employ posterior predictive simulations (e.g., PASTA for sequence evolution) to verify that the chosen substitution model adequately captures the data.
- Data recoding – For highly saturated datasets, recoding nucleotides to purines/pyrimidines or using amino‑acid sequences can reduce noise and reveal deeper relationships.
Adding Divergence Times (when using BEAST)
- Calibration strategies – Incorporate fossil records or well‑dated geological events as priors (log‑normal or uniform) on relevant nodes.
- Tree priors – Choose an appropriate clock model (strict, relaxed log‑normal) and a tree prior (Yule or birth‑death) that matches the biological scenario.
- MCMC settings – Increase
ngenor use BEAST2's Coupled MCMC to improve mixing for large alignments; monitor convergence in Tracer (ESS > 200 for all parameters). - Summarizing time‑scaled trees – After discarding the burn‑in, generate a maximum clade credibility (MCC) tree with node ages and 95 % highest posterior density (HPD) intervals using TreeAnnotator.
Best Practices and Common Pitfalls
| Practice | Why it matters | Typical mistake |
|---|---|---|
| Alignment trimming | Removes ambiguous regions that inflate noise | Over‑trimming can discard informative sites |
| Model testing | Prevents systematic bias from model misspecification | Using a single generic model (e.g., GTR) without checking fit |
| Bootstrap replicates | Provides a strong estimate of support | Using too few replicates (<500) leads to stochastic variation |
| Convergence diagnostics | Guarantees reliable posterior estimates | Ignoring avgstddev or low ESS values |
| Visualization clarity | Facilitates communication of results | Over‑crowded node labels obscure topology |
Practical Tips for Publication‑Ready Trees
- Node labeling – Combine bootstrap percentages and posterior probabilities in a single label (e.g.,
99/0.98). - Branch lengths – For time‑scaled trees, display ages in millions of years; for non‑dated trees, show substitutions per site.