A matrix with columns as m/z values and rows as concentrations/spectra
Arguments
object
Object of class MALDIassay
avg
Logical, return single spectra intensity matrix (default) or average spectra intensity matrix
excludeNormMz
Logical, exclude normMz from intensity matrix.
Details
Note that the returned matrix only contains m/z values that were actually fitted.
If a variance filtering step was applied this will not include allm/z values.
If you wish to get a matrix of allm/z values use MALDIquant::intensityMatrix(getSinglePeaks(object)).
For average spectra intensity matrix with allm/z values use MALDIquant::intensityMatrix(getAvgPeaks(object), getAvgSpectra(object)).
# see example for `fitCurve()` to see how this data was generateddata(Blank2022res)
head(getIntensityMatrix(Blank2022res, avg = TRUE, excludeNormMz = TRUE) )