summarize_transitions {lipidr} | R Documentation

## Summarize transitions

### Description

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

### Usage

    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)
    clinical_file <- system.file("extdata", "clin.csv", package = "lipidr")
    d <- add_sample_annotation(d, clinical_file)
    d_summarized <- summarize_transitions(d, method = "average")

[Package lipidr version 2.8.1 Index]