R/totalReads-method.R

Defines functions .replace.totalReads .totalReads

.totalReads <- function(object) {
    return(assays(object)$totalReads)
}

.replace.totalReads <- function(object, value) {
    assays(object, withDimnames = FALSE)$totalReads <- value
    return(object)
}

#' @rdname totalReads-method
#' @aliases totalReads-method totalReads
setMethod("totalReads", signature(object = "BSDMC"), .totalReads)

#' @rdname totalReads-method
#' @aliases totalReads-method totalReads<-
setReplaceMethod(
    "totalReads", signature(object = "BSDMC", value = "matrix"),
    .replace.totalReads
)
shokoohi/DMCFB documentation built on April 21, 2022, 5:53 a.m.