Learn R Programming

beautier (version 2.6.5)

create_cbs_tree_prior: Create a Coalescent Bayesian Skyline tree prior

Description

Create a Coalescent Bayesian Skyline tree prior

Usage

create_cbs_tree_prior(id = NA, group_sizes_dimension = 5)

Value

a Coalescent Bayesian Skyline tree_prior

Arguments

id

an alignment's IDs. An ID can be extracted from its FASTA filename with get_alignment_ids_from_fasta_filenames)

group_sizes_dimension

the group sizes' dimension, as used by the CBS tree prior (see create_cbs_tree_prior)

Author

Richèl J.C. Bilderbeek

See Also

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

Examples

Run this code
if (is_on_ci()) {

  cbs_tree_prior <- create_cbs_tree_prior()

  beast2_input_file <- get_beautier_tempfilename()
  create_beast2_input_file(
    input_filename = get_beautier_path("test_output_6.fas"),
    beast2_input_file,
    tree_prior = cbs_tree_prior
  )
  file.remove(beast2_input_file)

  remove_beautier_folder()
}

Run the code above in your browser using DataLab