Learn R Programming

CRABS: Congruent Rate Analysis in Birth-death Scenarios

A package for investigating and visualizing the congruence class (Louca & Pennell 2020) of a phylogenetic birth-death model. Previously, this package went by the acronym ACDC.

Installation:

The stable version can be installed from CRAN:

install.packages("CRABS")

The developmental version can be installed from the github repository. The package devtools makes this convenient:

install.packages("devtools")
library(devtools)
install_github("afmagee/CRABS")

Documentation

There is documentation for each function in R (type ?CRABS in the R-console), as well as a long-form vignette with an example workflow.

References

  • Louca, S., & Pennell, M. W. (2020). Extant timetrees are consistent with a myriad of diversification histories. Nature, 580(7804), 502-505.
  • Höhna, S., Kopperud, B. T., & Magee, A. F. (2022). CRABS: Congruent rate analyses in birth–death scenarios. Methods in Ecology and Evolution, 13, 2709– 2718. https://doi.org/10.1111/2041-210X.13997
  • Kopperud, B. T., Magee, A. F., & Höhna, S. (2023). Rapidly Changing Speciation and Extinction Rates Can Be Inferred in Spite of Nonidentifiability. Proceedings of the National Academy of Sciences 120 (7): e2208851120. https://doi.org/10.1073/pnas.2208851120.
  • Andreoletti J. & Morlon, H. (2023). Exploring congruent diversification histories with flexibility and parsimony. Methods in Ecology and Evolution. https://doi.org/10.1111/2041-210X.14240.

Copy Link

Version

Install

install.packages('CRABS')

Monthly Downloads

197

Version

1.2.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Bjørn Tore Kopperud

Last Published

October 24th, 2023

Functions in CRABS (1.2.0)

sample.basic.models.joint

Jointly samples speciation and extinction trajectories through time, with noise.
sample.congruence.class

Stochastic exploration of congruent models.
read.RevBayes

read RevBayes log file
sample.congruence.class.posterior

Stochastic exploration of congruent models for all samples in the posterior
summarize.trends

Summarize trends in the congruence class
summarize.posterior

Summarize trends in the posterior
sample.basic.models

Samples simple increase/decrease models through time with noise.
plot.CRABSset

Plots the rate functions
primates

Primates phylogenetic tree
sample.rates

Sample custom functions through time.
joint.congruent.models

Create a set of congruent models
create.model

Computes the congruent class, i.e., the pulled rates.
crabs.loglikelihood

Compute likelihood
congruent.models

Create a set of congruent models
full.plot.regularity.thresholds

Plots the rate functions after filtering them according to a given penalty and predefined thresholds.
CRABS-package

CRABS: Congruent Rate Analyses in Birth-death Scenarios
model2df

model2df
plot.CRABS

Plots the rate functions including the pulled rates.
get.hsmrf.global.scale

Global scale for HSMRF using linear interpolation of pre-computed values
print.CRABSposterior

Title
print.CRABS

Print method for CRABS object
print.CRABSsets

print.CRABSsets
print.CRABSset

Print method for CRABSset object
primates_ebd_log

Primates birth-death model
get.gmrf.global.scale

Global scale for GMRF using linear interpolation of pre-computed values
primates_ebd

RevBayes Primates birth-death model
primates_ebd_tess

TESS Primates birth-death model
primates_ebd_treepar

TreePar Primates birth-death model