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(peaksdf, targetMz, tol, tolppm = TRUE, allowNoMatch = TRUE)

Arguments

peaksdf

data.frame with peaks information as generated by peaks2df()

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(peaks2df(Blank2022peaks), targetMz = 760.585, tol = 0.1, tolppm = FALSE)

MALDIcellassay documentation built on Sept. 11, 2024, 8:29 p.m.