normMethod_max_set.Rd
Called internally by normSpectra
. Normalizes the intensity data of spectra to a scale of 0,1, where 1 is the single most intense peak of the spectral set. Capable of normalizing 1-6 spectra at once.
norm_max_set(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 of each input spectrum.
https://github.com/wesleyburr/subMaldi
Kristen Yeh <kristenyeh@trentu.ca> Wesley Burr <wesleyburr@trentu.ca>
## Load sample datasat "Master2.rda" data("Master2") ## Normalize the intensity data of two samples to the maximum of the blank ex <- normSpectra(dat = Master2, mass_dat = "full_mz", method = "max_set", spectra_cols = c("Blank1", "Before1", "Before2"))