Description Usage Arguments Value Author(s) Examples
Extract the BEAST2 posterior phyogenies from a file
1 |
file |
A loaded parameter file |
all posteriors
Richel Bilderbeek
1 2 3 4 5 6 7 | filename <- wiritttes::find_path("toy_example_1.RDa")
file <- wiritttes::read_file(filename)
posteriors <- wiritttes::get_posteriors(file)
testit::assert(length(posteriors) == 2)
testit::assert("trees" %in% names(posteriors[[1]][[1]]))
testit::assert("estimates" %in% names(posteriors[[1]][[1]]))
testit::assert("likelihood" %in% names(posteriors[[1]][[1]]$estimates))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.