edata_transform: Apply a Transformation to the Data

View source: R/edata_transform.R

edata_transformR Documentation

Apply a Transformation to the Data

Description

This function applies a transformation to the e_data element of ftmsData

Usage

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.

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.

Value

data object of the same class as ftmsObj

Author(s)

Allison Thompson, Kelly Stratton


EMSL-Computing/fticRanalysis documentation built on Dec. 18, 2024, 9:51 p.m.