runDESeq2: Wrapper function for running DESeq2

Description Usage Arguments Value Author(s) See Also

View source: R/srcImpulseDE2_runDESeq2.R

Description

Run DESeq2 and extract dispersion parameter estimates. Catch and remove dispersion outlier exception on samples with zero-count observations.

Usage

1
runDESeq2(dfAnnotationProc, matCountDataProc, boolCaseCtrl, vecConfounders)

Arguments

dfAnnotationProc

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

matCountDataProc

(matrix genes x samples) Read count data.

boolCaseCtrl

(bool) 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 dfAnnotationProc.

Value

(numeric vector length number of genes) Dispersion parameter estimates for each gene. In format of parameter size of dnbinom which is 1/dispersion factor of DESeq2.

Author(s)

David Sebastian Fischer

See Also

Called by runImpulseDE2.


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