BEAST2 stores the rates for each clock in a separate file. All trees need to be loaded using treeio::read.beast.

## Usage

get_clockrate_table_BEAST2(..., summary = "median", drop_dummy = NULL)

## Arguments

...

treedata objects containing the summary trees with associated data on the rates for each separate clock.

summary

summary metric used for the rates. Currently supported: "mean" or "median", default "median".

drop_dummy

if not NULL, will drop the dummy extant tip with the given label from the BEAST2 summary trees prior to extracting the clock rates (when present). Default is NULL.

## Value

A data frame with a column containing the node identifier (node) and one column containing the clock rates for each tree provided, in the same order as the trees.

get_clockrate_table_MrBayes() for the equivalent function for MrBayes output files.

clockrate_summary() for summarizing and examining properties of the resulting rate table. Note that clade membership for each node must be customized (manually added) before these functions can be used, since this is tree and dataset dependent.

## Examples

#Import all clock summary trees produced by BEAST2 from your local directory
if (FALSE) {