get_genes: Extract genes list from each gene clusters.

View source: R/get_genes.R

get_genesR Documentation

Extract genes list from each gene clusters.

Description

Extract genes list from each gene clusters. Can extract genes from all clusters (default) or from specified clusters.

Usage

get_genes(object, cluster = "all", top = FALSE)

Arguments

object

A ClusterSet object.

cluster

A vector of gene cluster identity (all by default).

top

A logical to indicate whether to provide top genes.

Value

A character vector.

Examples

load_example_dataset('7871581/files/pbmc3k_medium_clusters')
# 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)
x <- get_genes(pbmc3k_medium_clusters, cluster = 1, top = TRUE)


dputhier/scigenex documentation built on Dec. 20, 2024, 2:22 a.m.