detectDMR.slideWin: Detect DMR (Differentially Methylated Region) using slide...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/methyAnalysis.R

Description

Detect DMR (Differentially Methylated Region) using slide window smoothing

Usage

1
2
detectDMR.slideWin(methyGenoSet, sampleType, winSize = 250, testMethod = c("ttest", "wilcox"), 
  p.adjust.method = "fdr", p.value.detection.th = 0.05, ...)

Arguments

methyGenoSet

A GenoSet object includes the methylation data information

sampleType

A vector shows the sample type information

winSize

Slide window size (half window size, bp at each side of the probe)

testMethod

test methods

p.adjust.method

p.value FDR adjust method

p.value.detection.th

the threshold of detection p.value used to determine the failed probes, which will be set as NAs.

...

other paramters

Details

The function will check whether the data was previously smoothed. If not, slide-window smoothing will be performed first, and then followed by differential methylation tests

Value

A GRanges object with additional test information (difference, p.value, p.adjust, and etc.)

Author(s)

Pan Du

See Also

identifySigDMR

Examples

1
2
3
4
5
6
7
	data(exampleMethyGenoSet)
	
	sampleType <- colData(exampleMethyGenoSet)$SampleType
	
	## Do differential test
	allResult <- detectDMR.slideWin(exampleMethyGenoSet, sampleType=sampleType, testMethod='ttest')
	head(allResult)

methyAnalysis documentation built on Nov. 8, 2020, 8:09 p.m.