centroids_subtype {OncoSubtype}R Documentation

Predict the subtypes of selected cancer type based published papers

Description

Predict the subtypes of selected cancer type based published papers

Usage

centroids_subtype(data, disease = "LUSC")

Arguments

data

data set to predict the subtypes which is a numeric matrix with row names of features and column names of samples

disease

character string of the disease to predict subtypes, currently support 'LUSC', 'LUAD'

Value

an object of class "SubtypeClass" with four slots: genes used for predictiong, predicted subtypes of samples, a matrix of predicting scores, and the method.

Examples

## Not run: 
library(OncoSubtype)
data <- get_median_centered(example_fpkm)
data <- assays(data)$centered
rownames(data) <- rowData(example_fpkm)$external_gene_name
centroids_subtype(data, disease = 'HNSC')

## End(Not run)

[Package OncoSubtype version 1.0.0 Index]