predictClasses-SurvivalExperiment-PCOSP_or_RLS_or_RGA-method: Predict Survival Prognosis Classes and Risk Scores for A...

Description Usage Arguments Value See Also Examples

Description

Predict Survival Prognosis Classes and Risk Scores for A CohortList Using a PCOSP, RLSModel or RGAModel object.

Usage

1
2
## S4 method for signature 'SurvivalExperiment,PCOSP_or_RLS_or_RGA'
predictClasses(object, model, ...)

Arguments

object

A SurvivalExperiment object to predict classes for.

model

A trained PCOSP model to use for predicting classes.

...

Fall through arguments to BiocParallel::bplapply for configuring parallelization settings.

Value

A SurvivalExperiment with the predictions in its metadata and a column in colData, prob_good_survival, which contains the proportion of models which predicted good prognosis for each sample.

See Also

BiocParallel::bplapply, switchBox::SWAP.KTSP.Classify

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(sampleTrainedPCOSPmodel)
data(samplePCSIsurvExp)

# Set parallelization settings
BiocParallel::register(BiocParallel::SerialParam())

# Make predictions
PCOSPpredSurvExp <- predictClasses(samplePCSIsurvExp,
  model=sampleTrainedPCOSPmodel)
head(colData(PCOSPpredSurvExp))

bhklab/PDATK documentation built on Dec. 27, 2021, 7:46 a.m.