View source: R/has_mrca_prior.R
has_mrca_prior | R Documentation |
Will stop if the inference model is invalid
has_mrca_prior(inference_model)
inference_model |
a Bayesian phylogenetic inference model. An inference model is the complete model setup in which a site model, clock model, tree prior and more are specified. Use create_inference_model to create an inference model. Use check_inference_model to check if an inference model is valid. Use rename_inference_model_filenames to rename the files in an inference model. |
TRUE if the inference model has an MRCA prior, FALSE otherwise
MRCA: 'Most Recent Common Ancestor'
Richèl J.C. Bilderbeek
create_inference_model
: create an inference model
create_mrca_prior
: create an MRCA prior
check_empty_beautier_folder()
# No MRCA prior
inference_model <- create_inference_model(
mrca_prior = NA
)
has_mrca_prior(inference_model) # Returns FALSE
# A default MRCA prior
inference_model <- create_inference_model(
mrca_prior = create_mrca_prior()
)
has_mrca_prior(inference_model) # Returns TRUE
check_empty_beautier_folder()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.