Learn R Programming

MEDME (version 1.32.0)

smooth: 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

Value

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

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.

Examples

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

Run the code above in your browser using DataLab