export.DMRInfo: Output the DMR (Differentially Methylated Region) data...

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

View source: R/methyAnalysis.R

Description

Output the DMR (Differentially Methylated Region) data information

Usage

1
export.DMRInfo(DMRInfo.ann, methyData = NULL, savePrefix = "")

Arguments

DMRInfo.ann

The annotated DMR information outputted by annotateDMRInfo.

methyData

Methylation data information in MethyGenoSet or MethyLumiM class

savePrefix

The prefix added to the output file names.

Details

This function basically save the annotated DMR information as text .csv files.

Value

results files.

Author(s)

Pan Du

See Also

annotateDMRInfo

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
	data(exampleMethyGenoSet)
	
	sampleType <- colData(exampleMethyGenoSet)$SampleType
	
	## Do differential test
	allResult <- detectDMR.slideWin(exampleMethyGenoSet, sampleType=sampleType, testMethod='ttest')

	## Identify the DMR (Differentially Methylated Region) by setting proper parameters.
	## Here we just use default ones
	allDMRInfo <- identifySigDMR(allResult)

	## Annotate significant DMR info
	if (require(TxDb.Hsapiens.UCSC.hg19.knownGene)) {
		DMRInfo.ann <- annotateDMRInfo(allDMRInfo, 'TxDb.Hsapiens.UCSC.hg19.knownGene')
		export.DMRInfo(DMRInfo.ann, savePrefix='testExample')
	}

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