This function applies a transformation to the e_data element of ftmsData

edata_transform(ftmsObj, data_scale)

Arguments

ftmsObj

an object of the class 'peakData' or 'compoundData' , usually created by as.peakData or mapPeaksToCompounds.

data_scale

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.

Value

data object of the same class as ftmsObj

Details

This function is intended to be used before analysis of the data begins. Data are typically analyzed on a log or presence/absence scale.

Author

Allison Thompson, Kelly Stratton