Learn R Programming

metamorphr (version 0.2.0)

transform_log: Transforms the intensities by calculating their log

Description

Log-transforms intensities. The default (base = 10) calculates the log10. This transformation can help reduce heteroscedasticity. See references for more information.

Usage

transform_log(data, base = 10)

Value

A tibble with log-transformed intensities.

Arguments

data

A tidy tibble created by read_featuretable.

base

Which base should be used for the log-transformation. The default (10) means that log10 values of the intensities are calculated.

References

  • R. A. Van Den Berg, H. C. Hoefsloot, J. A. Westerhuis, A. K. Smilde, M. J. Van Der Werf, BMC Genomics 2006, 7, 142, DOI 10.1186/1471-2164-7-142.

Examples

Run this code
toy_metaboscape %>%
  impute_lod() %>%
  transform_log()

Run the code above in your browser using DataLab