How Do You Make A Phylogenetic Tree

8 min read

Phylogenetic trees serve as the fundamental framework for understanding the evolutionary history of life on Earth. These branching diagrams represent hypotheses about the relationships among biological entities—whether species, genes, or populations—based on shared ancestry. Think about it: constructing a solid tree is a multi-stage process that blends molecular biology, computational algorithms, and statistical validation. Mastering this workflow allows researchers to trace the origins of infectious diseases, classify newly discovered organisms, and reconstruct the deep history of biodiversity.

Gathering and Preparing Biological Data

The foundation of any phylogenetic analysis lies in the quality of the input data. Here's the thing — the process begins with selecting the appropriate molecular marker. For deep evolutionary divergences, such as relationships between phyla, highly conserved genes like 16S rRNA or cytochrome c oxidase are preferred because they mutate slowly. Conversely, for recent speciation events or population genetics, faster-evolving regions like mitochondrial DNA control regions or microsatellites provide better resolution.

Once the target locus is chosen, sequences must be retrieved from databases like GenBank or generated through laboratory sequencing. They require trimming to remove low-quality ends, vector contamination, and primer sequences. Raw sequences rarely arrive analysis-ready. This cleaning step is critical; erroneous bases at the termini can introduce artificial mutations that mislead downstream algorithms, creating long-branch attraction artifacts where unrelated fast-evolving lineages appear falsely grouped.

Sequence Alignment: The Critical Homology Assessment

Alignment is arguably the most intellectually demanding step. Also, it transforms a list of independent strings into a matrix where columns represent homologous positions—sites derived from a common ancestral nucleotide or amino acid. The accuracy of the tree depends entirely on the correctness of this homology statement Simple, but easy to overlook..

For protein-coding genes, alignment is best performed on the translated amino acid sequences using tools like MAFFT, MUSCLE, or Clustal Omega. Amino acid alignments are more reliable because the genetic code degeneracy masks synonymous substitutions, and structural constraints conserve physicochemical properties. The resulting protein alignment is then back-translated to nucleotides, preserving the codon reading frame.

Non-coding regions, such as ribosomal RNA stems and loops, require specialized algorithms that incorporate secondary structure models (e.After the initial automated alignment, manual inspection and refinement are non-negotiable. Practically speaking, , SINA or LocARNA). g.Automated tools frequently misalign indels (insertions/deletions) in hypervariable regions. Researchers must visually inspect the alignment in editors like AliView or Jalview, adjusting gaps to minimize homoplasy—similarity not due to common ancestry And it works..

A common practice involves masking or removing ambiguously aligned blocks using tools like Gblocks or trimAl. While this discards data, it prevents noisy signal from overwhelming the true phylogenetic history, particularly in maximum likelihood and Bayesian frameworks where model violation in poorly aligned regions can distort branch lengths and topology And that's really what it comes down to..

Selecting the Optimal Evolutionary Model

Phylogenetic inference does not operate on raw similarity; it relies on explicit probabilistic models of sequence evolution. These models estimate the probability of observing the current data given a specific tree topology and branch lengths. Choosing the wrong model introduces systematic bias.

Model selection typically uses hierarchical likelihood ratio tests (hLRTs) or information criteria like AIC (Akaike Information Criterion) and BIC (Bayesian Information Criterion), implemented in software such as ModelTest-NG, jModelTest, or IQ-TREE’s built-in ModelFinder. For nucleotide data, the General Time Reversible model with Gamma-distributed rate heterogeneity and a proportion of invariant sites (GTR+G+I) is frequently selected as the best-fit, though simpler models (HKY, TN93) may suffice for smaller datasets.

For amino acid data, empirical matrices derived from large protein databases (LG, WAG, JTT) are standard, often combined with +G+I+F (empirical frequencies). Because of that, partitioning the data—applying separate models to codon positions, genes, or structural domains—dramatically improves fit. Tools like PartitionFinder automate this scheme selection, balancing model complexity against overparameterization.

Tree Inference Methods: Distance, Parsimony, and Likelihood

Three major optimality criteria dominate tree construction, each with distinct philosophical and mathematical underpinnings.

Distance-Based Methods (Neighbor-Joining)

Neighbor-Joining (NJ) calculates pairwise genetic distances (corrected for multiple hits using the chosen substitution model) and iteratively clusters the most similar taxa. It is computationally trivial—seconds for thousands of taxa—making it ideal for preliminary exploration or massive datasets (e.g., environmental metabarcoding). That said, NJ produces a single tree with no inherent measure of branch support beyond bootstrapping, and it discards character-state information by reducing sequences to a distance matrix And it works..

Maximum Parsimony (MP)

Parsimony seeks the tree requiring the fewest evolutionary changes (mutations) to explain the data. It operates directly on character states without an explicit substitution model. While intuitive, MP is statistically inconsistent under certain conditions—specifically long-branch attraction—where convergent evolution on long branches misleads the criterion. It remains popular for morphological datasets and specific molecular contexts where model assumptions are violated, but it has largely been superseded by model-based methods for molecular phylogenetics Small thing, real impact. Practical, not theoretical..

Maximum Likelihood (ML)

Maximum Likelihood is currently the gold standard for molecular phylogenetics. It evaluates the probability of the observed alignment given a specific tree topology, branch lengths, and substitution model parameters. The algorithm searches "tree space"—the vast universe of possible topologies—using heuristic strategies (Nearest Neighbor Interchange, Subtree Pruning and Regrafting) to find the topology maximizing the likelihood score.

