parse_beast_state_operators {tracerer} | R Documentation |
Parses a BEAST2 .xml.state output file to get only the operators acceptances
parse_beast_state_operators( filename = get_tracerer_path("beast2_example_output.xml.state") )
filename |
name of the BEAST2 .xml.state output file |
data frame with all the operators' success rates
Richèl J.C. Bilderbeek
xml_state_filename <- get_tracerer_path("beast2_example_output.xml.state") 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)