R/cBSDMCs-method.R

Defines functions cBSDMCs

Documented in cBSDMCs

.cBSDMCs <- function(methReads, totalReads, methLevels, methStates, methVars,
    rowRanges, colData = DataFrame(row.names = colnames(methReads)),
    metadata = list(), ...) {
    new("BSDMCs", SummarizedExperiment(assays =
        SimpleList(methReads = methReads, totalReads = totalReads,
        methLevels = methLevels, methStates = methStates, methVars = methVars),
        rowRanges = rowRanges, colData = colData, metadata = list()))
}

#' @rdname cBSDMCs-method
#' @aliases cBSDMCs-method cBSDMCs
setMethod("cBSDMCs", signature(methReads = "matrix", totalReads = "matrix",
    methLevels = "matrix", methStates = "matrix", methVars = "matrix",
    rowRanges = "GRanges"),
    .cBSDMCs)
shokoohi/DMCHMM documentation built on Sept. 6, 2018, 1:55 p.m.