Skip to content
naulon

No retraction, correction or concern found when last checked on Oct 19, 2026.

Augur: a bioinformatics toolkit for phylogenetic analyses of human pathogens

John Huddleston, James Hadfield, Thomas Sibley and 7 more

Journal of Open Source Software · 2021 · CC BY

doi:10.21105/joss.02906

Abstract

The analysis of human pathogens requires a diverse collection of bioinformatics tools. These tools include standard genomic and phylogenetic software and custom software developed to handle the relatively numerous and short genomes of viruses and bacteria. Researchers increasingly depend on the outputs of these tools to infer transmission dynamics of human diseases and make actionable recommendations to public health officials (Black et al., 2020; Gardy et al., 2015). In order to enable real-time analyses of pathogen evolution, bioinformatics tools must scale rapidly with the number of samples and be flexible enough to adapt to a variety of questions and organisms. To meet these needs, we developed Augur, a bioinformatics toolkit designed for phylogenetic analyses of human pathogens.

Full text

From PubMed Central, U.S. National Library of Medicine, as current on Oct 19, 2026. Paragraph numbers are ours, so an answer can point at one.

Augur originally existed as an internal component of the nextflu and Nextstrain applications. As a component of nextflu, Augur consisted of a single monolithic Python script that performed most operations in memory. This script prepared a subset of seasonal influenza sequences and metadata and then processed those data to produce an annotated phylogeny for visualization in the nextflu web application. When Nextstrain replaced nextflu and expanded to support multiple viral and bacterial pathogens, each pathogen received its own copy of the original script. The resulting redundancy of these large scripts complicated efforts to debug analyses, add new features for all pathogens, and add support for new pathogens. Critically, this software architecture led to long-lived, divergent branches of untested code in version control that Nextstrain team members could not confidently merge without potentially breaking existing analyses.

Implementation

To address these issues, we refactored the original Augur scripts into a toolkit of individual subcommands wrapped by a single command line executable, augur. With this approach, we followed the pattern established by samtools and bcftools where subcommands perform single, tightly-scoped tasks (e.g., “view,” “sort,” “merge,” etc.) that can be chained together in bioinformatics pipelines. We migrated or rewrote the existing functionality of the original Augur scripts into appropriate corresponding Augur subcommands. To enable interoperability with existing bioinformatics tools, we designed subcommands to accept inputs and produce outputs in standard bioinformatics file formats wherever possible. For example, we represented all raw sequence data in FASTA format, alignments in either FASTA or VCF format, and phylogenies in Newick format. To handle the common case where a standard file format could not represent some or all of the outputs produced by an Augur command, we implemented a lightweight JSON schema to store the remaining data. The “node data” JSON format represents one such Augur-specific file format that supports arbitrary annotations of phylogenies indexed by the name assigned to internal nodes or tips. To provide a standard interface for our own analyses, we also designed several Augur subcommands to wrap existing bioinformatics tools including augur align (mafft) and augur tree (FastTree, RAxML, and IQ-TREE). Many commands including augur refine, traits and ancestral make extensive use of TreeTime to provide time-scaled phylogenetic trees or further annotate the phylogeny.

By implementing the core components of Augur as a command line tool, we were able to rewrite our existing pathogen analyses as straightforward bioinformatics workflows using existing workflow management software like Snakemake. Most pathogen workflows begin with user-curated sequences in a FASTA file (e.g., sequences.fas ta) and metadata describing each sequence in a tab-delimited text file (e.g., metadata. tsv). Users can apply a series of Augur commands and other standard bioinformatics tools to these files to create annotated phylogenies that can be viewed in Auspice, the web application that serves Nextstrain (Figure 1). This approach allows users to leverage the distributed computing abilities of workflow managers to run multiple steps of the workflow in parallel and also run individual commands that support multiprocessing in parallel. Further, the Augur modules can be easily recombined both with each other and with user-generated scripts to flexibly address the differing questions and restrictions posed by a variety of human pathogens.

