Nothing
#' Convert a clock model to the XML of the \code{TreeLogger}
#' @inherit default_params_doc
#' @return a character vector of XML strings
#' @author Richèl J.C. Bilderbeek
#' @export
clock_model_to_xml_treelogger <- function(
clock_model
) {
check_true(is_clock_model(clock_model))
id <- clock_model$id
if (is_strict_clock_model(clock_model)) {
return(
paste0(
"<log ",
"id=\"TreeWithMetaDataLogger.t:", id, "\" ",
"spec=\"beast.evolution.tree.TreeWithMetaDataLogger\" ",
"tree=\"@Tree.t:", id, "\"/>" # nolint this is no absolute path
)
)
} else {
# Will fail on unimplemented clock models
check_true(is_rln_clock_model(clock_model))
return(
paste0(
"<log id=\"TreeWithMetaDataLogger.t:", id, "\" ",
"spec=\"beast.evolution.tree.TreeWithMetaDataLogger\" ",
"branchratemodel=\"@RelaxedClock.c:", id, "\" ",
"tree=\"@Tree.t:", id, "\"/>" # nolint this is no absolute path
)
)
}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.