Description Usage Arguments Value References Examples
Using Nearest Template Prediction (NTP) based on predefined templates derived from current identified subtypes to assign potential subtype label on external cohort.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
expr |
A numeric matrix with row features and sample columns; data is recommended to be z-scored. |
templates |
A data frame with at least two columns; class (coerced to factor) and probe (coerced to character). |
scaleFlag |
A logic value to indicate if the expression data should be further scaled. TRUE by default. |
centerFlag |
A logic value to indicate if the expression data should be further centered. TRUE by default. |
nPerm |
An integer value to indicate the permutations for p-value estimation. |
distance |
A string value to indicate the distance measurement. Allowed values contain c('cosine', 'pearson', 'spearman', 'kendall'); "cosine" by default. |
seed |
An integer value for p-value reproducibility. |
verbose |
A logic value to indicate whether console messages are to be displayed; TRUE by default. |
doPlot |
A logic value to indicate whether to produce prediction heatmap; FALSE by default. |
fig.path |
A string value to indicate the output path for storing the nearest template prediction heatmap. |
fig.name |
A string value to indicate the name of the nearest template prediction heatmap. |
width |
A numeric value to indicate the width of output figure. |
height |
A numeric value to indicate the height of output figure. |
A figure of predictive heatmap by NTP (.pdf) and a list with the following components:
ntp.res
a data.frame storing the results of nearest template prediction (see ntp).
clust.res
similar to 'clust.res' returned by 'getMOIC()' or 'get
mo.method
a string value indicating the method used for prediction.
Hoshida, Y. (2010). Nearest Template Prediction: A Single-Sample-Based Flexible Class Prediction with Confidence Assessment. PLoS ONE 5, e15543.
1 | # There is no example and please refer to vignette.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.