Learn R Programming

OncoSubtype (version 1.0.0)

ml_subtype: Predict the subtypes of selected cancer type using machine learning

Description

Predict the subtypes of selected cancer type using machine learning

Usage

ml_subtype(
  data,
  disease = "LUSC",
  method = "rf",
  removeBatch = TRUE,
  seed = NULL
)

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', and 'BLCA'.

method

character string of the method to use currently support 'rf'.

removeBatch

whether do batch effect correction using limma::removeBatchEffect, default TRUE.

seed

integer seed to use.

References

  1. wilkerson2010OncoSubtype

  2. wilkerson2012OncoSubtype

  3. tcga2015OncoSubtype

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
ml_subtype(data, disease = 'LUAD', method = 'rf', seed = 123)
}

Run the code above in your browser using DataLab