get_silhouette | R Documentation |
Returns an object 'sil' of class 'silhouette' (from package cluster), which is an n x 3 matrix. For each obs i, the first col is its cluster identity, second col is closest neighbor, and third col is silhouette score (-1,1) where -1: clusters assigned wrong way, 0: clusters indifferent, 1: clusters well apart Requires PCA matrix embedding to have been calculated on the input object
get_silhouette( input, pcs = 10, distmetric = "euclidean", anno = "seurat_clusters" )
input |
Seurat Object or ExpressionSet, where PCA matrix has been calculated and assigned to PCA slot |
pcs |
Number of principal components to use |
distmetric |
Distance metric "euclidean", "manhattan" |
anno |
column name in meta.data or pData column name that refers to the cluster annotations |
get_silhouette(pfizer, anno = 'cluster_ID')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.