summarize_transitions: Summarize transitions

View source: R/summarize.R

summarize_transitionsR 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")

ahmohamed/lipidr documentation built on July 7, 2023, 2:22 a.m.