correlation: Correlation

Description Usage Arguments Value Note See Also Examples

Description

Correlation

Usage

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

## S4 method for signature 'DESeqResults,DESeqResults'
correlation(
  x,
  y,
  col = "log2FoldChange",
  method = c("pearson", "kendall", "spearman")
)

## S4 method for signature 'DESeqAnalysis,missingOrNULL'
correlation(
  x,
  y = NULL,
  i,
  j,
  col = "log2FoldChange",
  method = c("pearson", "kendall", "spearman")
)

Arguments

x

Object.

y

Object.

col

character(1). Column name.

method

a character string indicating which correlation coefficient (or covariance) is to be computed. One of "pearson" (default), "kendall", or "spearman": can be abbreviated.

i

integer(1) or character(1). For SummarizedExperiment, primary assay.

j

integer(1), character(1), or NULL. For SummarizedExperiment, optional secondary assay. If NULL, calculates correlation matrix only on the primary assay.

...

Additional arguments.

Value

numeric(1) or matrix.

Note

Updated 2020-08-05.

See Also

Examples

1
2
3
4
data(deseq)

## DESeqAnalysis ====
correlation(deseq, i = 1L, j = 2L)

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