findMissingValues: Find the position of missing values in a traces object

Description Usage Arguments Details Value Functions Examples

View source: R/imputeMissingValues.R View source: R/imputeMissingValues.R

Description

Replaces 0 values in a traces object with NA according to a specified rule. NA values can then be imputed.

Usage

1
2
3
4
5
findMissingValues(traces, bound_left = 2, bound_right = 2,
  consider_borders = TRUE)

findMissingValues(traces, bound_left = 2, bound_right = 2,
  consider_borders = TRUE)

Arguments

traces

Object of class traces.

bound_left

Numeric integer, the minimum number of non-zero values to the left of a missing value to be replaced with NA.

bound_right

Numeric integer, the minimum number of non-zero values to the right of a missing value to be replaced with NA.

consider_borders

Logical, whether to find missin values in the first/last fractions (e.g. 0-1-1 -> NA-1-1 and 1-0-1-1 -> 1-NA-1-1 if the leftmost value is the first fraction of the traces object).

Details

The algorithm identifies 0 values on the dataset as missing values if they fulfill the rule: (1)*bound_left - 0 - (1)*bound_right i.e. a zero value has to have at least a specified number of non-zero neighbors to be classified as NA.

Value

Object of class traces. Missing values are replaced with NA.

Functions

Examples

1
2
tracesMiss <- findMissingValues(examplePeptideTraces)
View(tracesMiss$traces)

CCprofiler/CCprofiler documentation built on May 19, 2021, 7:40 p.m.