transform_work_intensity: Transform intensity

View source: R/tidyMS_R6_TransitionCorrelations.R

transform_work_intensityR Documentation

Transform intensity

Description

Transform intensity

Usage

transform_work_intensity(
  pdata,
  config,
  .func,
  .funcname = NULL,
  intesityNewName = NULL,
  deep = FALSE
)

Arguments

pdata

data.frame

config

AnalysisConfiguration

.func

function to transform intensities e.g. log2

.funcname

generates new name from name of transformation and old working intensity column name.

intesityNewName

column name for new intensity, default NULL

Value

data.frame

Examples


dd <- prolfqua_data('data_spectronautDIA250_A')
config <- dd$config_f()
analysis <- dd$analysis(dd$data,config)
x <- transform_work_intensity(analysis, config, .func = log2)
stopifnot("log2_FG.Quantity" %in% colnames(x))
config <- dd$config_f()
x <- transform_work_intensity(analysis, config, .func = asinh)
stopifnot("asinh_FG.Quantity" %in% colnames(x))


wolski/prolfqua documentation built on Dec. 4, 2024, 11:18 p.m.