is_trees_file: Measure if a file a valid BEAST2 '.trees' file

Description Usage Arguments Value Author(s) See Also Examples

View source: R/is_trees_file.R

Description

Measure if a file a valid BEAST2 .trees file

Usage

1
is_trees_file(trees_filename, verbose = FALSE)

Arguments

trees_filename

name of a BEAST2 posterior .trees file, as can be read using parse_beast_trees

verbose

set to TRUE for more output

Value

TRUE if trees_filename is a valid .trees file

Author(s)

Richèl J.C. Bilderbeek

See Also

Most of the work is done by read.nexus

Examples

1
2
3
4
5
6
7
# TRUE
is_trees_file(get_tracerer_path("beast2_example_output.trees"))
is_trees_file(get_tracerer_path("unplottable_anthus_aco.trees"))
is_trees_file(get_tracerer_path("anthus_2_4_a.trees"))
is_trees_file(get_tracerer_path("anthus_2_4_b.trees"))
# FALSE
is_trees_file(get_tracerer_path("mcbette_issue_8.trees"))

tracerer documentation built on May 30, 2021, 5:06 p.m.