Internal function to create a tree prior

create_tree_prior(name, id, ...)

Arguments

name

the tree prior name. Can be any name in get_tree_prior_names

id

the ID of the alignment

...

specific tree prior parameters

Value

a tree_prior

Author

Richèl J.C. Bilderbeek

Examples

beast2_input_file <- get_beautier_tempfilename()
create_beast2_input_file(
  input_filename = get_fasta_filename(),
  beast2_input_file,
  tree_prior = create_bd_tree_prior()
)
file.remove(beast2_input_file)
#> [1] TRUE

beast2_input_file <- get_beautier_tempfilename()
create_beast2_input_file(
  input_filename = get_beautier_path("test_output_6.fas"),
  beast2_input_file,
  tree_prior = create_cbs_tree_prior()
)
file.remove(beast2_input_file)
#> [1] TRUE

beast2_input_file <- get_beautier_tempfilename()
create_beast2_input_file(
  input_filename = get_fasta_filename(),
  beast2_input_file,
  tree_prior = create_ccp_tree_prior()
)
file.remove(beast2_input_file)
#> [1] TRUE

beast2_input_file <- get_beautier_tempfilename()
create_beast2_input_file(
  input_filename = get_fasta_filename(),
  beast2_input_file,
  tree_prior = create_cep_tree_prior()
)
file.remove(beast2_input_file)
#> [1] TRUE

beast2_input_file <- get_beautier_tempfilename()
create_beast2_input_file(
  input_filename = get_fasta_filename(),
  beast2_input_file,
  tree_prior = create_yule_tree_prior()
)
file.remove(beast2_input_file)
#> [1] TRUE