runImpulseDE2: ImpulseDE2 wrapper

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/ImpulseDE2_main.R

Description

Wrapper to run ImpulseDE2 on bulk omics count data. This wrapper can perform the entire analysis pipeline of ImpulseDE2 on its own if the right parameters are supplied. To run ImpulseDE2 on bulk omics count data, use the minimal parameter set:

Additionally, you can provide:

Usage

1
2
3
4
5
runImpulseDE2(matCountData = NULL, dfAnnotation = NULL,
  boolCaseCtrl = FALSE, vecConfounders = NULL, scaNProc = 1,
  scaQThres = NULL, vecDispersionsExternal = NULL,
  vecSizeFactorsExternal = NULL, boolIdentifyTransients = FALSE,
  boolVerbose = TRUE)

Arguments

matCountData

(matrix genes x samples) [Default NULL] Read count data, unobserved entries are NA. Can be SummarizedExperiment object.

dfAnnotation

(data frame samples x covariates) Sample, Condition, Time (numeric), TimeCateg (str) (and confounding variables if given). Annotation table with covariates for each sample.

boolCaseCtrl

(bool) [Default FALSE] Whether to perform case-control analysis. Does case-only analysis if FALSE.

vecConfounders

(vector of strings number of confounding variables) Factors to correct for during batch correction. Have to supply dispersion factors if more than one is supplied. Names refer to columns in dfAnnotation.

scaNProc

(scalar) [Default 1] Number of processes for parallelisation.

scaQThres

(scalar) [Default NULL] FDR-corrected p-value cutoff for significance.

vecDispersionsExternal

(vector length number of genes in matCountData) [Default NULL] Externally generated list of gene-wise dispersion factors which overides DESeq2 generated dispersion factors.

vecSizeFactorsExternal

(vector length number of cells in matCountData) [Default NULL] Externally generated list of size factors which override size factor computation in ImpulseDE2.

boolIdentifyTransients

(bool) [Defaul FALSE] Whether to identify transiently activated or deactivated genes. This involves an additional fitting of sigmoidal models and hypothesis testing between constant, sigmoidal and impulse model.

boolVerbose

(bool) [Default TRUE] Whether to print progress to stdout.

Details

ImpulseDE2 is based on the impulse model proposed by Chechik and Koller (Chechik and Koller, 2009). The computational complexity of ImpulseDE2 is linear in the number of genes and linear in the number of samples.

Value

(object of class ImpulseDE2Object) This object can be treated as a list with 2 elements: (list length 2)

Author(s)

David Sebastian Fischer

See Also

Calls the following functions: processData, runDESeq2, computeNormConst, fitModels, fitSigmoidModels, runDEAnalysis. The following functions are additionally available to the user: fitSigmoidModels, plotGenes, plotHeatmap, runDEAnalysis, simulateDataSetImpulseDE2.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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 )
head(objectImpulseDE2$dfImpulseDE2Results)

ImpulseDE2 documentation built on April 28, 2020, 9:19 p.m.