mass_measurement_error {MSnID} | R Documentation

## Computes error of the parent ion mass to charge measurement

### Description

Computes error of the parent ion mass to charge measurement from `experimentalMassToCharge` and `calculatedMassToCharge`. The returned value is in points per million (ppm).

### Usage

        mass_measurement_error(object)

### Arguments

`object` | An instance of class "MSnID".

### Details

It may be more common to compute "mass measurement error". However, the practical difference in "mass measurement error" and "mass to charge measurement error" is negligible. Moreover, the instruments measure mass/charge ratio, not mass per se.

### Value

Returns mass to charge measurement error in "ppm" units.

### Author(s)

Vladislav A Petyuk vladislav.petyuk@pnnl.gov

### See Also

`MSnID` `recalibrate` `correct_peak_selection`

### Examples

    data(c_elegans)
    ppm <- mass_measurement_error(msnidObj)
    hist(ppm, 100)

[Package MSnID version 1.24.0 Index]