Description Usage Arguments Details
Bootstrap genes to calculate a consensus matrix
1 | BootstrapGenes(data, FUN, subsetSize, nTimes = 100, verbose = TRUE, ...)
|
data |
A data matrix, numerical data frame, or ExpressionSet object. |
FUN |
A function that, given a data matrix, returns a vector of cluster assignments based on the columns Examples of functions with this behavior are cutHclust, cutKmeans, cutPam, and cutRepeatedKmeans. |
subsetSize |
An optional integer argument used to select a subset of genes. If present, each iteration of the bootstrap selects subsetSize rows from the original data matrix. If missing, each bootstrap contains the same number of rows as the original data matrix. |
nTimes |
The number of bootstrap samples to collect. |
verbose |
A logical flag |
... |
Additional arguments passed to the classifying function, FUN. |
There are generally two doable approach to obtain a consensus matrix for clustering samples: (1) subsampling samples. (2) bootstrap genes. Bootstrap samples is not recommended since when a sample is sampled multiple times, it will form a cluster by itself. This function applies bootstrap on the genes (rows of a matrix) so as to perturb the data when generating a consensus matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.