calMzAxis: calMzAxis.

Description Usage Arguments Value

View source: R/mass_calibration.R

Description

calMzAxis.

Usage

1
calMzAxis(avgSpc_mz, ref_mz, target_mz, method = "loess", CalSpan = 0.75)

Arguments

avgSpc_mz

The mass axis to calibrate.

ref_mz

a vector of reference masses (for exaple the theorical gold peaks).

target_mz

manually slected masses to be fittet to ref_masses (must be the same length than ref_mz).

method

a string with the method used for interpolation, valid methods are loess and linear

CalSpan

the span of loess method.

Value

a list containing the calibrated mass axis and the interpolated mass error repect the original mass axis.


prafols/rMSIproc documentation built on Dec. 12, 2021, 7:31 p.m.