corr: Accessor and replacement functions for 'corr' slot

corrR Documentation

Accessor and replacement functions for corr slot

Description

Accessor and replacement functions for the corr slot in a COBRAPerformance or COBRAPlot object.

Usage

corr(x, ...)

corr(x, ...) <- value

## S4 method for signature 'COBRAPerformance'
corr(x)

## S4 replacement method for signature 'COBRAPerformance,data.frame'
corr(x) <- value

## S4 replacement method for signature 'COBRAPlot,data.frame'
corr(x) <- value

Arguments

x

A COBRAPerformance or COBRAPlot object.

...

Additional arguments.

value

A data frame giving correlation values for each method and each stratification level.

Value

The accessor function returns a data frame giving correlation values for each method and each stratification level.

Author(s)

Charlotte Soneson

Examples

data(cobradata_example)
cobraperf <- calculate_performance(cobradata_example, cont_truth = "logFC",
                                   aspects = "corr")
head(corr(cobraperf))

markrobinsonuzh/iCOBRA documentation built on Nov. 7, 2024, 7:11 a.m.