R/methReads-method.R

Defines functions .replace.methReads .methReads

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

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

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

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