pairwise_DESeq: Generate statistics associated with pairwise differential...

Description Usage Arguments Value Note

View source: R/utility-functions.R


When provided with an CountDataSet, comparisons are made between control and perturbation samples.


 pairwise_DESeq(cds, vst, control_perturb_col = "condition",
control="control", perturb="perturbation", try.hard=FALSE) 



CountDataSet with all count data for a single instance, plus metadata on which samples are perturbation and control.


Matrix of variance-stabilized count data that must include columns with colnames matching the sampleNames of the cds object. The vst matrix may contain additional columns / samples, which will be ignored.


Column name in phenoData of cds where control/perturbation designations are stored.


String designating control samples in the control_perturb_col column.


String designating perturbation samples in the control_perturb_col column.


Logical parameter indicating how to proceed when DESeq's parametric estimation of the dispersion parameter fails. If set to FALSE (default), the function exits with an error. If set to TRUE, the function will try a non-parametric approach instead.


The function returns a data frame with the following columns:


Moderated log2 fold-change between perturbed and control data. (A positive value denotes higher expression in the perturbed samples.) The change was calculated from the (mean) counts after variance stabilizing transformation. Please consult the DESeq vignette for details on the transformation.


For ease of comparison across instances with different numbers of samples, the (uncorrected) DESEq p-value is converted to the standard normal scale. The result is reported here. As for log_fc, positive values denote higher expression in perturbed samples.


p-value for differential expression calculated by the nbinomTest function from the DESeq package. In the absence of replicates, the dispersion parameter is estimated across all samples, ignoring the class labels, by using the blind method of the estimateDispersions function. When replicates are available, the pooled method is used instead. Note that this p-value can also be computed from z, via pnorm (doubling for two tails).


To use this function, please install the suggested Bioconductor package 'DESeq'.

gCMAP documentation built on May 31, 2017, 2:35 p.m.