In general gene expression data are stored in tabular format, where first column is gene / feature name while rest other are expression values in respective samples/conditions. Given such a data this function returns a long format tbl containing correlation value for each pair of variable.

get_pairwise_cor_tbl(dat, var = "genes", transform = TRUE, method = "pearson")

Arguments

dat

a tbl.

var

a column name denoting rownames. Default "genes".

transform

logical, default TRUE, whether to log transform (log2) numeric columns.

method

same as argument method in stats::cor.

Value

a tbl.