powered by
Get normalization factors from peak data.frame
getNormFactors(peaksdf, targetMz, tol, tolppm = TRUE, allowNoMatch = TRUE)
List with two entries: norm_factor The normalization factor for each spectrum specIdx The index of the spectra with a match for targetMz
data.frame with peaks information as generated by peaks2df()
Numeric, target mass
Numeric, tolerance around targetMz
Logical, is the tolerance provided in ppm (TRUE) or Daltion (FALSE)
Logical, stop if targetMz is not fround in single spectrum? If TRUE spectra without targetMz match will be excluded.
data(Blank2022peaks) getNormFactors(peaks2df(Blank2022peaks), targetMz = 760.585, tol = 0.1, tolppm = FALSE)
Run the code above in your browser using DataLab