summarize_transitions: Summarize transitions

Description Usage Arguments Value Examples

View source: R/summarize.R

Description

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

Usage

1
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

1
2
3
4
5
6
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")

lipidr documentation built on Nov. 8, 2020, 7:50 p.m.