R/are_mrca_align_ids_in_fasta.R

Defines functions are_mrca_align_ids_in_fasta

Documented in are_mrca_align_ids_in_fasta

#' Determine if the MRCA priors' alignment IDs are present in the FASTA files
#' @inheritParams default_params_doc
#' @return TRUE if all the MRCA priors' alignment IDs
#'   are present in the FASTA files.
#'   Returns FALSE otherwise
#' @author Richèl J.C. Bilderbeek
#' @export
are_mrca_align_ids_in_fasta <- function(
  mrca_prior,
  fasta_filename
) {
  check_true(is_mrca_prior(mrca_prior))
  if (!is_mrca_align_id_in_fasta(mrca_prior, fasta_filename)) {
    return(FALSE)
  }
  TRUE
}

Try the beautier package in your browser

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

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