xml_treemodel: Generate the tree-model block in a 'BEAST' XML file.

View source: R/xml_helpr.R

xml_treemodelR Documentation

Generate the tree-model block in a 'BEAST' XML file.

Description

Generate the tree-model block in a 'BEAST' XML file.

Usage

xml_treemodel(
  tree = NULL,
  treefile_name = NULL,
  tree_proposal_weight = 0,
  empiricaltree_mh = F
)

Arguments

tree

A 'phylo' object that contains a single tree

treefile_name

Path of the '.trees' file that contains the distribution of trees

tree_proposal_weight

Weight of the empirical tree operator (only becomes relevant when treefile_name is provided)

empiricaltree_mh

Whether treating the provided distribution of trees as part of the Markov chain (default true) or averaging over the distribution uniformly.

Value

XML code specifying the tree model


jsigao/prioritree documentation built on Jan. 9, 2023, 5:35 a.m.