Learn R Programming

MALDIquant (version 0.1)

SingleSpectrum-class: Class "SingleSpectrum"

Description

SingleSpectrum represents a single spectrum of a MALDI/TOF mass spectrometry measurement. It should provide an easy framework for doing some preprocessing steps like peak detection, baseline correction and something like that. Up to now only import and plot of a SingleSpectrum object is supported.

Arguments

Objects from the Class

createSingleSpectrum: Creates a SingleSpectrum object.

importSingleSpectrum: Reads a single mass spectrum from file and creates a SingleSpectrum object.

Methods

plot,SingleSpectrum,missing-method: Plots a SingleSpectrum object.

References

See website: http://www.sebastiangibb.de/maldiquant

See Also

createSingleSpectrum, importSingleSpectrum, plot,SingleSpectrum,missing-method

Examples

Run this code
## create a SingleSpectrum object by default constructor
s <- createSingleSpectrum(mass=1:100, intensity=rnorm(100)^2,
metaData=list(name="unrealistic example"));

## show some details
s;

## plot spectrum
plot(s);

Run the code above in your browser using DataLab