Extract genes list from each gene clusters. Can extract genes from all clusters (default) or from specified clusters.
get_genes(object, cluster = "all", top = FALSE)
A ClusterSet
object.
A vector of gene cluster identity (all by default).
A logical to indicate whether to provide top genes.
A character vector.
load_example_dataset('7871581/files/pbmc3k_medium_clusters')
#> |-- INFO : Dataset 7871581/files/pbmc3k_medium_clusters was already loaded.
# Get all selected genes
x <- get_genes(pbmc3k_medium_clusters)
# Get genes from gene cluster 1
x<- get_genes(pbmc3k_medium_clusters, cluster = 1)
# Get top 5 genes from cluster 1
pbmc3k_medium_clusters <- top_genes(pbmc3k_medium_clusters, top = 5)
#> |-- INFO : Results are stored in top_genes slot of ClusterSet object.
x <- get_genes(pbmc3k_medium_clusters, cluster = 1, top = TRUE)