edmr does not display neither the correct number of CpGs inside region nor the correct methylation status (hyper/hypo) · Issue #8 · ShengLi/edmr · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am using edmr right after MethylKit but the DMRs I get, correspond to a region where there are more CpGs than displayed in "num.CpGs" column. The code I run is the following:
dmp_rrbs <- calculateDiffMeth(methobj) #plus some extra arguments
myDiff <- getData(dmp_rrbs)
dmrs <- edmr(myDiff, mode=2)
dmrs_data <- data.frame(dmrs)
and they are not the same type of differentially methylated (hyper or hypo) as I had requested with the "type=2" argument. Shouldn't there be only 4 CpGs one of which being differentially methylated in that region (i.e. the meth.diff should be either negative or positive for all)?
Can you help me out please? Am I missing something or is it a bug of the tool? I am using R 3.6.0 and hg38 genome for RRBS samples.
Thank you in advance
The text was updated successfully, but these errors were encountered:
The mode = 2 means you are using the CpGs with methylation change in the same direction to call DMRs, which take the last column “meth.diff” value into account.
The reason you see fewer CpGs in the DMRs output is because:
eDMR.sub() by default applies fuzzypval = 0.1, which means that only CpG sites with pvalue <0.1 were considered for DMR calling.
Mode = 2 considers CpGs with meth.diff > 0 and meth.diff < 0 separately.
I updated edmr code to pass the fuzzypval value to the eDMR.sub() so that your analysis will not filter CpGs by pvalue < 0.1. Could you give a try again? Thanks!
I updated the edmr package and confirmed that both hyper.myDMR() and hypo.myDMR() variables have the fuzzypval = fuzzypval extra argument. Nevertheless the problem remains. For example when I run:
dmp_rrbs <- calculateDiffMeth(methobj) #plus some extra arguments
myDiff <- getData(dmp_rrbs)
dmrs <- edmr(myDiff, mode=2)
dmrs_data <- data.frame(dmrs)
head(dmrs_data)
As you see I still get more CpGs and they are still not the same type of differentially methylated (hyper or hypo) as I had requested with the "mode=2" argument.
Hello, I am using edmr right after MethylKit but the DMRs I get, correspond to a region where there are more CpGs than displayed in "num.CpGs" column. The code I run is the following:
From the first few row of the table I get this:
but when I check the original dmp_rrbs object for the region in chromosome 11 I get more CpGs:
and they are not the same type of differentially methylated (hyper or hypo) as I had requested with the "type=2" argument. Shouldn't there be only 4 CpGs one of which being differentially methylated in that region (i.e. the meth.diff should be either negative or positive for all)?
Can you help me out please? Am I missing something or is it a bug of the tool? I am using R 3.6.0 and hg38 genome for RRBS samples.
Thank you in advance
The text was updated successfully, but these errors were encountered: