Description Usage Arguments Value Examples
Refine pre-identified basal-like muscle invasive bladder cancer into either basal-inflamed or basal-noninflamed subtype based on a random forest classifier.
1 2 3 4 5 6 | refineBasal(
expr = NULL,
isBasal = NULL,
res.path = getwd(),
res.name = "REFINED_MIBC_BASAL"
)
|
expr |
A numeric expression matrix with row features and sample columns. |
isBasal |
A logic vector to indicate if the sample is basal-like or not. NULL by default and all samples will be assumed as basal-like. |
res.path |
A string value to indicate the path for saving the prediction result. |
res.name |
A string value to indicate the name of the output prediction table. |
A data.frame storing the random forest prediction results, including 'samID' for sample name, 'prob' for probability as basal-inflamed, and 'basal' for final classifications using 0.5 as cutoff.
1 2 3 4 5 6 7 8 | library(refineMIBC)
load(system.file("extdata", "demo.RData", package = "refineMIBC", mustWork = TRUE)) # load example data
expr <- demo$MIBC.expr
subt <- demo$MIBC.subt
isbasal <- subt$TCGA == "Basal_squamous"
iBasal <- refineBasal(expr = expr,
isBasal = isbasal)
head(iBasal)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.