getModality.Rd
Extracts the molecular modality of chosen molecular assay.
getModality(object, ...)
# S4 method for class 'SPATA2'
getModality(object, assay_name = activeAssay(object), ...)
# S4 method for class 'MolecularAssay'
getModality(object, ...)
An object of class SPATA2
or, in case of S4 generics,
objects of classes for which a method has been defined.
Used to absorb deprecated arguments or functions.
Only relevant if the SPATA2
object contains more than
one assay: Denotes the assay of interest and thus the
molecular modality to use. Defaults to the active assay
as set by activateAssay()
.
Character value.
library(SPATA2)
object <- loadExampleObject("UKF275T")
getModality(object)