Learn R Programming

OncoSubtype (version 1.0.0)

get_rf_pred: Predict the subtypes of selected cancer type

Description

Predict the subtypes of selected cancer type

Usage

get_rf_pred(train_set, test_set, method = "rf", seed = NULL)

Value

a matrix with column names of subtypes and predicted probabilities.

Arguments

train_set

training set with rownames of samples, first column named 'mRNA_subtype' and the rest of features and expression values.

test_set

test set with rownames of features and colnames of samples.

method

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

seed

integer seed to use.