Retrieves the metadata variable data frame for a specified assay in the given object. If the metadata variable data frame is empty, it creates a new one based on the molecule names.

Do not confuse with getMetaDf() which contains meta variables for the observations.

getMetaVarDf(object, assay_name = activeAssay(object), verbose = TRUE)

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

verbose

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

(Warning messages will always be printed.)

Value

A data frame containing metadata variables for the specified assay.