resultsDiff: Relative difference of results

Description Usage Arguments Value Functions Note Examples

Description

Relative difference of results

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
resultsDiff(x, y, ...)

## S4 method for signature 'DESeqResults,DESeqResults'
resultsDiff(
  x,
  y,
  col = c("log2FoldChange", "stat"),
  deg = c("no", "intersect", "union"),
  alphaThreshold = NULL,
  lfcThreshold = NULL,
  baseMeanThreshold = NULL,
  direction = c("both", "up", "down")
)

## S4 method for signature 'DESeqAnalysis,missingOrNULL'
resultsDiff(x, y = NULL, i, j, ...)

Arguments

x

Object.

y

Object.

col

character(1). Column to use for difference calculation (subtraction). Note that x/i represents A and y/j B in A - B calculation.

deg

character(1).

  • "no": Return all genes, corresponding to original row names order.

  • "intersect": Return only genes called as DE in both contrasts.

  • "union": Return genes called as DE in either contrast.

alphaThreshold

numeric(1) or NULL. Adjusted P value ("alpha") cutoff. If left NULL, will use the cutoff defined in the object.

lfcThreshold

numeric(1) or NULL. Log (base 2) fold change ratio cutoff threshold. If left NULL, will use the cutoff defined in the object.

baseMeanThreshold

numeric(1) or NULL. Base mean (i.e. average expression across all samples) threshold. If left NULL, will use the cutoff defined in the object. Applies in general to DESeq2 RNA-seq differential expression output.

direction

character(1). Include "both", "up", or "down" directions.

i

Indices specifying elements to extract or replace. Indices are numeric or character vectors, empty (missing), or NULL.

For more information:

help(topic = "Extract", package = "base")
j

Indices specifying elements to extract or replace. Indices are numeric or character vectors, empty (missing), or NULL.

For more information:

help(topic = "Extract", package = "base")
...

Additional arguments.

Value

Named numeric. Names correspond to the features (i.e. genes) analyzed.

Functions

Note

Updated 2020-08-05.

Examples

1
2
3
4
5
data(deseq)

## DESeqAnalysis ====
diff <- resultsDiff(deseq, i = 1L, j = 2L)
head(diff)

steinbaugh/DESeqAnalysis documentation built on Oct. 15, 2020, 2:02 a.m.