bioRxivBioinformaticsPreprint
baltic: the Backronymed Adaptable Lightweight Tree vIsualisation Code
Barney I. PotteriD, Karthik GangavarapuiD, Sidney M. BelliD, María Fernanda Torres JiméneziD, Gytis DudasiD
Abstract
For ten years, baltic (Backronymed Adaptable Lightweight Tree vIsualization Code) has been used to make annotated phylogeny figures in molecular epidemiology, including during the West African Ebola epidemic, the Zika epidemic in the Americas, and the SARS-CoV-2 pandemic, as well as other fields. At its core, baltic is a Python library used for the efficient parsing, traversal, manipulation, and visualisation of phylogenetic trees. It is a small library with few dependencies that reads tree formats common in phylodynamic analyses and gives the user leverage to interact with a lightweight tree data structure to produce publication-ready figures with matplotlib. We present baltic v1.0, its first formally released and documented version. baltic reads and writes BEAST Nexus, Newick, and Nextstrain/Auspice JSON, and can process large BEAST posterior tree files in parallel to extract user-defined posterior statistics. The same objects are used for tree manipulation and for plotting in a single script. New to this release: a set of rooting methods (midpoint rooting, rerooting on any branch, and root-to-tip regression); support for reticulate evolution, with reassortment and recombination edges; and composite figures that combine a tree with other data, such as Muller plots, skygrid plots, tanglegrams, and plots connecting trees to maps. The release includes a documentation site with an API reference, tutorials, and a matplotlib-style gallery of worked examples.
- Citations
- 0
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- FigTreeKit: A Python toolkit for programmatic FigTree styling, taxonomy-aware clade auditing, and phylogenetic tree rendering
Zichao Zeng, Yinzhao Wang·bioRxiv·Aug 28, 2026
- IcyTree: Rapid browser-based visualization for phylogenetic trees and networks
Timothy G. Vaughan·BioinformaticsPeer-reviewed·Mar 22, 2017
- TreeSwift: a massively scalable Python tree package
Niema Moshiri·SoftwareXPeer-reviewed·Jan 1, 2020
- DensiTree 2: Seeing Trees Through the Forest
Remco R. Bouckaert, Joseph Heled·bioRxiv·Dec 8, 2014
- babette: BEAUti 2, BEAST2 and Tracer for R
Richèl J.C. Bilderbeek, Rampal S. Etienne·Methods in Ecology and EvolutionPeer-reviewed·May 27, 2018
- Delphy: scalable, near-real-time Bayesian phylogenetics for outbreaks
Patrick Varilly, Mark Schifferli, … Pardis Christine Sabeti·bioRxiv·Mar 25, 2025