R/methLevels-method.R

Defines functions .replace.methLevels .methLevels

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

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

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

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