The modular Augur interface has enabled phylogenetic and genomic epidemiological analyses by academic researchers, public health laboratories, and private companies. Most recently, these tools have supported the real-time tracking of SARS-CoV-2 evolution at global and local scales. This success has attracted contributions from the open source community that have allowed us to improve Augur’s functionality, documentation, and test coverage. To facilitate Augur’s continued use as part of wider bioinformatics pipelines in public health, we have committed to work with and contribute to open data standards such as PHA4GE and follow recommendations for open pathogen genomic analyses. Augur can be installed from PyPI (nextstrain-augur) and Bioconda (augur). See the full documentation for more details about how to use or contribute to development of Augur.

References 16

  1. 1.
  2. 2.
  3. 3.

    Black A, MacCannell DR, Sibley TR, & Bedford T (2020 ). Ten recommendations for supporting open pathogen genomic analysis in public health. Nature Medicine, 26(6), 832–841.

    Not in our library10.1038/s41591-020-0935-z

  4. 4.

    Gardy J, Loman NJ, & Rambaut A (2015 ). Real-time digital pathogen surveillance — the time is now. Genome Biology, 16, 155.

    Not in our library10.1186/s13059-015-0726-x

  5. 5.

    Griffiths EJ, Timme RE, Page AJ, Alikhan N-F, Fornika D, Maguire F, Mendes CI, Tausch SH, Black A, Connor TR, Tyson GH, Aanensen DM, Alcock B, Campos J, Christoffels A, da Silva AG, Hodcroft E, Hsiao WWL, Katz LS, … MacCannell DR (2020 ). The PHA4GE SARS-CoV-2 Contextual Data Specification for Open Genomic Epidemiology.

    Not in our library10.20944/preprints202008.0220.v1

  6. 6.

    Hadfield J, Megill C, Bell SM, Huddleston J, Potter B, Callender C, Sagulenko P, Bedford T, & Neher RA (2018 ). Nextstrain: Real-time tracking of pathogen evolution. Bioinformatics, bty407.

    Not in our library10.1093/bioinformatics/bty407

  7. 7.

    Katoh K, Misawa K, Kuma K, & Miyata T (2002 ). MAFFT: a novel method for rapid multiple sequence alignment based on fast Fourier transform. Nucleic Acids Research, 30(14), 3059–3066.

    Not in our library10.1093/nar/gkf436

  8. 8.

    Köster J, & Rahmann S (2012 ). Snakemake—a scalable bioinformatics workflow engine. Bioinformatics, 28(19), 2520–2522.

    Not in our library10.1093/bioinformatics/bts480

  9. 9.

    Li H (2011 ). A statistical framework for SNP calling, mutation discovery, association mapping and population genetical parameter estimation from sequencing data. Bioinformatics, 27(21), 2987–2993.

    Not in our library10.1093/bioinformatics/btr509

  10. 10.

    Li H, Handsaker B, Wysoker A, Fennell T, Ruan J, Homer N, Marth G, Abecasis G, Durbin R, & Subgroup, 1000. G. P. D. P. (2009 ). The Sequence Alignment/Map format and SAMtools. Bioinformatics, 25(16), 2078–2079.

    Not in our library10.1093/bioinformatics/btp352

  11. 11.
  12. 12.

    Nguyen L-T, Schmidt HA, von Haeseler A, & Minh BQ (2014 ). IQ-TREE: A Fast and Effective Stochastic Algorithm for Estimating Maximum-Likelihood Phylogenies. Molecular Biology and Evolution, 32(1), 268–274.

    Not in our library10.1093/molbev/msu300

  13. 13.
  14. 14.
  15. 15.

    Stamatakis A (2014 ). RAxML version 8: a tool for phylogenetic analysis and post-analysis of large phylogenies. Bioinformatics, 30(9), 1312–1313.

    Not in our library10.1093/bioinformatics/btu033

  16. 16.

    The Nextstrain Team. (2020 ). Nextstrain/ncov. https://github.com/nextstrain/ncov

    Not in our library

Cited by papers we hold 2

Reads

Read by people on this page

None yet.

Checked or read by AI through naulon

None yet.

A person counts once a day per paper. We keep no cookie and no address: a reader is a hash that changes every day. Any month under five reads shows no number.

Are you an author?

Is this your paper?

Claim it to add your note and be paid when agents cite it. Free.