Learn R Programming

MALDIcellassay (version 0.4.47)

getNormFactors: Get normalization factors from peak data.frame

Description

Get normalization factors from peak data.frame

Usage

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

Value

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

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.

Examples

Run this code
data(Blank2022peaks)
getNormFactors(peaks2df(Blank2022peaks), targetMz = 760.585, tol = 0.1, tolppm = FALSE)

Run the code above in your browser using DataLab