get_posteriors: Extract the BEAST2 posterior phyogenies from a file

Description Usage Arguments Value Author(s) Examples

Description

Extract the BEAST2 posterior phyogenies from a file

Usage

1

Arguments

file

A loaded parameter file

Value

all posteriors

Author(s)

Richel Bilderbeek

Examples

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

richelbilderbeek/wiritttes documentation built on May 27, 2019, 8:14 a.m.