powered by
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)
A matrix of integrated spectra. First and second columns represent intensity-weighted average m/z and cumulated intensity, respectively.
A matrix of two columns of the stacked spectra. First and second columns should represent m/z and intensity, respectively.
Mass accuracy in Da
c(TRUE, FALSE). Select `TRUE` only for nominal mass analysis.
data(stackedSpectra) massError <- 0.005 # Da Integrated_spectra <- spectra_integrator(stackedSpectra[, 1:2], massError)
Run the code above in your browser using DataLab