Stores a new gene set in the spata-object.

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

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

The input spata2 object containing the added or computed results.

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 ''.