Description Usage Arguments Value Examples
View source: R/p05_profile_matrix_kmeans.R
This function perform k-means clustering on the profile matrix using stats::kmeans() function. It tries to cluster the matrix by default "Hartigan-Wong" algorithm. If this algorithm fails at Quick-TRANSfer stage, clustering is done with "MacQueen"
1 2 3 4 5 6 7 8 9 | profile_matrix_kmeans(
mat,
km,
clustFile,
name,
kmIter = 100,
kmStarts = 150,
...
)
|
mat |
profile matrix |
km |
number of cluster centers |
clustFile |
File to which cluster data will be stored |
name |
Sample name |
kmIter |
iter.max argument of stats::kmeans() function. Default: 100 |
kmStarts |
nstart argument of stats::kmeans() function. Default: 150 |
... |
other arguments for stats::kmeans() function |
A list with two elements:
km: kmeans clustering object returned by stats::kmeans
geneClusters: a dataframe with columns: geneId, cluster
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.