bifrost : an R package for scalable inference of phylogenetic shifts in multivariate evolutionary dynamics
Authors:
- Jacob S. BervJBJacob S. Berv
- Nathan FoxNFNathan Fox
- Matt J. ThorstensenMTMatt J. Thorstensen
- Henry Lloyd-LaneyHLHenry Lloyd-Laney
- Emily M. TroyerETEmily M. Troyer
- Rafael A. Rivero-VegaRRRafael A. Rivero-Vega
- Stephen A. SmithSSStephen A. Smith
- Matt FriedmanMFMatt Friedman
- David F. FouheyDFDavid F. Fouhey
- Brian C. WeeksBWBrian C. Weeks
Preprint
Abstract
High-dimensional comparative datasets, including geometric morphometric landmarks, functional traits, and other large trait datasets, are increasingly common in biology. When these datasets include a large number of traits relative to the number of taxa, they pose significant challenges for phylogenetic comparative analysis. In addition, evolutionary dynamics are often heterogeneous across phylogenies, challenging researchers to develop tools that can localize and account for such variation when investigating hypotheses of evolutionary change. We present bifrost , an R package for detecting and characterizing shifts in multivariate trait evolution across phylogenetic trees. bifrost implements a stepwise greedy search over alternative macroevolutionary regime configurations on a phylogeny. Candidate shifts are proposed and assessed at internal nodes, accelerated with parallel model fitting where possible, and aggregated sequentially when they exceed a user-defined information-criterion acceptance threshold. The underlying model is a scalar-rate multivariate Brownian motion process fit by generalized least squares using mvMORPH::mvgls [1]. Our framework also provides support estimates for individual shifts using information-criterion weights. We illustrate the workflow using a fossil-tip-dated phylogeny and high-dimensional landmark data for early bony fish jaws (32,508 scalar coordinate values), and discuss tuning, outputs, and limitations. bifrost extends existing phylogenetic comparative frameworks for evolutionary analysis and provides a scalable pipeline for exploring the phylogenetic natural history of large multivariate datasets.Keywords
This publication has 65 references indexed in Scilit:
- Macroevolutionary role reversals in the earliest radiation of bony fishesCurrent Biology, 2025
- Skeletal trait measurements for thousands of bird speciesScientific Data, 2025
- Trait macroevolution in the presence of covariatesNature Communications, 2025
- Transitions Into Freezing Environments Linked With Shifts in Phylogenetic Integration Between Vitaceae Leaf TraitsEcology and Evolution, 2024
- From leaves to labels: Building modular machine learning networks for rapid herbarium specimen analysis with LeafMachine2Applications in Plant Sciences, 2023
- General statistical model shows that macroevolutionary patterns and processes are consistent with Darwinian gradualismNature Communications, 2022
- Automatic generation of evolutionary hypotheses using mixed Gaussian phylogenetic modelsProceedings of the National Academy of Sciences, 2019
- Deep learningNature, 2015
- A phylogenetic comparative method for studying multivariate adaptationJournal of Theoretical Biology, 2012
- Linear Discrimination, Ordination, and the Visualization of Selection Gradients in Modern MorphometricsEvolutionary Biology, 2011