getAssay: Obtain molecular assay

getAssayR Documentation

Obtain molecular assay

Description

Retrieves an object of class MolecularAssay from the provided object.

Usage

getAssay(object, assay_name = 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

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

Details

This function retrieves assay data from the provided object based on the specified assay name. It internally calls containsAssay() to ensure that the assay exists in the object.

Value

Assay data corresponding to the specified name.

See Also

activeAssay()


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