truth: Accessor and replacement functions for 'truth' slot

truthR Documentation

Accessor and replacement functions for truth slot

Description

Accessor and replacement functions for the truth slot in a COBRAData object.

Usage

truth(x, ...)

truth(x, ...) <- value

## S4 method for signature 'COBRAData'
truth(x)

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

Arguments

x

A COBRAData object.

...

Additional arguments.

value

A data frame containing true assignments and/or scores for features, together with other feature annotations to use for stratification of performance calculations.

Value

The accessor function returns a data frame containing true assignments and/or scores for features, together with other feature annotations to use for stratification of performance calculations.

Author(s)

Charlotte Soneson

Examples

data(cobradata_example)
head(truth(cobradata_example))

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