powered by
Shift mass axis
shiftMassAxis(spec, mzdiff)
List of MALDIquant::MassSpectrum or MALDIquant::MassPeaks with shifted mass axis.
List of MALDIquant::MassSpectrum or MALDIquant::MassPeaks
Numeric vector, see getMzShift()
data(Blank2022spec) # raw mz head(Blank2022spec[[1]]@mass) # shifted mz shifted <-shiftMassAxis(Blank2022spec[1:2], c(0.5, 0.5)) head(shifted[[1]]@mass)
Run the code above in your browser using DataLab