A function to pull cluster information from a domino object
Usage
dom_clusters(dom, labels = FALSE)
Arguments
- dom
A domino object that has been created with create_domino()
- labels
A boolean for whether to return the cluster labels for each cell or the clusters used for inferring communication
Value
A vector containing either the names of the clusters used OR factors of the cluster label for each individual cell
Examples
cluster_names <- dom_clusters(dominoSignal:::pbmc_dom_built_tiny)
cell_cluster_label <- dom_clusters(dominoSignal:::pbmc_dom_built_tiny, labels = TRUE)