Learn R Programming

OncoSubtype (version 1.0.0)

centroids_subtype: 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")

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.

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'

Examples

Run this code
if (FALSE) {
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')
}

Run the code above in your browser using DataLab