shiftBetas: Shift beta values from 0 and 1 to avoid infinite M values

Description Usage Arguments Value Examples

View source: R/shiftBetas.R

Description

A convienance function for methylation data.

Usage

1
shiftBetas(betas, shiftBy = 1e-04)

Arguments

betas

matrix, beta values.

shiftBy

numeric, the amount to shift values of 0 and 1 by.

Value

None

Examples

1
2
3
4
5
betas <- seq(0, 1, by=0.05)
range(betas)
newBetas <- shiftBetas(betas, shiftBy=1e-4)
newBetas
range(newBetas)

Harman documentation built on May 31, 2017, 3:49 p.m.