predictClasses,CohortList,PCOSP_or_RLS_or_RGA-method {PDATK} | R Documentation |
CohortList
Using
a PCOSP
, RLSModel
or RGAModel
object.Predict Survival Prognosis Classes and Risk Scores for A CohortList
Using
a PCOSP
, RLSModel
or RGAModel
object.
## 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.
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]]))