MassSpectrum-class {MALDIquant} | R Documentation |
Class "MassSpectrum"
Description
MassSpectrum
represents a single spectrum of a MALDI-TOF
mass spectrometry measurement. It provides an easy framework for doing
some preprocessing steps like peak detection, baseline correction and
much more.
Objects from the Class
createMassSpectrum
: Creates a
MassSpectrum
object.
Extends
Class AbstractMassObject
, directly.
Methods
- calibrateIntensity
signature(x = "MassSpectrum")
: Calibrates the intensity of aMassSpectrum
object. SeecalibrateIntensity,MassSpectrum-method
for details.- detectPeaks
signature(x = "MassSpectrum")
: Look for local maxima and estimate noise to extract peaks out of aMassSpectrum
object. SeedetectPeaks,MassSpectrum-method
for details.- estimateBaseline
signature(x = "MassSpectrum")
: Estimates the baseline of aMassSpectrum
object. SeeestimateBaseline,MassSpectrum-method
for details.- estimateNoise
signature(x = "MassSpectrum")
: Estimates the noise of aMassSpectrum
object. SeeestimateNoise,MassSpectrum-method
for details.- isRegular
signature(object = "MassSpectrum")
: ReturnsFALSE
if the frequency of mass values with irregular intervals is greater thanthreshold
(becauseobject
was measured in centroid mode or someintensity
values were filtered).- removeBaseline
signature(x = "MassSpectrum")
: Estimates and removes the baseline of aMassSpectrum
object. SeeremoveBaseline,MassSpectrum-method
for details.- smoothIntensity
signature(object = "MassSpectrum")
: Smoothes the intensities of anMassSpectrum
object. SeesmoothIntensity,MassSpectrum-method
for details.- totalIonCurrent
signature(object = "MassSpectrum")
: Accessor function for Total Ion Current (TIC, area under the curve).
Author(s)
Sebastian Gibb mail@sebastiangibb.de
See Also
createMassSpectrum
,
calibrateIntensity,MassSpectrum-method
,
detectPeaks,MassSpectrum-method
,
estimateBaseline,MassSpectrum-method
,
estimateNoise,MassSpectrum-method
,
removeBaseline,MassSpectrum-method
,
smoothIntensity,MassSpectrum-method
,
AbstractMassObject
Website: https://strimmerlab.github.io/software/maldiquant/
Examples
## load package
library("MALDIquant")
## create a MassSpectrum object by default constructor
s <- createMassSpectrum(mass=1:100, intensity=rnorm(100)^2,
metaData=list(name="example"))
## show some details
s
## plot spectrum
plot(s)
## get TIC
totalIonCurrent(s)
## modify intensity and metaData
intensity(s)[1:50] <- 0
metaData(s) <- list(name="modified example")
## plot again
plot(s)