Correlation
Usage
correlation(x, y, ...)
# S4 method for DESeqResults,DESeqResults
correlation(
x,
y,
col = "log2FoldChange",
method = c("pearson", "kendall", "spearman")
)
# S4 method for 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
character(1)
. Which correlation coefficient (or covariance) is to be computed. Seestats::cor
documentation for details.- i
integer(1)
orcharacter(1)
. ForSummarizedExperiment
, primary assay.- j
integer(1)
,character(1)
, orNULL
. ForSummarizedExperiment
, optional secondary assay. IfNULL
, calculates correlation matrix only on the primary assay.- ...
Additional arguments.
Examples
data(deseq)
## DESeqAnalysis ====
correlation(deseq, i = 1L, j = 2L)
#> → Calculating pearson correlation on 499 values.
#> [1] 0.2472657