Accessor and replacement functions for splv slot
Source: R/AllGenerics.R, R/COBRAPerformance.R, R/COBRAPlot.R
splv.RdAccessor and replacement functions for the splv slot in a
COBRAPerformance or COBRAPlot object.
Usage
splv(x, ...)
splv(x, ...) <- value
# S4 method for class 'COBRAPerformance'
splv(x)
# S4 method for class 'COBRAPerformance,character'
splv(x) <- value
# S4 method for class 'COBRAPlot,character'
splv(x) <- valueValue
The accessor function returns a character string giving the name of a feature annotation to use for stratification.
Examples
data(cobradata_example)
cobraperf <- calculate_performance(cobradata_example,
binary_truth = "status",
aspects = "fdrtpr", splv = "expr_cat")
#> Warning: Object doesn't have a slot sval. Please run update_cobradata(). For consistency, I will return an empty data.frame
#> column DESeq2 is being ignored for NBRS calculations
#> column DESeq2 is being ignored for TPR calculations
#> column DESeq2 is being ignored for FDR calculations
splv(cobraperf)
#> [1] "expr_cat"