This vignette does the same as the code in the bioRxiv article.
if (is_beast2_installed()) {
out <- bbt_run(
"anthus_aco.fas",
site_model = create_hky_site_model(),
clock_model = create_rln_clock_model(),
tree_prior = create_bd_tree_prior(),
mcmc = mcmc
)
}
if (is_beast2_installed()) {
out <- bbt_run(
"anthus_aco.fas",
tree_prior = create_yule_tree_prior(
birth_rate_distr = create_exp_distr()
),
mcmc = mcmc
)
}
if (is_beast2_installed()) {
out <- bbt_run(
"anthus_aco.fas",
tree_prior = create_yule_tree_prior(
birth_rate_distr = create_exp_distr(
mean = 1.0
)
),
mcmc = mcmc
)
}
# Deprecated
out <- bbt_run(
"anthus_aco.fas",
posterior_crown_age = 15,
mcmc = mcmc
)
if (is_beast2_installed()) {
out <- bbt_run(
"anthus_aco.fas",
mrca_prior = create_mrca_prior(
alignment_id = get_alignment_id("anthus_aco.fas"),
taxa_names = get_taxa_names("anthus_aco.fas"),
mrca_distr = create_normal_distr(
mean = 15.0,
sigma = 0.01
)
),
mcmc = mcmc,
overwrite = TRUE
)
}
if (is_beast2_installed()) {
traces <- remove_burn_ins(
traces = out$estimates,
burn_in_fraction = 0.2
)
}