This function applies a transformation to the e_data element of ftmsData
edata_transform(ftmsObj, data_scale)
an object of the class 'peakData' or 'compoundData' , usually created by as.peakData
or mapPeaksToCompounds
.
a character string indicating the type of transformation to be applied to the data. Valid values are: 'log2', 'log', 'log10', 'pres', 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. A value of 'pres' indicates the data should be transformed to presence/absence data.
data object of the same class as ftmsObj
This function is intended to be used before analysis of the data begins. Data are typically analyzed on a log or presence/absence scale.