alignSpectra | R Documentation |
This function aligns a list of MassSpectrum
objects
(spectra alignment is also known as warping/phase correction).
alignSpectra(spectra, halfWindowSize=20, noiseMethod="MAD", SNR=2,
reference, tolerance=0.002, warpingMethod="lowess",
allowNoMatches=FALSE, emptyNoMatches=FALSE, ...)
spectra |
|
halfWindowSize |
|
noiseMethod |
a noise estimation method; see
|
SNR |
single numeric value. |
reference |
|
tolerance |
|
warpingMethod |
used basic warping function; see
|
allowNoMatches |
|
emptyNoMatches |
|
... |
arguments to be passed to
|
alignSpectra
is a wrapper function around
detectPeaks
,
determineWarpingFunctions
and
warpMassSpectra
. Please call these functions
manually if you need finer control (e.g. plotting of warping functions).
Returns a list
of aligned MassSpectrum
objects.
Sebastian Gibb mail@sebastiangibb.de
detectPeaks
,
determineWarpingFunctions
,
referencePeaks
,
warpMassSpectra
,
MassSpectrum
demo("warping")
Website: https://strimmerlab.github.io/software/maldiquant/
## load package
library("MALDIquant")
## load example data
data("fiedler2009subset", package="MALDIquant")
## running typical workflow
## transform intensities
spectra <- transformIntensity(fiedler2009subset, method="sqrt")
## smooth spectra
spectra <- smoothIntensity(spectra, method="MovingAverage")
## baseline correction
spectra <- removeBaseline(spectra)
## align spectra
spectra <- alignSpectra(spectra)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.