Replacement of threshold slot in a SplitTypeRdata object
Source: R/splitTypeRdata_class.R
threshold-set-SplitTypeRdata-method.RdA function for replacement of the threshold slot in a
SplitTypeRdata class.
Usage
# S4 method for class 'SplitTypeRdata'
threshold(x) <- valueExamples
## Two demo signatures
sign <- list("SignatureA"=c("EGFR", "CTTN", "ACTB"),
"SignatureB"=c("ACTR2", "AKT1"))
## Create a SplitTypeRdata object with the signatures
demo <- new("SplitTypeRdata", signatures=sign)
## Assign a classification threshold to each signature
threshold(demo) <- list("SignatureA"=0.12, "SignatureB"=-0.05)