R/coverage-methods.R

### =========================================================================
### "coverage" methods
### -------------------------------------------------------------------------
###

#' @importMethodsFrom IRanges coverage
#'
#' @export
setMethod("coverage", 
          "GTuples",
          function(x, shift = 0L, width = NULL, weight = 1L,
                   method = c("auto", "sort", "hash")) {
            stop(class(x), " do not currently support the 'coverage' method.")
          }
)

#' @importMethodsFrom IRanges coverage
#'
#' @export
setMethod("coverage", 
          "GTuplesList",
          function(x, shift = 0L, width = NULL, weight = 1L,
                   method = c("auto", "sort", "hash")) {
            stop(class(x), " do not currently support the 'coverage' method.")
          }
)  
PeteHaitch/GenomicTuples documentation built on Nov. 15, 2024, 7:35 p.m.