is_posterior {tracerer} | R Documentation |
Determines if the input is a BEAST2 posterior
is_posterior(x)
x |
the input |
TRUE if the input contains all information of a BEAST2 posterior. Returns FALSE otherwise.
Richèl J.C. Bilderbeek
trees_filename <- get_tracerer_path("beast2_example_output.trees") log_filename <- get_tracerer_path("beast2_example_output.log") posterior <- parse_beast_posterior( trees_filename = trees_filename, log_filename = log_filename ) testit::assert(is_posterior(posterior))