cor_result {pmartR} | R Documentation |
Compute Correlation matrix of biomolecule data
Description
This function returns an object of class corRes (correlation Result)
Usage
cor_result(omicsData)
Arguments
omicsData |
an object of the class 'lipidData', 'metabData', 'pepData',
'proData', 'nmrData', or 'seqData', created by
|
Details
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.
Value
An n \times n
matrix of class corRes giving the correlation
between samples.
Author(s)
Kelly Stratton, Lisa Bramer
See Also
Examples
library(pmartRdata)
mymetab <- edata_transform(omicsData = metab_object, data_scale = "log2")
my_correlation <- cor_result(omicsData = mymetab)
myseq_correlation <- cor_result(omicsData = rnaseq_object)
[Package pmartR version 2.4.5 Index]