normalize {MALDIcellassay}R Documentation

Normalize spectra and peaks

Description

Normalize spectra and peaks

Usage

normalize(spec, peaks, normMeth, normMz, normTol)

Arguments

spec

List of MALDIquant::MassSpectrum

peaks

List of MALDIquant::MassPeaks

normMeth

Character, normalization method. Options are "TIC", "median" and "mz".

normMz

Numeric, mz used to normalize.

normTol

Numeric, tolerance around normMz.

Value

List of lists of normalized MALDIquant::MassSpectrum, normalized MALDIquant::MassPeaks, normalization factors as well as indicies of spectra containing the normMz in case of normMeth = "mz",

Examples

data(Blank2022spec)
data(Blank2022peaks)
norm <- normalize(Blank2022spec, Blank2022peaks, normMeth = "mz", normMz = 760.585, normTol = 0.1)

# normalization factors
norm$factor 

[Package MALDIcellassay version 0.4.47 Index]