Internal function to create a tree prior
Note
Prefer the use the named functions
create_bd_tree_prior
,
create_cbs_tree_prior
,
create_ccp_tree_prior
create_cep_tree_prior
and create_yule_tree_prior
instead
See also
See
create_bd_tree_prior
,
create_cbs_tree_prior
,
create_ccp_tree_prior
create_cep_tree_prior
and create_yule_tree_prior
for more examples using those functions
Examples
if (is_on_ci()) {
check_empty_beautier_folder()
beast2_input_file <- get_beautier_tempfilename()
bd_tree_prior <- create_bd_tree_prior()
cbs_tree_prior <- create_cbs_tree_prior()
ccp_tree_prior <- create_ccp_tree_prior()
cep_tree_prior <- create_cep_tree_prior()
yule_tree_prior <- create_yule_tree_prior()
# Use any of the above tree priors
create_beast2_input_file(
input_filename = get_fasta_filename(),
beast2_input_file,
tree_prior = bd_tree_prior
)
file.remove(beast2_input_file)
remove_beautier_folder()
check_empty_beautier_folder()
}