Learn R Programming

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

BAMMtools (version 2.1.1)

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

Version

2.1.1

License

GPL (>= 2)

Maintainer

Pascal Title

Last Published

March 3rd, 2016

Functions in BAMMtools (2.1.1)

getRateThroughTimeMatrix

Generate rate-through-time matrix from bammdata object
BAMMtools-package

BAMMtools
BAMMtools-internal

Internal BAMMtools functions
getMeanBranchLengthTree

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

Create bammdata object from MCMC output
cohorts

Visualize macroevolutionary cohorts
BAMMlikelihood

Calculate BAMM likelihood
addBAMMlegend

Add a color legend to a phylo-rate plot
getShiftNodesFromIndex

Identify nodes associated with rate shifts from 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
getmrca

Find most recent common ancestors
subsetEventData

Subset a bammdata object
getCladeRates

Compute clade-specific mean rates
plot.credibleshiftset

Plot credible set of rate shift configurations from BAMM analysis
traitDependentBAMM

STRAPP: STructured Rate Permutations on Phylogenies
setBAMMpriors

setBAMMpriors
generateControlFile

Generate control file for BAMM
getBestShiftConfiguration

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

Add BAMM-inferred rate shifts to a phylogeny plot
dtRates

Calculate macroevolutionary rate changes on a phylogeny from BAMM output
samplingProbs

Creates clade-specific sampling fractions
getJenksBreaks

Jenks natural breaks classification
subtreeBAMM

Pulls out a subtree from bammdata object
getTipRates

Compute tip-specific macroevolutionary rates from bammdata object
credibleShiftSet

Credible set of macroevolutionary rate shift configurations from BAMM results
marginalOddsRatioBranches

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

Define colors with transparency
summary.credibleshiftset

Summary of credible set of shift configurations from a BAMM analysis.
speciesByRatesMatrix

Compute species-specific rate through time trajectories
maximumShiftCredibility

Estimate maximum shift credibility configuration
ShiftProbsTree

Branch-specific rate shift probabilities
plotPrior

Plot the prior and posterior distribution of shifts
computeBayesFactors

computeBayesFactors
assignColorBreaks

Map macroevolutionary rates to colors
getMarginalBranchRateMatrix

compute mean branch rates for bammdata object
writeEventData

Write a bammdata object to disk
BAMMtools-data

BAMMtools datasets
ratesHistogram

Histogram of BAMM rate frequencies
summary.bammdata

Summary of rate shift results from BAMM analysis.
plot.bammshifts

Plot distinct rate shift configurations on a phylogeny
plotRateThroughTime

Plot rates through time
getCohortMatrix

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

Evaluate evidence for temporal rate variation across tree
plot.bammdata

Plot BAMM-estimated macroevolutionary rates on a phylogeny