View source: R/edata_transform.R
edata_transform | R Documentation |
This function applies a transformation to the e_data element of omicsData
edata_transform(omicsData, data_scale)
omicsData |
an object of the class 'pepData', 'proData', 'metabData',
'lipidData', or 'nmrData', created by
|
data_scale |
a character string indicating the type of transformation to be applied to the data. Valid values for 'pepData', 'proData', 'metabData', 'lipidData', or 'nmrData': 'log2', 'log', 'log10', or 'abundance'. A value of 'abundance' indicates the data has previously undergone one of the log transformations and should be transformed back to raw values with no transformation applied. Valid values for 'seqData': 'upper', 'median', 'lcpm'. For 'seqData', 'lcpm' transforms by log2 counts per million, 'upper' transforms by the upper quartile of non-zero counts, and 'median' transforms by the median of non-zero counts. |
For all but seqData, this function is intended to be used before analysis of the data begins, and data are typically analyzed on a log scale. This function is not applicable to seqData objects, as any transformations needed e.g. to allow more meaningful visualization of seqData objects are performed within the pertinent functions.
data object of the same class as omicsData
Kelly Stratton, Natalie Heller
library(pmartRdata)
mymetab <- edata_transform(omicsData = metab_object, data_scale = "log2")
attr(mymetab, "data_info")$data_scale
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.