if (can_run_mcbette()) {
# An example FASTA file
fasta_filename <- system.file("extdata", "simple.fas", package = "mcbette")
# A testing inference model with inaccurate (thus fast) marginal
# likelihood estimation
inference_model <- beautier::create_ns_inference_model()
# Shorten the run, by doing a short (dirty, unreliable) MCMC
inference_model$mcmc <- beautier::create_test_ns_mcmc()
# Setup the options for BEAST2 to be able to call BEAST2 packages
beast2_options <- beastier::create_mcbette_beast2_options()
# Estimate the marginal likelihood
est_marg_lik(
fasta_filename = fasta_filename,
inference_model = inference_model,
beast2_options = beast2_options
)
beastier::remove_beaustier_folders()
}
Run the code above in your browser using DataLab