imputeMissing: imputeMissing()

View source: R/04_Manage_Missing.R

imputeMissingR Documentation

imputeMissing()

Description

Imputes the data using a normal distribution down-shifted from the median by a user defined number of standard deviations and a user defined width. the distribution of the imputed data can be evaluated using the function imputeMissingEval().

Usage

imputeMissing(romics_object, nb_stdev = 1.8, width_stdev = 0.5, seed = 42)

Arguments

romics_object

has to be an romics_object created using romicsCreateObject()

Details

This function will impute the data using the method described in the Perseus paper by Tyranova et al. 2016 (Nature Method). By default the data is imputed with values in a normal distribution 1.8 standard deviation away from the median and a width of distribution of 0.5.

Value

The function will return a modified romics_object that will have imputed data, however the missingdata layer will conserve the location of the missingness, the missingness can subsequently be restored using the function romicsRestoreMissing().

Author(s)

Geremy Clair


PNNL-Comp-Mass-Spec/RomicsProcessor documentation built on March 18, 2023, 5:14 a.m.