Sets and extracts the active (default) assay name.

activateAssay(object, assay_name, verbose = NULL)

activeAssay(object)

Arguments

object

An object of class SPATA2 or, in case of S4 generics, objects of classes for which a method has been defined.

assay_name

Character value. The name of the assay to activate as the default assay

verbose

Logical. If TRUE, informative messages regarding the computational progress will be printed.

(Warning messages will always be printed.)

Value

  • activateAssay(): Updated SPATA2 object.

  • activateAssay(): Character value. Name of the currently active assay.

Examples

data("example_data")

object <- example_data$object_UKF275T_diet

activeAssay(object)