getModality: Obatin molecular modality

getModalityR Documentation

Obatin molecular modality

Description

Extracts the molecular modality of chosen molecular assay.

Usage

getModality(object, ...)

## S4 method for signature 'SPATA2'
getModality(object, assay_name = activeAssay(object), ...)

## S4 method for signature 'MolecularAssay'
getModality(object, ...)

Arguments

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.

assay_name

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().

Value

Character value.

Examples


library(SPATA2)

object <- loadExampleObject("UKF275T")

getModality(object)


theMILOlab/SPATA2 documentation built on Feb. 8, 2025, 11:41 p.m.