An R6 object to store signatures generated from experiments, including metadata, signature, and an optional differential expression analysis result dataframe.
`OmicSignature` uses R6 reference semantics: assigning an object to a new variable does not make an independent copy. Both variables point to the same mutable object, so changes through one variable are visible through the other. Use `$clone()` when an independent copy is needed, and `$clone(deep = TRUE)` when nested R6 objects also need to be copied.
Active bindings
metadataa list to describe the metadata
signaturea dataframe contains probe_id, feature_name, score (optional) and group_label (optional)
difexpa dataframe for differential expression result
removeDifexpa function to remove difexp from the object
Methods
Method new()
Create a new OmicSignature object
Usage
OmicSignature$new(metadata, signature, difexp = NULL, print_message = FALSE)