This function returns an object of class corRes (correlation Result)
cor_result(omicsData)
an object of the class 'lipidData', 'metabData', 'pepData',
'proData', 'nmrData', or 'seqData', created by
as.lipidData
, as.metabData
,
as.pepData
, as.proData
,
as.nmrData
, or as.seqData
, respectively.
An \(n \times n\) matrix of class corRes giving the correlation between samples.
The pairwise correlations between samples are calculated based on
biomolecules that are observed in both samples. For seqData objects,
Spearman correlation is used. For all other data types, Pearson correlation
is used and data must be log transformed. See cor
for further details.
library(pmartRdata)
mymetab <- edata_transform(omicsData = metab_object, data_scale = "log2")
my_correlation <- cor_result(omicsData = mymetab)
# \donttest{
myseq_correlation <- cor_result(omicsData = rnaseq_object)
# }