PeakList
inherits from the classes MassAnalysis
,
MassSpectra
and TIC
.PeakList
class constructor
PeakList(analysisName = NULL, instrument = NULL, nz = NULL,
calibration = NULL, calibPoints = NULL, mz = NULL, peakIDs = NULL,
peakMzs = NULL, ...)PeakList(analysisName = NULL, instrument = NULL, nz = NULL,
calibration = NULL, calibPoints = NULL, mz = NULL, peakIDs = NULL,
peakMzs = NULL, ...)
nz
for mass to charge valuesPeakList
class constructor is used to construct a new
PeakList object. Input are currently all needed variables.# The typical way to obtain a PeakList object is by
# applying some peak picking method to a MassSpectra
# below an example using the 'unitMassPeaks' method
library(tofsimsData)
data(tofsimsData)
testSpectra<-calibPointNew(testSpectra, mz = 15, value = 15.01551)
testSpectra<-calibPointNew(testSpectra, mz = 181, value = 181.0228)
testSpectra<-recalibrate(testSpectra)
testSpectra<-unitMassPeaks(testSpectra, mzRange = c(1,200), widthAt = c(15, 181),
factor = c(0.4, 0.6), lower = c(14.97, 15.05), upper = c(180.84, 181.43))
show(testSpectra)
Run the code above in your browser using DataLab