Description Usage Arguments Details Value Author(s) See Also Examples
This function will perform hierarchical clustering on the noise consensus matrix allowing the user to investigate the appropriate number of clusters, k, considering the noise within the experiment.
1 | cluster_consensus(consensus_matrix, cluster_num, method = "complete")
|
consensus_matrix |
A noise consensus output by |
cluster_num |
The number of clusters expected from the hierarchical clustering of the noise consensus matrix. |
method |
The hierarchical clustering method to be used on the consensus. |
We have found it useful to identify the optimal number of clusters in terms of resiliance to noise by examining these metrics by cutting hierarchical clustering dendograms of the noise consensus and comparing the results to the original clustering labels. To do this create a vector containing each number of clusters one wishes to examine (the function automatically determines the results for the dataset as a single cluster) and then cluster the consensus with this function.
Frequently one will want to assess multiple possible cluster number
situations at once. In this case it is recommended that one use a
lapply
in conjunction with a vector of all biologically
reasonable cluster numbers to fulfill the task of attempting to
identify the optimal cluster number.
The output is a vector of cluster labels based on hierarchical clustering
of the noise consensus. In the event that a vector is supplied for
number of clusters in conjunction with lapply
, then the output
is a data.frame of the cluster labels for each of the various number
of clusters deemed biologically reasonable by the user.
David T. Severson <david_severson@hms.harvard.edu>
Maintainer: Benjamin Schuster-Boeckler <benjamin.schuster-boeckler@ludwig.ox.ac.uk>
compute_consensus
report_cluster_metrics
report_cell_metrics
1 2 3 4 5 | data(analysis_examples)
vector <- seq(from=2, to=5, by=1)
BEARscc_clusts.df <- cluster_consensus(noise_consensus, vector)
BEARscc_clusts.df
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.