Returns a named vector (gene as names) and cluster as value.

gene_cluster(object, cluster = 0, as_string = FALSE)

Arguments

object

a ClusterSet object.

cluster

The cluster of interest. 0 means all cluster. Otherwise a non-null integer value.

as_string

Return cluster names as strings.

Examples

# load a dataset
load_example_dataset('7871581/files/pbmc3k_medium_clusters')
#> |-- INFO :  Dataset 7871581/files/pbmc3k_medium_clusters was already loaded. 
g_clust <- gene_cluster(pbmc3k_medium_clusters)