Lagrange-NG: The next generation of Lagrange
Ben BettisworthiD, Stephen A. SmithiD, Alexandros StamatakisiD
Abstract
AO_SCPLOWBSTRACTC_SCPLOWComputing ancestral ranges via the Dispersion Extinction and Cladogensis (DEC) model of biogeography is characterized by an exponential number of states relative to the number of regions considered. This is because the DEC model requires computing a large matrix exponential, which typically accounts for up to 80% of overall runtime. Therefore, the kinds of biogeographical analyses that can be conducted under the DEC model are limited by the number of regions under consideration. In this work, we present a completely redesigned efficient version of the popular tool Lagrange which is up to 2.5 times faster, which we call Lagrange-NG (Next Generation). We further reduce time-to-completion by introducing a multi-grained parallelization approach, achieving a total parallel speedup of 8.5 over Lagrange on a machine with 8 cores. In order to validate the correctness of Lagrange-NG, we also introduce a novel metric on range distributions for trees in order to assess the difference between any two range inferences. Finally, Lagrange-NG exhibits substantially higher adherence to coding quality standards. It improves a respective software quality indicator as implemented in the SoftWipe tool from average (5.5; Lagrange) to high (7.8; Lagrange-NG). Lagrange-NG is freely available under GPL2.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 3
- FWCI
- 0.27
- Field percentile
- 41th percentile
- Research Focus
- Approach
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
- An Extended Maximum Likelihood Inference of Geographic Range Evolution by Dispersal, Local Extinction and Cladogenesis
Champak R. Beeravolu, Fabien L. Condamine·bioRxiv·Feb 4, 2016
- Non-null Effects of the Null Range in Biogeographic Models: Exploring Parameter Estimation in the DEC Model
Kathryn A. Massana, Jeremy M. Beaulieu, … Brian C. O’Meara·bioRxiv·Sep 16, 2015
- bigrig: A range simulator for the DEC model
Ben Bettisworth, Alexandros Stamatakis·bioRxiv·Nov 24, 2025
- BayesForge: A Bayesian Inference library for Python, R, and Julia
Sebastian Sosa, Mary Brooke McElreath, Cody Ross·bioRxiv·Aug 18, 2026
- Benchmarking BEAGLE to find optimal parameters for BEAST X
Samuel Fosse, Sebastián Duchêne, Camila Duitama González·bioRxiv·Mar 12, 2026
- larch: mapping the parsimony-optimal landscape of trees for directed exploration
Mary Barker, Ognian Milanov, … Frederick A. Matsen IV·bioRxiv·Oct 29, 2025