Learn R Programming

methyAnalysis (version 1.14.0)

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

Description

Output the DMR (Differentially Methylated Region) data information

Usage

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.

Value

results files.

Details

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

See Also

annotateDMRInfo

Examples

Run this code
	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')
	}

Run the code above in your browser using DataLab