recalibrate_mass: Recalibrate the mass

recalibrate_massR Documentation

Recalibrate the mass

Description

Recalibrates the mass using the error terms returned by the calc_error function.

Usage

recalibrate_mass(x, errors, var_name)

Arguments

x

The data.table output from the align_rt function.

errors

A list output from the calc_error function. The first element of the list contains the standard deviation and median of the mass measurement error for each data set. The second element is the standard deviation of the mass measurement error across all data sets. The third element is the standard deviation of the retention time in seconds across all data sets.

var_name

A character string. The name of the mass variable (e.g., Precursor mass) that will be recalibrated with the ppm error calculated in the calc_error function.

Value

A data.table containing the recalibrated mass variable.

Author(s)

Evan A Martin


evanamartin/TopPICR documentation built on Dec. 9, 2022, 8:05 p.m.