cor_result: Compute Correlation matrix of biomolecule data

View source: R/cor_result.R

cor_resultR 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 as.lipidData, as.metabData, as.pepData, as.proData, as.nmrData, or as.seqData, respectively.

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

edata_transform

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)



pmartR/pmartR documentation built on May 10, 2024, 12:19 a.m.