fsrnbrcurve {iCOBRA} | R Documentation

## Accessor and replacement functions for `fsrnbrcurve` slot

### Description

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

### Usage

    fsrnbrcurve(x, ...)

    fsrnbrcurve(x, ...) <- value

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

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

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

### Arguments

`x` | A `COBRAPerformance` or `COBRAPlot` object.
`...` | Additional arguments.
`value` | A data frame giving information necessary to generate curves of observed FSR vs number of features called positive for each method and each stratification level. If the object does not have an fsrnbrcurve 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 necessary to generate curves of observed FSR vs number of features called positive for each method and each stratification level.

### Author(s)

Charlotte Soneson

### Examples

    cobradata <- cobradata_example_sval

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

[Package iCOBRA version 1.22.2 Index]