Skip to content
Tech Interview Prep
Technical interview guide

Phylogenetics & Evolutionary Analysis

Reconstructing evolutionary relationships from sequence data: tree-building methods, substitution models, and molecular clocks.

Minutes to read
3
Practice MCQs
25
Interview Q&A
25
Edition
v4
Editorial status
Reviewed

Scope: MAFFT 7; current IQ-TREE, RAxML-NG, MrBayes and BEAST documentation; ModelFinder, ultrafast bootstrap, multispecies coalescent and recombination source literature reviewed 2026-09-04.

Overview

Curated: · Written: · Reviewed:

Phylogenetics & Evolutionary Analysis

In one line

A phylogeny is a model-conditional estimate of ancestry from homologous sequences, and its support is only as meaningful as the alignment, model, search and support procedure behind it. Reach for it when the question is evolutionary relationship and you can establish homology and orthology first.

Key definitions

  • Positional homology: each alignment column asserts that its residues descend from one ancestral position.
  • Orthology / paralogy: orthologs diverge at speciation; paralogs diverge at duplication.
  • Model-conditional estimate: the tree is the optimum or posterior mode of a scoring function applied to characters judged homologous.
  • Site pattern: a distinct column type after compression; likelihood cost scales with patterns, not columns.
  • Gene tree vs species tree: discordance arises from ILS, duplication and loss, horizontal transfer and recombination.
  • Branch length: expected substitutions per site, not time, unless a clock and calibration convert it.

Formulas and complexity

Nunrooted(n)=(2n−5)!!N_{\text{unrooted}}(n) = (2n-5)!!

For n = 10 this is 2,027,025 topologies, so exhaustive search is impractical by about 12 taxa.

Pruning cost=O(n⋅k2⋅p)\text{Pruning cost} = O(n \cdot k^2 \cdot p)

For n tips, k states and p distinct site patterns under a general reversible model.

How it works

Scoring is Felsenstein's post-order pruning: each node carries conditional likelihoods per site, combined from its children. Search uses NNI, SPR or TBR moves from several starts. Support comes from resampling (bootstrap) or posterior sampling (MCMC).

Taxa and orthology check Alignment and trimming Partitions and substitution model Tree search from multiple starts Rooting Support: bootstrap or posterior Interpretation and sensitivity checks

When to use and when not to

methodstrengthfails when
Neighbor joiningseconds on thousands of taxarate variation; site patterns discarded
Parsimonyno explicit model; fastlong-branch attraction; unequal rates
Maximum likelihooddefault for moderate data; model comparisonmisspecified model; local optima
Bayesian MCMCparameter uncertainty and stated priorsunconverged chains; prior-dominated posterior
Coalescent species treemany loci with ILSgene-tree error; paralogy; intralocus recombination
Network / ARGreticulate historya tree is adequate

Use a single bifurcating tree only after homology, orthology and recombination have been checked. Report a single-locus tree as a gene tree.

Traps interviewers probe

  1. Reading bootstrap as probability. Bootstrap support is the recovery rate of a split under column resampling, not the chance the clade is true. Name the method: a 95% ultrafast bootstrap is not a 95% standard bootstrap. Fix: state the procedure, replicate count and whether the split survives alignment and model changes.
  2. Treating a column as homologous because it is mostly present. A column of 58 hydrophobic residues and 2 gaps still asserts positional homology, and gaps treated as missing data do not remove that claim. Fix: inspect columns, check that the gap pattern is not hiding a misalignment, and test sensitivity to alignment.
  3. Choosing the trimmed tree because its support is higher. A similarity filter tuned toward a topology creates confident bias. Fix: predeclare criteria, keep the untrimmed input, run both, and report unstable splits.
  4. Trusting parsimony when one branch is much longer. A fast-evolving taxon can attach to a distant outgroup. Fix: add intermediate taxa, check branch lengths, and move to ML with a better-fitting or site-heterogeneous model.
  5. Quoting concatenated support as agreement. Concatenation averages conflicting loci and can report strong support for the average. Fix: report per-locus trees and gene and site concordance factors.

Interview tips

Opening: state the object first. "This is a model-conditional estimate of ancestry; I'd check homology, the model and the root before I trust the support."

Expected follow-ups:

  • How would you test for recombination? Screen with several detection methods, split by nonrecombining block, and consider a network.
  • When are relaxed clocks justified? When branch-rate variation is plausible and calibrations are uncertain; check with date randomization.
  • How do you tell ILS from duplication? Use many independent loci; reconcile gene trees against the species tree.
  • What happens if you drop trimming? Compare topology and support across both alignments.

30-second outline: Name the object (model-conditional tree). Name the upstream checks (orthology, alignment, partitions). Name the model and search, and say how you compared candidates. Name the support method and its meaning. Name one alternative history you tested (ILS, recombination, or contamination) and the splits you would flag as unstable.

Feedback on this overview

Log in free to save your progress and keep bookmarks and notes for a quick revision before your interview.