Revticulate: An R framework for interaction with RevBayes

This is a Preprint and has not been peer reviewed. The published version of this Preprint is available: https://doi.org/10.1111/2041-210X.13852. This is version 2 of this Preprint.

Add a Comment

You must log in to post a comment.


Comments

There are no comments or no comments have been made public for this article.

Downloads

Download Preprint

Supplementary Files
Authors

Caleb P. Charpentier, April Marie Wright

Abstract

1: Phylogenetic methods are increasingly complex. Researchers need to make many choices about how to model different aspects of the data appropriately. It is increasingly common to deploy hierarchical Bayesian models in which different data types may be described by different processes. This necessitates tools to help users understand model assumptions more clearly.

2: We describe the package \code{Revticulate}, which provides an R-based interface to the software RevBayes. RevBayes is a Bayesian phylogenetics program that implements an R-like computing language, but does not interface with R itself. Revticulate was designed to allow communication between an R session, and all of its associated capabilities, such as plotting and simulation, and a RevBayes session.

3: Revticulate can be used to copy objects from RevBayes into R. We provide several usage examples demonstrating how objects, such as such as random variables drawn from probability distributions and phylogenetic trees, can be generated in RevBayes. We then show how these objects can be used with Rs phylogenetic ecosystem to plot a phylogenetic tree, or with base R functions to simulate the behavior of a particular probability.

4: Revticulate is a broadly useful software. Revticulate can be used alongside popular document preparation packages, such as Knitr and pkgdown to generate attractive reports, tutorials, and websites. This means that researchers who are looking to communicate their work in RevBayes can do that very easily using Revticulate, enabling rapid generation of reproducible research outputs.

DOI

https://doi.org/10.32942/osf.io/rsf85

Subjects

Ecology and Evolutionary Biology, Life Sciences, Population Biology

Keywords

Bayesian phylogenetics, phylogeny, RevBayes, R packages

Dates

Published: 2021-10-03 00:36

Last Updated: 2022-02-21 19:31

Older Versions
License

CC-By Attribution-ShareAlike 4.0 International