normMethod_quantile.Rd
Called internally by normSpectra()
. Normalizes the distributions of the values in each spectrum in a set. Sorts the intensity data of each spectrum and evaluates the average intensity for each rank. The intensity values are then replaces with the averaged intensities, rearranged in their original order. Capable of analyzing 2-6 spectra at once.
norm_quantile(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 "Master.rda" data("Master") ## Normalize the spectra "Before1" and "Before2" # using the quantile method ex <- normSpectra(dat = Master, mass_dat = "full_mz", method = "quantile", spectra_cols = c("Before1", "Before2"))