View source: R/spectra_integrator.R
spectra_integrator | R Documentation |
This function integrates individual m/z peaks from multiple chromatogram scans (spectra) into summed m/z peaks using a mass accuracy or nominal masses.
spectra_integrator(stackedSpectra, massError = 0, allowedNominalMass = FALSE)
stackedSpectra |
A matrix of two columns of the stacked spectra. First and second columns should represent m/z and intensity, respectively. |
massError |
Mass accuracy in Da |
allowedNominalMass |
c(TRUE, FALSE). Select 'TRUE' only for nominal mass analysis. |
A matrix of integrated spectra. First and second columns represent intensity-weighted average m/z and cumulated intensity, respectively.
data(stackedSpectra)
massError <- 0.005 # Da
Integrated_spectra <- spectra_integrator(stackedSpectra[, 1:2], massError)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.