get_clockrate_table_BEAST2 | R Documentation |
BEAST2 stores the rates for each clock in a separate file. All trees need to be loaded using treeio::read.beast
.
get_clockrate_table_BEAST2(..., summary = "median", drop_dummy = NULL)
... |
|
summary |
summary metric used for the rates. Currently supported: |
drop_dummy |
if not |
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.
#Import all clock summary trees produced by BEAST2 from your local directory ## Not run: tree_clock1 <- treeio::read.beast("tree_file_clock1.tre") tree_clock2 <- treeio::read.beast("tree_file_clock2.tre") ## End(Not run) #Or use the example BEAST2 multiple clock trees that accompany EvoPhylo. data(tree_clock1) data(tree_clock2) # obtain the rate table from BEAST2 trees rate_table <- get_clockrate_table_BEAST2(tree_clock1, tree_clock2, summary = "mean")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.