list_accession: List-like accessor methods for ImpulseDE2Object

list_accessionR Documentation

List-like accessor methods for ImpulseDE2Object

Description

Allow usage of ImpulseDE2 ouput object like a list with respect to the core output: dfImpulseDE2Results and vecDEGenes.

Usage

## S4 method for signature 'ImpulseDE2Object'
names(x)

## S4 method for signature 'ImpulseDE2Object,character,missing'
x[[i, j, ...]]

## S4 method for signature 'ImpulseDE2Object'
x$name

Arguments

x

(ImpulseDE2Object) ImpulseDE2 output object.

i, name

(idx or str) Name or index of core output element of ImpulseDE2Object.

j

Not used, only vectors.

...

Not used.

Value

Names of core output in ImpulseDE2Object.

Target element from ImpulseDE2Object.

Target element from ImpulseDE2Object.

Author(s)

David Sebastian Fischer

Examples

lsSimulatedData <- simulateDataSetImpulseDE2(
vecTimePointsA   = rep(seq(1,8),3),
vecTimePointsB   = NULL,
vecBatchesA      = NULL,
vecBatchesB      = NULL,
scaNConst        = 30,
scaNImp          = 10,
scaNLin          = 10,
scaNSig          = 10)
objectImpulseDE2 <- runImpulseDE2(
matCountData    = lsSimulatedData$matObservedCounts, 
dfAnnotation    = lsSimulatedData$dfAnnotation,
boolCaseCtrl    = FALSE,
vecConfounders  = NULL,
scaNProc        = 1 )
names(objectImpulseDE2) # Display core output
# With respect to this core output, objectImpulseDE2
# can be treated like a list.
head(objectImpulseDE2[['dfImpulseDE2Results']])
head(objectImpulseDE2$dfImpulseDE2Results)
head(objectImpulseDE2[['vecDEGenes']])
head(objectImpulseDE2$vecDEGenes)


YosefLab/ImpulseDE2 documentation built on Sept. 17, 2022, 2:45 a.m.