createMassPeaks {MALDIquant} | R Documentation |
Creates a MassPeaks object.
Description
This function creates a MassPeaks
object. Normally it
shouldn't called by the user. Try
detectPeaks,MassSpectrum-method
instead.
Usage
createMassPeaks(mass, intensity, snr=rep.int(NA_real_, length(intensity)),
metaData=list())
Arguments
mass |
|
intensity |
|
snr |
|
metaData |
|
Value
Returns a MassPeaks
object.
Author(s)
Sebastian Gibb mail@sebastiangibb.de
See Also
detectPeaks,MassSpectrum-method
,
MassPeaks
Website: https://strimmerlab.github.io/software/maldiquant/
Examples
## load package
library("MALDIquant")
## create a MassPeaks object by default constructor
s <- createMassPeaks(mass=1:100, intensity=rnorm(100)^2,
metaData=list(name="example peaks"))
## show some details
s
[Package MALDIquant version 1.22.2 Index]