fsrnbr: Accessor and replacement functions for 'fsrnbr' slot

Description Usage Arguments Value Author(s) Examples

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
fsrnbr(x, ...)

fsrnbr(x, ...) <- value

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

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

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

Arguments

x

A COBRAPerformance or COBRAPlot object.

...

Additional arguments.

value

A data frame giving information about the observed FSR and the number of features called positive for each method and each stratification level, at various s-value thresholds. If the object does not have an fsrnbr slot (older versions of the class did not have this slot), an empty data frame is returned for simplicity.

Value

The accessor function returns a data frame giving information about the observed FSR and the number of features called positive for each method and each stratification level, at various s-value thresholds.

Author(s)

Charlotte Soneson

Examples

1
2
3
4
5
6
cobradata <- cobradata_example_sval

cobraperf <- calculate_performance(cobradata, 
                                   cont_truth = "logFC", 
                                   aspects = "fsrnbr")
head(fsrnbr(cobraperf))

iCOBRA documentation built on April 17, 2021, 6:07 p.m.