a R6 object to store signatures generated from experiments. In cluding metadata, signature, and an optional differential expression analysis result dataframe.
updated 10/2024
Active bindings
metadata
a list to describe the metadata
signature
a dataframe contains probe_id, feature_name, score (optional) and direction (optional)
difexp
a dataframe for differential expression result
removeDifexp
a 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)
Arguments
metadata
required. a list. See `createMetadata` for more information
signature
required. a vector, or a dataframe including columns: "probe_id", "feature_name" and "direction", and an optional column "score"
difexp
optional
print_message
use TRUE if want to see all messages printed
Print an OmicSignature object
Usage
OmicSignature$extractSignature(conditions)
Arguments
conditions
conditions for new signatures
Returns
a dataframe of new signatures
Method clone()
The objects of this class are cloneable with this method.
Usage
OmicSignature$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.