fcluster | R Documentation |
Cluster features
fcluster(
object,
distmat = NULL,
method = "cmeans",
k = 2:10,
verbose = TRUE,
plot = TRUE,
label = if ("gene" %in% fvars(object)) "gene" else "feature_id",
alpha = 1,
nrow = if (length(method) > 1) length(method) else NULL,
ncol = NULL
)
object |
SummarizedExperiment |
distmat |
distance matrix |
method |
'cmeans' |
k |
number of clusters |
verbose |
TRUE or FALSE |
plot |
TRUE or FALSE |
label |
fvar |
alpha |
fraction |
nrow |
number |
ncol |
number |
SummarizedExperiment
SummarizedExperiment
object <- twofactor_sumexp()
distmat <- fdist(object)
fcluster(object) # membership-based colors
fcluster(object, distmat) # silhouette-based colors
fcluster(object, distmat, method = c('cmeans', 'hclust', 'pamk')) # more methods
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.