Internal function to creates the XML text for the siteModel
tag of a BEAST2 parameter file.
Source: R/create_site_model_xml.R
create_site_model_xml.Rd
Creates the XML text for the siteModel
tag of
a BEAST2 parameter file,
which is part of the distribution
node for the
treeLikelihood
ID.
Arguments
- inference_model
a Bayesian phylogenetic inference model. An inference model is the complete model setup in which a site model, clock model, tree prior and more are specified. Use create_inference_model to create an inference model. Use check_inference_model to check if an inference model is valid. Use rename_inference_model_filenames to rename the files in an inference model.
Details
The siteModel
tag has these elements:
<siteModel[...]>
[parameters]
<substModel[...]>
[...]
</substModel>
</siteModel>
The parameter
section is created by
create_site_model_parameters_xml
The substModel
section is created by create_subst_model_xml
Examples
check_empty_beautier_folder()
# <distribution id="posterior"[...]">
# <distribution id="likelihood" [...]>
# <siteModel...>
# [parameters]
# </siteModel>
# </distribution>
# </distribution>
check_empty_beautier_folder()