find_max.Rd
Analyzes spectral data and returns a list of the most intense peak in each spectrum, including the m/z value associated with the peak.
find_max(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 vector; the names of the column in
|
Returns a data frame indidcating the most intense peaks of each input spectrum. Indicates the spectrum the data is from, the m/z value associated with the peak, and the intensity of the maxima.
https://github.com/wesleyburr/subMaldi
Kristen Yeh <kristenyeh@trentu.ca> Wesley Burr <wesleyburr@trentu.ca> Sophie Castel <sophie.castel@ontariotechu.net>
## Load sample dataset "Master.rda" data("Master") ## Find maxima of four spectra find_max(dat = Master, mass_dat = "full_mz", spectra_cols = c("Blank1", "Before1", "After1", "After2"))#> Intensity (Max) Mass #> Blank1 58818870554 248.9629 #> Before1 2259690856 255.2331 #> After1 785211555 402.8894 #> After2 1131354678 393.8965