subtract_blanks_tidy: Subtract surrogate and methylation standard peak areas

View source: R/data_processing.R

subtract_blanks_tidyR Documentation

Subtract surrogate and methylation standard peak areas

Description

Gutknecht lab PLFA runs all include a 19;0 surrogate standard spiked into soil samples before extraction, and extracted lipids are suspended in 13:0 control solution. We need to subtract the peak area due to these samples, so that we only measure lipids from the soil sample. This function subtracts 13:0 and 19:0 peak areas to account for this. User must specify the DataFileNames associated with the controls used for peak subtraction. User may also select peaks for subtraction (default is 13:0 and 19:0).

Usage

subtract_blanks_tidy(
  df,
  blanks = c("100.raw", "101.raw"),
  lipids = c("13:0", "19:0")
)

Arguments

df

Dataframe or tibble with NormalizedPeakArea. Use the output from normalize_area_tidy() function.

blanks
lipids

Details

Might want to integrate id of blanks etc. in the metadata.


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