R/rtCorrection_utils.R
peakPantheR_applyRTCorrection.Rd
Correct targeted features retention time using the RT and RT deviation of previously fitted compounds. The `method` and `params` are used to select and parametrise the retention time correction method employed. When `robust` is set to TRUE, the RANSAC algorithm is used to automatically flag outliers and robustify the correction function fitting.
peakPantheR_applyRTCorrection(
targetFeatTable,
referenceTable,
method = "polynomial",
params = list(polynomialOrder = 3),
robust = TRUE
)
a data.frame
of compounds to target as
rows and parameters as columns: cpdID
(str), cpdName
(str),
rtMin
(float in seconds), rt
(float in seconds, or NA),
rtMax
(float in seconds), mzMin
(float), mz
(float or
NA), mzMax
(float).
a data.frame
of reference compound
information as rows and properties as columns: cpdID
(str),
cpdName
(str), rt
(float), rt_dev_sec
(float)
(str) name of RT correction method to use (currently
polynomial
)
(list) list of parameters to pass to
the each correction method.
Currently allowed inputs are polynomialOrder
for
method='polynomial'
(bool) whether to use the RANSAC algorithm to flag and ignore outliers during retention time correction
a targetFeatTable with corrected RT