normalize: Normalize spectra and peaks

View source: R/normalize.R

normalizeR Documentation

Normalize spectra and peaks

Description

Normalize spectra and peaks

Usage

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

Arguments

spec

List of MALDIquant::MassSpectrum or MALDIquant::MassPeaks objects

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.

Details

Typically MassSpectrum lists should be provided as spec, still its possible to provide peaks for both arguments spec and peaks in the case that no raw data (continuous spectra) is available. In this case the operations performed on spec and peaks are equal.

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 

CeMOS-Mannheim/MALDIcellassay documentation built on Jan. 24, 2025, 11:17 p.m.