wrapper.impute.fixedValue: Missing values imputation from a 'MSnSet' object

View source: R/missingValuesImputation_ProteinLevel.R

wrapper.impute.fixedValueR Documentation

Missing values imputation from a MSnSet object

Description

This method is a wrapper to objects of class MSnSet and imputes missing values with a fixed value.

Usage

wrapper.impute.fixedValue(obj, fixVal = 0, na.type)

Arguments

obj

An object of class MSnSet.

fixVal

A float.

na.type

A string which indicates the type of missing values to impute. Available values are: 'NA' (for both POV and MEC), 'POV', 'MEC'.

Value

The object obj which has been imputed

Author(s)

Samuel Wieczorek

Examples

data(Exp1_R25_pept, package="DAPARdata")
obj <- Exp1_R25_pept[seq_len(10), ]
obj.imp.pov <- wrapper.impute.fixedValue(obj, 0.001, na.type = "Missing POV")
obj.imp.mec <- wrapper.impute.fixedValue(obj, 0.001, na.type = "Missing MEC")
obj.imp.na <- wrapper.impute.fixedValue(obj, 0.001, na.type = c("Missing MEC", "Missing POV"))


prostarproteomics/DAPAR documentation built on March 28, 2024, 4:44 a.m.