R/supported-formats.R

#' @title Currently supported formats
#'
#' @description Maintains a vector of all the formats supported currently.
#'
#' @return A character vector listing all currently supported formats.
#' @aliases supported_formats
#' @seealso \code{\link{read_format}}
#' @examples
#' supported_formats()
#' @export
supported_formats <- function() {
    c("gtf", "gff", "bed", "bam")
}

error_format <- function() {
    stop("'format' must be one of ", paste(supported_formats(), collapse="/"))
}
openanalytics/gread documentation built on May 24, 2019, 2:29 p.m.