check_mrca_prior: Check if the MRCA prior is a valid MRCA prior.

View source: R/check_mrca_prior.R

check_mrca_priorR Documentation

Check if the MRCA prior is a valid MRCA prior.

Description

Calls stop if the MRCA prior is invalid.

Usage

check_mrca_prior(mrca_prior)

Arguments

mrca_prior

a Most Recent Common Ancestor prior, as returned by create_mrca_prior

Value

nothing

Author(s)

Richèl J.C. Bilderbeek

See Also

Use create_mrca_prior to create a valid MRCA prior

Examples

check_empty_beautier_folder()

fasta_filename <- get_beautier_path("anthus_aco.fas")
mrca_prior <- create_mrca_prior(
  alignment_id = get_alignment_id(fasta_filename = fasta_filename),
  taxa_names = get_taxa_names(filename = fasta_filename)
)
mrca_prior <- create_mrca_prior(
 alignment_id = get_alignment_id(fasta_filename = fasta_filename),
 taxa_names = get_taxa_names(filename = fasta_filename)
)
check_mrca_prior(mrca_prior)

check_empty_beautier_folder()

beautier documentation built on Nov. 2, 2023, 5:08 p.m.