getTopFeatures-PCOSP-method: Get the top features for classification using a PCOSP model...

Description Usage Arguments Value Examples

Description

Get the top features for classification using a PCOSP model object.

Usage

1
2
## S4 method for signature 'PCOSP'
getTopFeatures(object, numModels)

Arguments

object

A PCOSP model object which has been trained with trainModel.

numModels

An integer specifying the number of top models to use features from. Defaults to top 10% of KTSPs models.

Value

A character vector of gene names representing the unique genes from the top numModels KTSPs models in the model object.

Examples

1
2
3
4
data(sampleTrainedPCOSPmodel)

# Get the top features
topFeatures <- getTopFeatures(sampleTrainedPCOSPmodel, numModels=5)

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