normMethod_RMS.Rd
Called internally by normSpectra
. Normalizes the intensity data of each input spectrum by dividing each peak's intensity by RMS error. Capable of normalizing 6 spectra to the same m/z value at once.
norm_RMS(dat, mass_dat, spectra_cols)
dat | The name of the spectral data frame, containing |
---|---|
mass_dat | A character string; the name of the column in |
spectra_cols | A character string; the names of the column in |
Returns a new data frame including the original m/z data and normalized intensity data.
https://github.com/wesleyburr/subMaldi
Kristen Yeh <kristenyeh@trentu.ca> Wesley Burr <wesleyburr@trentu.ca>
## Load sample dataset "Master2.rda" data("Master2") ## Normalize spectrum "Before1" using the RMS method ex <- normSpectra(dat = Master2, mass_dat = "full_mz", method = "RMS", spectra_cols = "Before1")