Description Usage Arguments Details Value Author(s) See Also Examples
Apply spectral alignment to a mass spectrometry imaging dataset.
1 2 3 4 5 6 7 | ## S4 method for signature 'MSImagingExperiment,numeric'
mzAlign(object, ref, tolerance = NA, units = c("ppm", "mz"),
span = 0.75, control = loess.control(), ...)
## S4 method for signature 'MSImagingExperiment,missing'
mzAlign(object, tolerance = NA, units = c("ppm", "mz"),
span = 0.75, control = loess.control(), quantile = 0.2, ...)
|
object |
An imaging dataset. |
ref |
A reference to which to align the spectra. |
tolerance |
The tolerance to be used when matching the peaks in the unaligned spectra to the reference spectrum. If this is NA, then automatically guess a tolerance from the data. |
units |
The units to use for the |
span |
The smoothing parameter for the local polynomial regression used to determine the warping function. |
control |
Additional control parameters for the local polynomial regression used to determine the warping function. See |
quantile |
The top quantile of reference points (peaks detected via local maxima) to use from the reference spectrum. |
... |
Ignored. |
Mass alignment is performed against a vector of reference m/z values of expected peaks. The nearest local maxima to the reference peaks are detected in each unaligned spectrum (within tolerance
), and then the unaligned spectra are warped to maximize correlation with the reference spectrum.
If no reference peaks are provided, then the mean spectrum is calculated instead, and reference peaks are selected by detecting local maxima. Some number of these reference points with the highest intensities (determined by quantile
) are then used as the reference for alignment.
Internally, pixelApply
is used to perform the alignment. See its documentation page for more details.
An object of the same class with the aligned spectra.
Kylie A. Bemis
MSImagingExperiment
,
mzBin
,
peakAlign
,
pixelApply
,
process
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.