Stores a new gene set in the spata-object.

addGeneSet(object, class_name, gs_name, genes, overwrite = FALSE)

addGeneSetsInteractive(object)

Arguments

object

A valid spata-object.

class_name

Character value. The class the gene set belongs to..

gs_name

Character value. The name of the new gene set.

genes

The genes of interest specified as a character vector.

overwrite

Logical. Overwrites existing gene sets with the same class_name - gs_name combination.

Value

An updated spata-object.

Details

Combines class_name and gs_name to the final gene set name. Gene set classes and gene set names are separated by '_' and handled like this in all additional gene set related functions which is why class_name must not contain any '_'.