replaceWrongValues: Replace DNA methylation values out of the boundaries

Description Usage Arguments Details Value See Also Examples

View source: R/replaceWrongValues.R

Description

A method which replaces values below 0 or beyond 1 contained in the input matrix. These wrong entries are replaced by 0 or 1, respectively. Note that this method is especially designed for DNA methylation data.

Usage

1

Arguments

data

any matrix filled with values that normally should be bounded between 0 and 1.

Details

replaceWrongValues

Note that this method is especially designed to run after the batch effect correction of DNA methylation data, e.g. with the imputeMissingData method. It can happen, that the predicted values are lying slightly below the lower bound of 0 or beyond the upper bound of 1. This method finds these inaccurately predicted entries. Another method called replaceWrongValues replaces these values either by 0 or 1, respectively. Another method called findWrongValues returns a list of existing wrong values and can be run before the replacement.

Value

Returns the input matrix with every value previously below 0 changed to 0 and every value previously beyond 1 changed to 1.

See Also

findWrongValues

correctBatchEffect

Examples

1
2
3
data(BEclearCorrected)
# Replace wrongly predicted values
corrected <- replaceWrongValues(data=ex.corrected.data)

BEclear documentation built on Nov. 1, 2018, 4:29 a.m.