View source: R/normalizeByFactor.R
normalizeByFactor | R Documentation |
Apply normalization factors to spectra
normalizeByFactor(spec, factors)
spec |
List of MALDIquant::MassSpectrum or MALDIquant::MassPeaks |
factors |
Numeric vector of normalization factors. See getNormFactors(). |
List of normalized Spectra or Peaks
#' data(Blank2022peaks)
normFactors <- getNormFactors(Blank2022peaks,
targetMz = 760.585,
tol = 0.1,
tolppm = FALSE)
normPeaks <- normalizeByFactor(Blank2022peaks,
normFactors$norm_factor)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.