Learn R Programming

BAMMtools (version 2.1.12)

Analysis and Visualization of Macroevolutionary Dynamics on Phylogenetic Trees

Description

Provides functions for analyzing and visualizing complex macroevolutionary dynamics on phylogenetic trees. It is a companion package to the command line program BAMM (Bayesian Analysis of Macroevolutionary Mixtures) and is entirely oriented towards the analysis, interpretation, and visualization of evolutionary rates. Functionality includes visualization of rate shifts on phylogenies, estimating evolutionary rates through time, comparing posterior distributions of evolutionary rates across clades, comparing diversification models using Bayes factors, and more.

Copy Link

Version

Install

install.packages('BAMMtools')

Monthly Downloads

1,989

Version

2.1.12

License

GPL (>= 2)

Maintainer

Last Published

September 12th, 2024

Functions in BAMMtools (2.1.12)

distinctShiftConfigurations

Identify distinct rate shift configurations
getJenksBreaks

Jenks natural breaks classification
getEventData

Create bammdata object from MCMC output
getBranchShiftPriors

Compute prior odds of a rate shift on each branch of a phylogeny from BAMM output
getCladeRates

Compute clade-specific mean rates
getCohortMatrix

Compute the pairwise correlation in rate regimes between all tips in a bammdata object
dtRates

Calculate macroevolutionary rate changes on a phylogeny from BAMM output
getTipRates

Compute tip-specific macroevolutionary rates from bammdata object
getShiftNodesFromIndex

Identify nodes associated with rate shifts from bammdata object
getMeanBranchLengthTree

Compute phylogeny with branch lengths equal to corresponding macroevolutionary rate estimates
marginalOddsRatioBranches

Ratio of (marginal) posterior-to-prior probabilities on individual branches
credibleShiftSet

Credible set of macroevolutionary rate shift configurations from BAMM results
getMarginalBranchRateMatrix

Compute mean branch rates for bammdata object
getmrca

Find most recent common ancestors
samplingProbs

Creates clade-specific sampling fractions
plot.credibleshiftset

Plot credible set of rate shift configurations from BAMM analysis
plot.bammshifts

Plot distinct rate shift configurations on a phylogeny
speciesByRatesMatrix

Compute species-specific rate through time trajectories
subtreeBAMM

Pulls out a subtree from bammdata object
generateControlFile

Generate control file for BAMM
testTimeVariableBranches

Evaluate evidence for temporal rate variation across tree
stepBF

Identify the optimal number of shifts using Bayes factors
subsetEventData

Subset a bammdata object
getBestShiftConfiguration

Get the best (sampled) rate shift configuration from a BAMM analysis
traitDependentBAMM

STRAPP: STructured Rate Permutations on Phylogenies
setBAMMpriors

Set BAMM Priors
plotPrior

Plot the prior and posterior distribution of shifts
plot.bammdata

Plot BAMM-estimated macroevolutionary rates on a phylogeny
maximumShiftCredibility

Estimate maximum shift credibility configuration
plotRateThroughTime

Plot rates through time
transparentColor

Define colors with transparency
getRateThroughTimeMatrix

Generate rate-through-time matrix from bammdata object
richColors

Rich color palette
ratesHistogram

Histogram of BAMM rate frequencies
writeEventData

Write a bammdata object to disk
summary.bammdata

Summary of rate shift results from BAMM analysis
summary.credibleshiftset

Summary of credible set of shift configurations from a BAMM analysis
BAMMtools

BAMMtools
BAMMlikelihood

Calculate BAMM likelihood
addBAMMlegend

Add a color legend to a phylo-rate plot
cohorts

Visualize macroevolutionary cohorts
assignColorBreaks

Map macroevolutionary rates to colors
BAMMtools-data

BAMMtools datasets
cumulativeShiftProbsTree

Branch-specific rate shift probabilities
addBAMMshifts

Add BAMM-inferred rate shifts to a phylogeny plot
computeBayesFactors

Compute Bayes Factors