Description Usage Arguments Value
Internal. Takes the consensus vector for each K and performs hierachical clustering to get the final k clusters.
1 2 | getFinalPartition(consensusVector, K, n, sampleNames, finalLinkage, pathOutput,
verbose)
|
consensusVector |
list a vector of counts of how many times each pair of samples have been clustered together so far, for each value of K. |
K |
vector of integers representing numbeer of clusters to evaluate. |
n |
number of samples in input data matrix |
sampleNames |
vector with samples names (colnames of input data) |
finalLinkage |
heirarchical linkage method for producing a final classification with the consensus indexes |
pathOutput |
directory for output files |
verbose |
logical, print progress messages to screen |
A list with one element for each value of K, each containing:
consensusTree
: final heirarchical tree based on the matrix of consensus indexes after running all the iterations of the clustering.
consensusClass
: vector with the final cluster assignment for each sample.
consensusVector
: vector of consensus indexes for each pair of samples. The consensus index is the proportion of times that a pair of samples
was clustered together in the same group, out of the total number times they were in the same bootstrap sample.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.