Description Usage Arguments Value Examples
Predict Survival Prognosis Classes and Risk Scores for A CohortList
Using
a PCOSP
, RLSModel
or RGAModel
object.
1 2 | ## S4 method for signature 'CohortList,PCOSP_or_RLS_or_RGA'
predictClasses(object, model, ...)
|
object |
A |
model |
A trained |
... |
Fall through arguments to |
A CohortList
with the model predictions attached to each
SurvivalExperiment
in the metadata slot and the prob_good_survival
column added to the colData slot.
1 2 3 4 5 6 7 8 9 10 | data(sampleTrainedPCOSPmodel)
data(sampleCohortList)
# Set parallelization settings
BiocParallel::register(BiocParallel::SerialParam())
# Make predictions
PCOSPpredCohortList <- predictClasses(sampleCohortList[seq_len(2)],
model=sampleTrainedPCOSPmodel)
head(colData(PCOSPpredCohortList[[1]]))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.