calculateElutionShift: Calculate Elution Shift (of a Peak Group)

Description Usage Arguments Details Value Examples

View source: R/calculateElutionShift.R

Description

Calculate the Elution Shift of each chromatographic peak in a group of samples. For each sample, the Elution Shift is found by calculating the difference between the peak apex (max intensity) of that chromatographic peak and the median peak apex of all samples and normalizing it by the peak base (which is equal to the average difference between the two peak boundaries). The Elution Shift of the Peak Group is equal to the mean of the Elution Shift of each chromatographic peak.

Usage

1
calculateElutionShift(peakDataList, ptsList)

Arguments

peakDataList

A list of vectors containing characteristic information about a chromatographic peak - including the retention time range

ptsList

A list of 2D matrices containing the retention time and intensity values of a chromatographic peak

Details

This function repurposed from TargetedMSQC. Toghi Eshghi, S., Auger, P., & Mathews, W. R. (2018). Quality assessment and interference detection in targeted mass spectrometry data using machine learning. Clinical Proteomics, 15. https://doi.org/10.1186/s12014-018-9209-x

Value

The Elution Shift of a Peak Group (double)

Examples

1
2
3
4
# Calculate Elution Shift for each peak
data(ex_ptsList)
data(ex_peakDataList)
elutionShift <- calculateElutionShift(peakDataList = ex_peakDataList, ptsList = ex_ptsList)

MetaClean documentation built on Jan. 13, 2021, 6:30 p.m.