Last chance! 50% off unlimited learning
Sale ends in
filterDMRs(methylationData1, methylationData2, potentialDMRs, context = "CG", test = "fisher", pValueThreshold = 0.01, minCytosinesCount = 4, minProportionDifference = 0.4, minReadsPerCytosine = 3, cores = 1)
methylationDataList
).methylationDataList
).GRanges
object with potential DMRs
where to compute the DMRs. This can be a a list of gene and/or transposable
elements coordinates."CG"
,
"CHG"
or "CHH"
)."fisher"
for
Fisher's exact test or "score"
for Score test).test
) higher or equal than pValueThreshold
are
discarded. Note that we adjust the p-values using the Benjamini and
Hochberg's method to control the false discovery rate.minCytosinesCount
will be discarded.minProportionDifference
are discarded.minReadsPerCytosine
are discarded.GRanges
object with 11 metadata columns that contain
the DMRs; see computeDMRs
.
DMRsNoiseFilterCG
, computeDMRs
,
analyseReadsInsideRegionsForCondition
and mergeDMRsIteratively
# load the methylation data
data(methylationDataList)
# load the gene annotation data
data(GEs)
#select the genes
genes <- GEs[which(GEs$type == "gene")]
# the regions where to compute the DMRs
regions <- GRanges(seqnames = Rle("Chr3"), ranges = IRanges(1,1E5))
genes <- genes[overlapsAny(genes, regions)]
# filter genes that are differntially methylated in the two conditions
DMRsGenesCG <- filterDMRs(methylationDataList[["WT"]],
methylationDataList[["met1-3"]], potentialDMRs = genes,
context = "CG", test = "score", pValueThreshold = 0.01,
minCytosinesCount = 4, minProportionDifference = 0.4,
minReadsPerCytosine = 3, cores = 1)
Run the code above in your browser using DataLab