subSpectra.Rd
This function takes the intensity values in the blank column of the mapped spectral data frame and subtracts them from the intensity values in the sample column. If the intensity value in the blank spectrum is greater than that in the sample spectrum, the intensity of the sample peak is given an intensity of 0.
subSpectra(dat, Blank_Var, Sample, Sub_Sample, showNeg = FALSE)
dat | The spectral data frame, containing |
---|---|
Blank_Var | A character string; the name of the blank column that will be subtracted from the sample column. |
Sample | A character string; the name of the sample column that the blank data will be subtracted from. |
Sub_Sample | A character string; the name of the column to be filled with the subtracted spectrum. |
showNeg | Logical; if |
Returns a vector of intensity values that are filled into the
Sub_Sample
column of the mapped data frame at the corresponding rows
of full_mz
.
https://github.com/wesleyburr/subMaldi
Kristen Yeh <kristenyeh@trentu.ca> Wesley Burr <wesleyburr@trentu.ca>