createMassPeaks | R Documentation |
This function creates a MassPeaks
object. Normally it
shouldn't called by the user. Try
detectPeaks,MassSpectrum-method
instead.
createMassPeaks(mass, intensity, snr=rep.int(NA_real_, length(intensity)),
metaData=list())
mass |
|
intensity |
|
snr |
|
metaData |
|
Returns a MassPeaks
object.
Sebastian Gibb mail@sebastiangibb.de
detectPeaks,MassSpectrum-method
,
MassPeaks
Website: https://strimmerlab.github.io/software/maldiquant/
## 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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.