R/is_granges.R

Defines functions is_granges

Documented in is_granges

#' Is an object of class GRanges
#'
#' Check whether an object is of the class \link[GenomicRanges]{GRanges}.
#' @param obj Any R object.
#' @returns Boolean.
#' @export
#' @importFrom methods is
#' @examples 
#' bool <- echodata::is_granges(mtcars)
is_granges <- function(obj) {
    methods::is(obj, "GRanges")
}
RajLabMSSM/echodata documentation built on Nov. 21, 2023, 8 a.m.