Description Usage Arguments Value Author(s) Examples
Extract a list of phylogenies from a BEAST2 posterior file
1 | beast2out.read.trees(file, opt.rescale.edge.length = 1, opt.burnin = 0)
|
file |
name of the BEAST2 posterior filename, usually ends with '.trees' |
opt.rescale.edge.length |
Rescaling factor of the phylogenies, a value of 1.0 denotes that the original edge lengths are maintained |
opt.burnin |
how many phylogenies to discard, an value of will keep all trees |
a list of phylogenies of type 'phylo'
Oliver Ratmann
1 2 3 4 5 | trees_file <- "vignettes/example.trees"
testit::assert(file.exists(trees_file))
posterior <- beast2out.read.trees(trees_file)
testit::assert(length(posterior) == 10)
testit::assert(class(posterior[[1]]) == "phylo")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.