View source: R/cataloguesClustering.R
cataloguesClustering | R Documentation |
Cluster sample catalogues or signatures using hierarchical clustering with average linkage. The distance metric used is 1 - cosine similarity, so the clustering is based on the shape/direction of the catalogue/signature vectors.
cataloguesClustering(samplescatalogues, nclusters, outdir = NULL)
samplescatalogues |
catalogues or signatures, with colnames as sample or signature names and rownames as the channel names |
nclusters |
number of clusters, can be a single positive integer or a list of integers |
outdir |
if specified, plot results into the outdir folder |
returns a list containing clustering results for each number of clusters requested
resClust <- cataloguesClustering(catalogues,2:10,"results/")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.