View source: R/shiftMassAxis.R
shiftMassAxis | R Documentation |
Shift mass axis
shiftMassAxis(spec, mzdiff)
spec |
List of MALDIquant::MassSpectrum or MALDIquant::MassPeaks |
mzdiff |
Numeric vector, see getMzShift() |
List of MALDIquant::MassSpectrum or MALDIquant::MassPeaks with shifted mass axis.
data(Blank2022spec)
# raw mz
head(Blank2022spec[[1]]@mass)
# shifted mz
shifted <-shiftMassAxis(Blank2022spec[1:2], c(0.5, 0.5))
head(shifted[[1]]@mass)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.