norm_peaks: Normalisation of peak abundancies

Description Usage Arguments Value Examples

View source: R/norm_peaks.R

Description

Calculates the relative abundance of a peak by normalising an intensity measure with regard to the cumulative abundance of all peaks that are present within an individual sample. The desired measure of peak abundance needs to be included in a column of the input dataset aligned with align_chromatograms.

Usage

1
2
3
4
5
6
norm_peaks(
  data,
  conc_col_name = NULL,
  rt_col_name = NULL,
  out = c("data.frame", "list")
)

Arguments

data

Object of class GCalign created with align_chromatograms or a list of data frames that contain peak list of individual samples.

conc_col_name

Character giving the name of a column in data containing a variable describing the abundance of peaks (e.g. peak area or peak height).

rt_col_name

A character giving the name of the column containing the retention times. The decimal separator needs to be a point.

out

character defining the format of the returned data. Either "List" or "data.frame".

Value

Depending on out either a list of data frame or a single data frame were rows represent samples and columns relative peak abundances. Abundances are given as percentages.

@author Martin Stoffel (martin.adam.stoffel@gmail.com) & Meinolf Ottensmann (meinolf.ottensmann@web.de)

Examples

1
2
3
4
## aligned gc-dataset
data("aligned_peak_data")
## returns normalised peak area
norm_peaks(data = aligned_peak_data, conc_col_name = "area", rt_col_name = "time")

GCalignR documentation built on Aug. 26, 2020, 9:06 a.m.