Defines functions get_trees_filenames

Documented in get_trees_filenames

#' Get the .trees filenames that BEAST2 will produce
#' @inheritParams default_params_doc
#' @return character vector with the names of the .trees files that BEAST2
#'   will produce
#' @author Richèl J.C. Bilderbeek
#' @examples
#' get_trees_filenames(get_beastier_path("2_4.xml"))
#' get_trees_filenames(get_beastier_path("anthus_2_4.xml"))
#' @export
get_trees_filenames <- function(input_filename) {

  alignment_ids <- beastier::get_alignment_ids_from_xml_filename(
    xml_filename = input_filename
  paste0(alignment_ids, ".trees")

Try the beastier package in your browser

Any scripts or data that you put into this service are public.

beastier documentation built on Sept. 19, 2021, 5:06 p.m.