Learn R Programming

⚠️There's a newer version (2.1.12) of this package.Take me there.

BAMMtools (version 2.1.7)

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,703

Version

2.1.7

License

GPL (>= 2)

Maintainer

Pascal Title

Last Published

December 5th, 2019

Functions in BAMMtools (2.1.7)

generateControlFile

Generate control file for BAMM
richColors

Rich color palette
ratesHistogram

Histogram of BAMM rate frequencies
maximumShiftCredibility

Estimate maximum shift credibility configuration
getEventData

Create bammdata object from MCMC output
credibleShiftSet

Credible set of macroevolutionary rate shift configurations from BAMM results
getMeanBranchLengthTree

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

Get the best (sampled) rate shift configuration from a BAMM analysis
plot.bammdata

Plot BAMM-estimated macroevolutionary rates on a phylogeny
getCohortMatrix

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

Identify distinct rate shift configurations
getBranchShiftPriors

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

Jenks natural breaks classification
getTipRates

Compute tip-specific macroevolutionary rates from bammdata object
getShiftNodesFromIndex

Identify nodes associated with rate shifts from bammdata object
setBAMMpriors

Set BAMM Priors
transparentColor

Define colors with transparency
writeEventData

Write a bammdata object to disk
getMarginalBranchRateMatrix

Compute mean branch rates for bammdata object
samplingProbs

Creates clade-specific sampling fractions
getCladeRates

Compute clade-specific mean rates
getRateThroughTimeMatrix

Generate rate-through-time matrix from bammdata object
speciesByRatesMatrix

Compute species-specific rate through time trajectories
plot.bammshifts

Plot distinct rate shift configurations on a phylogeny
testTimeVariableBranches

Evaluate evidence for temporal rate variation across tree
subsetEventData

Subset a bammdata object
subtreeBAMM

Pulls out a subtree from bammdata object
plot.credibleshiftset

Plot credible set of rate shift configurations from BAMM analysis
traitDependentBAMM

STRAPP: STructured Rate Permutations on Phylogenies
dtRates

Calculate macroevolutionary rate changes on a phylogeny from BAMM output
summary.bammdata

Summary of rate shift results from BAMM analysis
summary.credibleshiftset

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

Identify the optimal number of shifts using Bayes factors
marginalOddsRatioBranches

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

Plot the prior and posterior distribution of shifts
plotRateThroughTime

Plot rates through time
getmrca

Find most recent common ancestors
BAMMtools

BAMMtools
computeBayesFactors

Compute Bayes Factors
BAMMlikelihood

Calculate BAMM likelihood
assignColorBreaks

Map macroevolutionary rates to colors
addBAMMlegend

Add a color legend to a phylo-rate plot
cumulativeShiftProbsTree

Branch-specific rate shift probabilities
cohorts

Visualize macroevolutionary cohorts
BAMMtools-data

BAMMtools datasets
addBAMMshifts

Add BAMM-inferred rate shifts to a phylogeny plot