getNormFactors: Get normalization factors from peak data.frame

View source: R/getNormFactors.R

getNormFactorsR Documentation

Get normalization factors from peak data.frame

Description

Get normalization factors from peak data.frame

Usage

getNormFactors(peaks, targetMz, tol, tolppm = TRUE, allowNoMatch = TRUE)

Arguments

peaks

List of Object of class MALDIquant::MassPeaks

targetMz

Numeric, target mass

tol

Numeric, tolerance around targetMz

tolppm

Logical, is the tolerance provided in ppm (TRUE) or Daltion (FALSE)

allowNoMatch

Logical, stop if targetMz is not fround in single spectrum? If TRUE spectra without targetMz match will be excluded.

Value

         List with two entries:
                                  norm_factor The normalization factor for each spectrum
                                  specIdx     The index of the spectra with a match for targetMz

Examples

data(Blank2022peaks)
getNormFactors(Blank2022peaks, targetMz = 760.585, tol = 0.1, tolppm = FALSE)

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