Software like RAxML-NG, IQ-TREE, and PhyML implements highly optimized ML search algorithms. IQ-TREE is particularly user-friendly, integrating ModelFinder and ultrafast bootstrap approximation (UFBoot) in a single command line. ML provides branch lengths proportional to expected substitutions per site, allowing direct interpretation of evolutionary rates That alone is useful..

Bayesian Inference (BI)

Bayesian phylogenetics, implemented primarily in MrBayes and BEAST, uses Markov Chain Monte Carlo (MCMC) sampling to approximate the posterior probability distribution of trees. Instead of a single "best" tree, BI yields a sample of trees proportional to their probability given the data and priors.

The major advantage is the direct interpretation of support values: a clade with a posterior probability (PP) of 0.In real terms, 95 has a 95% probability of being true, given the model and priors. BEAST further excels at time-calibrated phylogenies (timetrees), incorporating fossil calibrations and relaxed molecular clocks to date divergence events. Even so, MCMC convergence diagnostics (ESS > 200 in Tracer) and computational demand are significant hurdles Easy to understand, harder to ignore..

It sounds simple, but the gap is usually here.

Assessing Branch Support: Is the Tree Reliable?

A topology without support values is a hypothesis without evidence. Two primary metrics dominate the literature.

Non-parametric Bootstrapping (ML/MP): The alignment columns are resampled with replacement to create pseudoreplicates (typically 100–1000). Trees are inferred for each replicate, and the frequency a clade appears constitutes the Bootstrap Support (BS). Values ≥ 70% are traditionally considered moderate support; ≥ 95% is strong. Ultrafast Bootstrap (UFBoot2) in IQ-TREE provides comparable accuracy in a fraction of the time.

Posterior Probabilities (Bayesian): Derived directly from the MCMC sample frequency. PPs tend to be higher than bootstrap values for the same clade; a PP of 0.95 roughly corresponds to a BS of 70–80%. Researchers often report both when possible.

Emerging methods like SH-aLRT (Shimodaira-Hasegawa approximate Likelihood Ratio Test) and Gene Concordance Factors (gCF/sCF) in IQ-TREE offer complementary perspectives, quantifying support per branch based on site-wise

site-wise likelihoods, providing a fast approximate test that complements bootstrap and posterior probability values. SH‑aLRT evaluates whether the likelihood of a constrained tree (forcing a branch to collapse) is significantly worse than that of the unconstrained tree, yielding a proportion‑like support that is often interpreted similarly to bootstrap percentages (≥ 80 % considered strong). Because it reuses the site‑wise likelihoods already computed during the ML search, SH‑aLRT adds negligible overhead and is routinely reported alongside UFBoot in IQ‑Tree outputs Practical, not theoretical..

Gene Concordance Factors (gCF and sCF) take a different angle by summarizing how many individual gene trees (or site partitions) support a given branch. These metrics are especially valuable in phylogenomic datasets where incomplete lineage sorting, hybridization, or horizontal gene transfer can cause discordance among loci. In real terms, gCF reports the percentage of gene trees that contain the branch, while sCF measures the proportion of informative sites that favor the branch over alternative topologies. A high gCF (≥ 70 %) coupled with strong bootstrap or PP values increases confidence that the branch reflects a genuine species‑level signal rather than stochastic noise.

When interpreting support, it is useful to consider the concordance among different metrics. As an example, a clade with BS = 96 %, PP = 0.99, SH‑aLRT = 0.Here's the thing — 98, gCF = 85 % and sCF = 80 % can be regarded as solid, whereas conflicting signals (e. g.Also, , high BS but low gCF) may indicate model misspecification, insufficient phylogenetic signal, or genuine biological conflict that warrants further investigation (e. g., coalescent‑based species‑tree methods such as ASTRAL or SVDquartets).

In practice, a balanced workflow might look like this:

  1. Model selection – employ ModelFinder (IQ‑Tree) or PartitionFinder to choose the best‑fit substitution scheme for each partition.
  2. Tree inference – run a rapid ML search (IQ‑Tree or RAxML‑NG) with UFBoot2 and SH‑aLRT enabled.
  3. Bayesian cross‑check – if computational resources allow, run a modest MrBayes or BEAST analysis to obtain posterior probabilities and, for BEAST, divergence‑time estimates.
  4. Gene‑tree concordance – compute gCF/sCF in IQ‑Tree using a set of per‑gene alignments or site‑wise likelihoods.
  5. Diagnostic checks – verify MCMC convergence (ESS > 200) for Bayesian runs, inspect bootstrap convergence plots, and examine alternative topologies via the approximately unbiased (AU) test if needed.
  6. Report – present the consensus tree with BS, PP, SH‑aLRT, gCF, and sCF values on the branches, highlighting any nodes where metrics disagree and discussing possible biological or methodological reasons.

By integrating multiple, complementary support measures, researchers can move beyond a single “bootstrap number” and obtain a nuanced view of phylogenetic reliability. As computational power grows and models become more sophisticated—incorporating heterotachy, mixture models, and genome‑scale coalescent frameworks—the distinction between gene tree discordance and true species relationships will become clearer. At the end of the day, rigorous model testing, thorough search strategies, and transparent reporting of support values remain the cornerstones of trustworthy phylogenetic inference It's one of those things that adds up..

Just Finished

Dropped Recently

Related Corners

More to Discover

Thank you for reading about How Do You Make A Phylogenetic Tree. We hope the information has been useful. Feel free to contact us if you have any questions. See you next time — don't forget to bookmark!
⌂ Back to Home