Description Usage Arguments Value Methods Author(s) References Examples
Normalize spectral data to a common scale using several different methods.
1 2 3 4 5 6 7 8 9 10 |
dat |
The name of the spectral data frame, containing |
mass_dat |
A character string; the name of the column in |
method |
A character string; the normalization method that should be used to process the data. See 'Methods' below for list of methods. Default = NULL. |
norm_mz |
Numeric. If |
upper |
Numeric. If |
lower |
Numeric. If |
spectra_cols |
A character vector; the names of the column in
|
showHI |
Logical. To be used with |
Returns a new data frame including the original m/z data and normalized intensity data.
Normalizes the intensity data of spectra to a scale of 0,1.
Normalizes the intensity data of spectra to a scale of 0,1, where 1 is the single most intense peak of the spectral set.
Normalizes the intensity data of each input spectrum to the intensity of the selected m/z peak.
Normalizes the intensity data of each input spectrum to the intensity of the selected m/z peak. Allows for less precise normalization; if data contains four decimal places, input m/z values can be input to 2 or 3 decimal places.
Evaluates the sum of all intensities (TIC) of each spectrum in a dataset. If the TIC of all spectra are not equal, their intensities are multiplied by a normalization factor.
Evaluates the sum of all intensities (TIC) of each spectrum in a dataset. If the TIC of all spectra are not equal, their intensities are multiplied by a normalization factor. Each peak intensity is then divided by the normalized peak intensity so that each spectrum in the dataset has a TIC of 1.
Normalizes each spectrum by dividing each intensity by the spectrum's RMS.
Evaluates the median of each spectrum in a dataset after removing 0 values introduced by mapping. If the medians are not equal between spectra, a normalization factor is applied to the spectral intensities until all median intensities in the dataset are equal.
Evaluates the standard deviation of intensity values within the same noisy region (a region lacking peaks) of each spectrum. All intensities in each spectrum are then divided by the spectrum's standard deviation in the noise region. All output spectra should have a standard deviation of 1 in the selected region.
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.
Kristen Yeh <kristenyeh@trentu.ca> Wesley Burr <wesleyburr@trentu.ca> Sophie Castel <sophie.castel@ontariotechu.net>
https://github.com/wesleyburr/subMaldi
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Load sample dataset "Master2.rda"
data("Master2")
## Normalize spectrum "Before1" to its maximum intensity
ex <- normSpectra(dat = Master2, mass_dat = "full_mz",
method = "max", spectra_cols = "Before1")
## Normalize the spectra "Before1" and "Before2" to the TIC
ex <- normSpectra(dat = Master2, mass_dat = "full_mz",
method = "TIC", spectra_cols = c("Before1", "Before2"))
## Normalize spectrum "After1" to the intensity of the peak at m/z 253.22
ex <- normSpectra(dat = Master2, mass_dat = "full_mz",
method = "custom", norm_mz = 253.22, spectra_cols = "After1")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.