2026-11-19

Branch lengths representing mutations per-gene

James HadfieldThe Nextstrain TeamJohn Huddleston

Phylogenetic trees in Auspice have always had the unique ability to interactively transition between showing branch lengths of "div" (divergence) or "time", with temporal branch lengths typically inferred using TimeTree 1. We now allow dynamic rescaling of branch lengths based on counting mutations in any selected CDS (gene), or counting nucleotides across the entire genome.

To demonstrate this we'll use our ongoing analysis of the cattle-flu (A/H5N1) outbreak in North America. This is a genome build, where we've concatenated all 8 influenza segments together to improve the phylogenetic resolution, leveraging GenoFLU constellations to select non-reassorting samples 2. By default branch lengths represent , however you can now also switch to , as well as amino-acid mutations for , , , , , , , , and

Click the above buttons to update the figure with those branch lengths

Figure 1. Nextstrain's full-genome cattle-flu dataset Interactive figure of avian-flu/h5n1-cattle-outbreak/genome as of 2026-11-16 with 5,673 North American Influenza A/H5N1 B3.13 samples. Segments have been concatenated together to increase resolution. Colours represent inferred State, with opacity used to encode our confidence in these reconstructions (hover over tips/branches for more details).

Seasonal-flu scatter pre-post pandemic

A 12-year analysis of seasonal-flu A/H3N2's HA segment shows interesting pre- and post-pandemic dynamics in the overall evolution of the HA1 gene subunit (329 amino acids long). By filtering the samples to and we see an increased rate of AA evolution, with 2.1 vs 3.3 amino acid changes per year. (.)

Figure 2. Nextstrain's 12y H3N2/HA phylogeny as of 2026-11-16. Scatterplot shows inferred sampling time against accumulated count of HA1 mutations. Colour represents clade and the legend can be toggled via the arrow in the top left.

References & Footnotes

  1. Sagulenko P, Puller V, Neher RA. TreeTime: Maximum-likelihood phylodynamic analysis. Virus Evolution. 2018;4:vex042.
  2. See the avian-flu README for more details on how we select B3.13 strains.

All source code is freely available under the terms of the GNU Affero General Public License. Screenshots may be used under a CC-BY-4.0 license and attribution to nextstrain.org must be provided.

This work is made possible by the open sharing of genetic data by research groups from all over the world. We gratefully acknowledge their contributions. Special thanks to Kristian Andersen, Josh Batson, David Blazes, Jesse Bloom, Peter Bogner, Anderson Brito, Matt Cotten, Ana Crisan, Tulio de Oliveira, Gytis Dudas, Vivien Dugan, Karl Erlandson, Nuno Faria, Jennifer Gardy, Nate Grubaugh, Becky Kondor, Dylan George, Ian Goodfellow, Betz Halloran, Christian Happi, Jeff Joy, Paul Kellam, Philippe Lemey, Nick Loman, Duncan MacCannell, Erick Matsen, Sebastian Maurer-Stroh, Placide Mbala, Danny Park, Oliver Pybus, Andrew Rambaut, Colin Russell, Pardis Sabeti, Katherine Siddle, Kristof Theys, Dave Wentworth, Shirlee Wohl and Cecile Viboud for comments, suggestions and data sharing.

Nextstrain is supported by

logologologologologologologo