create_yule_tree_prior: Create a Yule tree prior

Description Usage Arguments Value Author(s) See Also Examples

Description

Create a Yule tree prior

Usage

1
2
3
4
create_yule_tree_prior(
  id = NA,
  birth_rate_distr = create_uniform_distr()
)

Arguments

id

the ID of the alignment

birth_rate_distr

the birth rate distribution, as created by a create_distr function

Value

a Yule 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

1
2
3
4
5
6
7
8
9
  yule_tree_prior <- create_yule_tree_prior()

  beast2_input_file <- tempfile(fileext = ".xml")
  create_beast2_input_file(
    input_filename = get_fasta_filename(),
    beast2_input_file,
    tree_prior = yule_tree_prior
  )
  testit::assert(file.exists(beast2_input_file))

ropensci/beautier documentation built on May 14, 2019, 8:52 p.m.