beast2out.read.trees: Extract a list of phylogenies from a BEAST2 posterior file

Description Usage Arguments Value Author(s) Examples

Description

Extract a list of phylogenies from a BEAST2 posterior file

Usage

1
beast2out.read.trees(file, opt.rescale.edge.length = 1, opt.burnin = 0)

Arguments

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

Value

a list of phylogenies of type 'phylo'

Author(s)

Oliver Ratmann

Examples

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")

olli0601/rBEAST documentation built on May 24, 2019, 12:53 p.m.