Learn R Programming

iCOBRA (version 1.0.2)

splv: Accessor and replacement functions for splv slot

Description

Accessor and replacement functions for the splv slot in an COBRAPerformance or COBRAPlot object.

Usage

splv(x, ...)

splv(x, ...) <- value

## S3 method for class 'COBRAPerformance': splv(x)

## S3 method for class 'COBRAPerformance,character': splv(x) <- value

## S3 method for class 'COBRAPlot,character': splv(x) <- value

Arguments

x
An COBRAPerformance or COBRAPlot object.
...
Additional arguments.
value
A character string giving the name of a feature annotation to use for stratification.

Value

  • The accessor function returns a character string giving the name of a feature annotation to use for stratification.

Examples

Run this code
data(cobradata_example)
cobraperf <- calculate_performance(cobradata_example,
                                   binary_truth = "status",
                                   aspects = "fdrtpr", splv = "expr_cat")
splv(cobraperf)

Run the code above in your browser using DataLab