create_cep_tree_prior: Create a Coalescent Exponential Population tree prior

create_cep_tree_priorR Documentation

Create a Coalescent Exponential Population tree prior

Description

Create a Coalescent Exponential Population tree prior

Usage

create_cep_tree_prior(
  id = NA,
  pop_size_distr = create_one_div_x_distr(),
  growth_rate_distr = create_laplace_distr()
)

Arguments

id

the ID of the alignment

pop_size_distr

the population distribution, as created by a create_distr function

growth_rate_distr

the growth rate distribution, as created by a create_distr function

Value

a Coalescent Exponential Population tree_prior

Author(s)

Richèl J.C. Bilderbeek

See Also

An alignment ID can be extracted from its FASTA filename using get_alignment_id

Examples

if (is_on_ci()) {

  cep_tree_prior <- create_cep_tree_prior()

  beast2_input_file <- get_beautier_tempfilename()
  create_beast2_input_file(
    input_filename = get_fasta_filename(),
    beast2_input_file,
    tree_prior = cep_tree_prior
  )
  file.remove(beast2_input_file)

  remove_beautier_folder()
}

beautier documentation built on Nov. 2, 2023, 5:08 p.m.