gtr_site_model_to_xml_prior_distr: Internal function

View source: R/gtr_site_model_to_xml_prior.R

gtr_site_model_to_xml_prior_distrR Documentation

Internal function

Description

Converts a GTR site model to XML, used in the prior section

Usage

gtr_site_model_to_xml_prior_distr(site_model, beauti_options)

Arguments

site_model

a site model, as returned by create_site_model

beauti_options

one BEAUti options object, as returned by create_beauti_options

Value

the site model as XML text

Author(s)

Richèl J.C. Bilderbeek

Examples

gtr_site_model_to_xml_prior_distr(
  site_model = create_gtr_site_model(
    id = 1,
    rate_ac_prior_distr = create_uniform_distr(id = 2),
    rate_ag_prior_distr = create_uniform_distr(id = 3),
    rate_at_prior_distr = create_uniform_distr(id = 4),
    rate_cg_prior_distr = create_uniform_distr(id = 5),
    rate_gt_prior_distr = create_uniform_distr(id = 6)
  ),
  beauti_options = create_beauti_options()
)

beautier documentation built on Nov. 2, 2023, 5:08 p.m.