normMethod_custimp: Normalization Method: Maximum Intensity of Set

Description Usage Arguments Value Author(s) References See Also Examples

Description

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; does so against a specified m/z. Capable of normalizing 1-6 spectra at once.

Usage

1
norm_custimp(dat, mass_dat, norm_mz, spectra_cols, showHI = FALSE)

Arguments

dat

The name of the spectral data frame, containing m/z data in the first column and spectral intensity data in subsequent columns.

mass_dat

A character string; the name of the column in dat containing the m/z data for the spectrum.

norm_mz

Numeric m/z reference to be normalized against.

spectra_cols

A character string; the names of the column in dat containing the intensity data for the spectrs to be analyzed.

showHI

A Boolean variable; clipping argument for results greater than 1 after normalization.

Value

Returns a new data frame including the original m/z data and normalized intensity data of each input spectrum.

Author(s)

Kristen Yeh <kristenyeh@trentu.ca> Wesley Burr <wesleyburr@trentu.ca>

References

https://github.com/wesleyburr/subMaldi

See Also

normSpectra

Examples

1
2
3
4
5
6
## 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", norm_mz = 255.23, 
                  method = "custom_imprecise", spectra_cols = c("Blank1", "Before1", "Before2"))

wesleyburr/subMaldi documentation built on Oct. 1, 2021, 7:07 a.m.