smooth: Determining weighted MeDIP data

Description Usage Arguments Details Value Examples

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

1
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

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

MEDME documentation built on Nov. 8, 2020, 5:31 p.m.

Related to smooth in MEDME...