Description Usage Arguments Details Value Examples
This function determines the optimal number of clusters for a dataset. This function first generates a distance matrix and a hclust object, and then cuts the tree at different heights.
1 2 3 4 5 |
object |
An EMSet object that has undergone PCA reduction. |
... |
... |
conservative |
Use conservative (more stable) clustering result (TRUE or FALSE). Default: TRUE. |
nres |
Number of resolutions to test, ranging from 20 to 100. Default: 40. |
remove.outliers |
Remove cells that weren't assigned a cluster with dynamicTreeCut. This is indicative of outlier cells within the sample. Default: FALSE. |
dims |
Number of PC components to use in distance matrix generation. Default: 20 |
This will return an EMSet with the following objects:
A distance matrix.
A hclust object.
Cluster identities generated by dynamicTreeCut.
A matrix containing a cluster identities from cutting at 40 different heights.
Optimum cluster identities for each cell.
Number of clusters.
Optimal tree height used to generate cluster identities.
A dataframe containing information on each generated clustering result, that is used to determine the optimal cluster number.
An EMSet
with cluster information loaded into
the clusterAnalysis and colInfo slots
1 2 3 4 5 6 | # Load example EMSet
em_set <- ascend::analyzed_set
# Run CORE with default parameters
em_set <- runCORE(em_set, conservative = TRUE,
dims = 20, nres = 40, remove.outliers = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.