Nex_2_BEASTxml: Take nex and turn into BEAST 2.3 xml file

Description Usage Arguments Value Note

Description

This function takes a generated nex file, and creates a related BEAST 2.3 xml that uses another BEAST xml file as a template.

Usage

1
Nex_2_BEASTxml(template.xml, nex, file, rep.str, cont = FALSE)

Arguments

template.xml

- the template xml already parsed as an xml object via xmlParse > xmlToList

nex

- the nex file path to be used to create the new beast.xml

file

- the full file path where the created beast xml is to be written to

rep.str

- the id string that is to replace the id string from the template xml, usually replicate#

cont

- boolean concerning whether the simulation is time explicit or not. Default = FALSE

Value

written BEAST.xml

Note

Function has been written to be used ideally within a loop of using sample_build directly afterwards, and in this instance it makes more sense to predetermine the template.xml and template.txt. Hence the template.path is default null, and function written intending user to allocated the xml and txt templates.


OJWatson/sims4 documentation built on May 7, 2019, 8:33 p.m.