normalizeByFactor: Apply normalization factors to spectra

View source: R/normalizeByFactor.R

normalizeByFactorR Documentation

Apply normalization factors to spectra

Description

Apply normalization factors to spectra

Usage

normalizeByFactor(spec, factors)

Arguments

spec

List of MALDIquant::MassSpectrum or MALDIquant::MassPeaks

factors

Numeric vector of normalization factors. See getNormFactors().

Value

        List of normalized Spectra or Peaks

Examples

#' data(Blank2022peaks)
normFactors <-  getNormFactors(Blank2022peaks, 
                               targetMz = 760.585, 
                               tol = 0.1, 
                               tolppm = FALSE)
normPeaks <- normalizeByFactor(Blank2022peaks, 
                               normFactors$norm_factor)

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