normalize | R Documentation |
Normalize spectra and peaks
normalize(spec, peaks, normMeth, normMz, normTol)
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. |
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.
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"
,
data(Blank2022spec)
data(Blank2022peaks)
norm <- normalize(Blank2022spec, Blank2022peaks, normMeth = "mz", normMz = 760.585, normTol = 0.1)
# normalization factors
norm$factor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.