R/check_samtools_exists.R

Defines functions check_samtools_exists

Documented in check_samtools_exists

#' @name check_samtools_exists
#' @title Check if samtools exists on the system
#' @description This is an internal function that is not meant to be used
#'   outside of the package. It checks whether samtools exists on the system.
#' @return Returns TRUE if samtools exists on the system, else FALSE.
#'

check_samtools_exists <- function() {
  if (file.exists(Sys.which("samtools"))) return(TRUE)
  return(FALSE)
}
compbiomed/MetaScope documentation built on Nov. 5, 2024, 9:25 p.m.