Description Usage Arguments Value Author(s) Examples
Parses a BEAST2 .xml.state output file to get only the operators acceptances
1 2 | parse_beast_state_operators(filename = system.file("extdata",
"beast2_example_output.xml.state", package = "RBeast"))
|
filename |
name of the BEAST2 .xml.state output file |
data frame with all the operators' success rates
Richel J.C. Bilderbeek
1 2 3 4 5 6 7 8 9 10 11 | xml_state_filename <- system.file(
"extdata", "beast2_example_output.xml.state", package = "RBeast"
)
estimates <- parse_beast_state_operators(filename = xml_state_filename)
expected_names <- c("operator", "p", "accept", "reject", "acceptFC",
"rejectFC", "rejectIv", "rejectOp")
expected_operator <- c("treeScaler.t", "treeRootScaler.t",
"UniformOperator.t", "SubtreeSlide.t", "narrow.t", "wide.t",
"WilsonBalding.t", "BirthRateScaler.t", "DeathRateScaler.t")
testit::assert(names(estimates) == expected_names)
#testit::assert(estimates$operator == expected_operators)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.