addOffsets: Add offsets to epigraHMMDataSet

View source: R/addOffsets.R

addOffsetsR Documentation

Add offsets to epigraHMMDataSet

Description

This function adds model offsets to epigraHMMDataSet

Usage

addOffsets(object, offsets)

Arguments

object

an epigraHMMDataSet

offsets

a matrix with model offsets

Details

To be added

Value

An epigraHMMDataSet with an 'offsets' assay filled in.

References

https://github.com/plbaldoni/epigraHMM

Examples


# Creating dummy object
countData <- list('counts' = matrix(rpois(4e5,10),ncol = 4),
'controls' = matrix(rpois(4e5,5),ncol = 4))
colData <- data.frame(condition = c('A','A','B','B'), replicate = c(1,2,1,2))
object <- epigraHMMDataSetFromMatrix(countData,colData)

# Adding pre-computed offsets
object <- addOffsets(object = object,
                     offsets = matrix(rnorm(4e5),ncol = 4))


plbaldoni/epigrahmm documentation built on Oct. 14, 2023, 5:13 a.m.