create_test_cand_experiment: Create a valid testing pirouette candidate experiment.

View source: R/create_test_cand_experiment.R

create_test_cand_experimentR Documentation

Create a valid testing pirouette candidate experiment.

Description

Create a valid testing pirouette candidate experiment.

Usage

create_test_cand_experiment(
  inference_conditions = pirouette::create_inference_conditions(model_type = "candidate",
    run_if = "best_candidate", do_measure_evidence = TRUE),
  inference_model = beautier::create_test_inference_model(),
  beast2_options = beastier::create_beast2_options(),
  est_evidence_mcmc = beautier::create_test_ns_mcmc(),
  beast2_bin_path = beastier::get_default_beast2_bin_path(),
  errors_filename = get_temp_errors_filename()
)

Arguments

inference_conditions

conditions under which the inference model is used in the inference

inference_model

an inference model, which is a combination of site model, clock model, tree prior and BEAST2 input and input filenames.

beast2_options

BEAST2 options, as can be created by create_beast2_options

est_evidence_mcmc

MCMC used in the estimation of the evidence (aka marginal likelihood). The MCMC must be a Nested Sampling MCMC, as can be created by create_ns_mcmc.

beast2_bin_path

path to BEAST2 binary file. The use of the binary BEAST2 file is required for estimation of the evidence (aka marginal likelihood). The default BEAST2 binary path can be obtained using get_default_beast2_bin_path

errors_filename

baseline name for errors filenames, as created by get_temp_errors_filename

Value

a pirouette experiment.

Author(s)

Richèl J.C. Bilderbeek

Examples

if (beautier::is_on_ci() && rappdirs::app_dir()$os != "win") {

  # Check cleanup by other functions
  beastier::check_empty_beaustier_folders()

  experiment <- create_test_cand_experiment()
  check_experiment(experiment)

  # Cleanup
  beastier::remove_beaustier_folders()
  beastier::check_empty_beaustier_folders()
}

richelbilderbeek/pirouette documentation built on Oct. 18, 2023, 3:09 p.m.