resetDGEobj {DGEobj}R Documentation

Reset to original data

Description

During a workflow, a DGEobj typically gets filtered down to remove samples that fail QC or non-expressed genes. The resetDGEobj() function produces a new DGEobj with the original unfiltered data. Resetting an object does not restore changes to attributes or class, but does revert changes made with addItem() and rmItem(). Reset requires that *_orig data is still in the DGEobj.

Usage

resetDGEobj(dgeObj)

Arguments

dgeObj

A class DGEobj created by function initDGEobj()

Value

A DGEobj

Examples

    #example object
    exObj <- readRDS(system.file("miniObj.RDS", package = "DGEobj"))

    # subset to first 10 rows to show reset functionality
    exObj <- exObj[c(1:10), ]

    exObj <- resetDGEobj(exObj)
    dim(exObj)


[Package DGEobj version 1.1.2 Index]