Description Usage Arguments Value Author(s) Examples
Extract a list of phylogenies from a BEAST2 posterior file
1 | read_beast2_trees(filename)
|
filename |
name of the BEAST2 posterior filename, usually ends with '.trees' |
a list of phylogenies of type 'phylo'
Richel J.C. Bilderbeek
1 2 3 4 5 6 7 | trees_file <- system.file(
"extdata", "read_beast2_trees_example.trees", package = "RBeast"
)
testit::assert(file.exists(trees_file))
posterior <- read_beast2_trees(trees_file)
testit::assert(length(posterior) == 11)
testit::assert(class(posterior[[1]]) == "phylo")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.