| export.DMRInfo {methyAnalysis} | R Documentation |
Output the DMR (Differentially Methylated Region) data information
export.DMRInfo(DMRInfo.ann, methyData = NULL, savePrefix = "")
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. |
This function basically save the annotated DMR information as text .csv files.
results files.
Pan Du
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')
}