Renames a molecular assay. Note that the name of an assay also defines it's molecular modality. Only rename if you know what you are doing.

renameMolecularAssay(
  object,
  assay_name,
  new_assay_name,
  set_signatures = FALSE
)

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

The name of the assay to be renamed.

new_assay_name

The new name of the assay.

set_signatures

Logical value. If TRUE, the slot @signatures of the assay is populated with a new list. The function checks if the value for new_assay_name is a known molecular modality of SPATA2. If this is the case, the corresponding list of signatures is set into the slot. Else, an empty list is used.

Value

The updated input object, containing the added, removed or computed results.