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. 15, 2023, 7:53 p.m.