shiftMassAxis: Shift mass axis

View source: R/shiftMassAxis.R

shiftMassAxisR Documentation

Shift mass axis

Description

Shift mass axis

Usage

shiftMassAxis(spec, mzdiff)

Arguments

spec

List of MALDIquant::MassSpectrum or MALDIquant::MassPeaks

mzdiff

Numeric vector, see getMzShift()

Value

List of MALDIquant::MassSpectrum or MALDIquant::MassPeaks with shifted mass axis.

Examples

data(Blank2022spec)
# raw mz
head(Blank2022spec[[1]]@mass)

# shifted mz
shifted <-shiftMassAxis(Blank2022spec[1:2], c(0.5, 0.5))
head(shifted[[1]]@mass)


CeMOS-Mannheim/MALDIcellassay documentation built on Jan. 24, 2025, 11:17 p.m.