extract_tracelog_filename_from_beast2_input_file: Internal function to extract the tracelog filename for a...

Description Usage Arguments Value Author(s) Examples

View source: R/extract_tracelog_filename_from_beast2_input_file.R

Description

Extract the tracelog filename for a BEAST2 input file

Usage

1

Arguments

input_filename

the name of a BEAST2 input XML file. This file usually has an .xml extension. Use create_temp_input_filename to create a temporary filename with that extension.

Value

the name of the tracelog file

Author(s)

Richèl J.C. Bilderbeek

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
beast2_input_filename <- get_beastier_tempfilename()
tracelog_filename <- get_beastier_tempfilename()
beautier::create_beast2_input_file_from_model(
  input_filename = beautier::get_beautier_path("test_output_0.fas"),
  output_filename = beast2_input_filename,
  inference_model = beautier::create_inference_model(
    mcmc = beautier::create_mcmc(
      tracelog = beautier::create_tracelog(
        filename = tracelog_filename
      )
    )
  )
)
extract_tracelog_filename_from_beast2_input_file(
  input_filename = beast2_input_filename
)
file.remove(beast2_input_filename)

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