Accessor and replacement functions for onlyshared slot
Source: R/AllGenerics.R, R/COBRAPerformance.R, R/COBRAPlot.R
onlyshared.RdAccessor and replacement functions for the onlyshared slot in a
COBRAPerformance or COBRAPlot object.
Usage
onlyshared(x, ...)
onlyshared(x, ...) <- value
# S4 method for class 'COBRAPerformance'
onlyshared(x)
# S4 method for class 'COBRAPerformance,logical'
onlyshared(x) <- value
# S4 method for class 'COBRAPlot,logical'
onlyshared(x) <- valueValue
The accessor function returns a logical indicating whether only features that are shared between result and truth are retained, or if all features in the truth are used.
Examples
data(cobradata_example)
cobraperf <- calculate_performance(cobradata_example,
binary_truth = "status",
aspects = "fdrtpr")
#> 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
head(onlyshared(cobraperf))
#> [1] FALSE