if (can_run_mcbette()) {
# An example FASTA file
fasta_filename <- system.file("extdata", "simple.fas", package = "mcbette")
inference_model_1 <- beautier::create_ns_inference_model(
site_model = beautier::create_jc69_site_model()
)
inference_model_2 <- beautier::create_ns_inference_model(
site_model = beautier::create_gtr_site_model()
)
# Shorten the run, by doing a short (dirty, unreliable) MCMC
inference_model_1$mcmc <- beautier::create_test_ns_mcmc()
inference_model_2$mcmc <- beautier::create_test_ns_mcmc()
inference_models <- c(list(inference_model_1), list(inference_model_2))
# Estimate the marginal log-likelihoods of the two models
marg_liks <- est_marg_liks(
fasta_filename = fasta_filename,
inference_models = inference_models
)
# Interpret the results
interpret_marg_lik_estimates(marg_liks)
beastier::remove_beaustier_folders()
beastier::check_empty_beaustier_folders()
}
Run the code above in your browser using DataLab