Takes an airr clone object and template and writes a BEAST2 XML file
write_clone_to_xml(
clone,
file,
id,
time = NULL,
trait = NULL,
trait_data_type = NULL,
template = NULL,
mcmc_length = 1e+06,
log_every = 1000,
replacements = NULL,
include_germline_as_root = FALSE,
include_germline_as_tip = FALSE,
germline_range = c(-10000, 10000),
tree = NULL,
trait_list = NULL,
log_every_trait = 10,
tree_states = FALSE,
start_edge_length = 100,
start_date = NULL,
max_start_date = NULL,
...
)
File path of the written XML file
an airrClone
object
output file path
unique identifer for this analysis
name of column representing sample time
name of column representing a trait
optional data type for the trait
XML template
number of MCMC iterations
frequency of states logged. auto
will divide mcmc_length by log_target
list of additional replacements to make in the template
include germline in analysis as root?
include germline in analysis as tip?
possible date range of germline
starting tree, either a phylo object or a newick string
list of all possible trait values
frequency of trait states logged relative to log_every
use states in the starting tree?
edge length to use for all branches in starting tree
starting date to use as prior, in forward time
max starting date to use as prior, in forward time
additional arguments for XML writing functions