smooth {MEDME}R Documentation

Determining weighted MeDIP data

Description

MeDIP data from tiling arrays are smoothed by determining for each probe i the weighted average of the probes within a window of size wsize centered at i

Usage

smooth(data, wsize=1000, wFunction='linear')

Arguments

data An object of class MEDMEset
wsize number; the size of the smoothing window, in bp
wFunction string; the type of weighting function, to choose among linear, exp, log or none

Details

The un-smoothed data are read from the slot logR of the data MEDMEset and the resulting smoothed data are saved on the smoothed slot.

Value

An object of class MEDMEset. In particular, the smoothed data are saved on the smoothed slot.

Examples

data(testMEDMEset)
# just an example with the first 1000 probes
testMEDMEset = smooth(data = testMEDMEset[1:1000,])

[Package MEDME version 1.2.1 Index]