Calculate a single intensity for molecules with multiple transitions, by determining the average or maximum intensity.

summarize_transitions(data, method = c("max", "average"))

Arguments

data

LipidomicsExperiment object.

method

Choose to summarize multiple transitions by taking the average or maximum intensity. Default is max

Value

A LipidomicsExperiment object with single intensities per lipid molecule

Examples

datadir <- system.file("extdata", package = "lipidr") filelist <- list.files(datadir, "data.csv", full.names = TRUE) d <- read_skyline(filelist)
#> Successfully read 3 methods. #> Your data contain 58 samples, 10 lipid classes, 277 lipid molecules.
clinical_file <- system.file("extdata", "clin.csv", package = "lipidr") d <- add_sample_annotation(d, clinical_file) d_summarized <- summarize_transitions(d, method = "average")