getIntensityMatrix | R Documentation |
Get the intensity matrix of single spectra for all fitted curves
getIntensityMatrix(object, avg = FALSE, excludeNormMz = FALSE)
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. |
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 all m/z values.
If you wish to get a matrix of all m/z values use MALDIquant::intensityMatrix(getSinglePeaks(object))
.
For average spectra intensity matrix with all m/z values use MALDIquant::intensityMatrix(getAvgPeaks(object), getAvgSpectra(object))
.
A matrix with columns as m/z values and rows as concentrations/spectra
# see example for `fitCurve()` to see how this data was generated
data(Blank2022res)
head(getIntensityMatrix(Blank2022res, avg = TRUE, excludeNormMz = TRUE) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.