optimize_silhouette | R Documentation |
Find optimal FindClusters() resolution value to maximize silhouette score
optimize_silhouette(
sobject,
test_res = seq(0.05, 0.75, by = 0.05),
summary_plot = TRUE,
reduction = "pca"
)
sobject |
A Seurat object containing all of the cells for analysis (required) |
test_res |
A numeric vector of resolution values to test |
summary_plot |
A logical value indicating whether to plot the results |
reduction |
The reduction data used (default is "pca"). |
This function takes in a Seruat object returns a data frame of silhouette scores for each resolution value
A numeric value
## Not run:
optimize_silhouette(sobject = seurat_obj,
test_res = seq(0.1, 0.9, by = 0.1))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.