getTopFeatures,PCOSP-method {PDATK} | R Documentation

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

### Description

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

### Usage

    ## 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

    data(sampleTrainedPCOSPmodel)

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

[Package PDATK version 1.0.2 Index]