Obtain gene names

getGenes(object, of_gene_sets = "all", in_sample = "", simplify = TRUE)

getGenesInteractive(object)

Arguments

object

A valid spata-object.

of_gene_sets

A character vector specifying the gene sets from which to return the gene names.

in_sample

The sample(s) in which the genes have to be expressed in order to be included.

simplify

Logical. If set to TRUE the list to be returned will be simplified into a character vector.

Value

A list named according to the input of of_gene_sets in which each element is a character vector containing the names of genes the specific gene set is composed of. Is coalesced to a vector if simplify is set to TRUE.