normalize_area_tidy: Normalize peak areas across batches

View source: R/data_processing.R

normalize_area_tidyR Documentation

Normalize peak areas across batches

Description

GC response varies varies across batches, producing different peak areas for same lipid cocncentration. This function normalizes the peak area across batches for consistent results within an analysis. Current implementation normalizes to the batch with the smallest mean peak area (non-detects not treated as 0 and not included in the average). Averages used for the correction factor only includes experimental samples, blanks (B), and methylation controls (C) (ie. internal standard, M1M2, and FAME). This is consistent with the Excel example calculations provided by Jess.

Usage

normalize_area_tidy(df)

Arguments

df

peak list as dataframe or tibble, loaded using load_batch() function.

Details

This should only be used VERY carefully and under extreme circumstances, as it introduces some dicey assumptions and may not be totally statistically valid

Value

Returns with same fields as input dataframe as well as Normalized CFactor (conversion factor; used for normalization), NormalizedArea and other intermeidates used in normalization calculations.


mlfelice/plfaR documentation built on June 9, 2022, 4:28 p.m.