R/methDataSet-class.R

Defines functions methDataSet

Documented in methDataSet

# Exported classes -------------------------------------------------------------

setClass(
    "methDataSet",
    contains = "SummarizedExperiment"
)

# Exported functions -----------------------------------------------------------

methDataSet <- function(Meth = new("matrix"), Unmeth = new("matrix"),
    rowData=new("DataFrame"),...) {
    assays <- SimpleList(Meth = Meth, Unmeth = Unmeth)
    metadata <- list(preprocessMethod="")
    new("methDataSet",
        SummarizedExperiment(assays = assays, metadata=metadata,
        rowData=rowData,...)
    )
}

# Exported methods -------------------------------------------------------------

setMethod("show", signature(object = "methDataSet"), function(object) {
    callNextMethod()
    cat("PreprocessMethod: ", metadata(object)$preprocessMethod,"\n")
})

Try the ENmix package in your browser

Any scripts or data that you put into this service are public.

ENmix documentation built on April 2, 2021, 6 p.m.