R/load_fasta_file_as_tibble_cpp.R

Defines functions load_fasta_file_as_tibble_cpp

Documented in load_fasta_file_as_tibble_cpp

#' Parse a FASTA file to a table
#' with a \code{name} and \code{sequence} column
#' @inheritParams default_params_doc
#' @return a \link[tibble]{tibble}
#'   with a \code{name} and \code{sequence} column
#' @export
load_fasta_file_as_tibble_cpp <- function(fasta_filename) {
  if (!file.exists(fasta_filename)) {
    stop("FASTA file not found at path ", fasta_filename)
  }
  dt <- load_fasta_file_as_tibble_cpp_raw(fasta_filename) # nolint internal function
  dt <- data.table::setalloccol(dt)
  tibble::as_tibble(dt)
}

Try the pureseqtmr package in your browser

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

pureseqtmr documentation built on April 6, 2023, 5:20 p.m.