Hi,
I am using missMethyl package in R to analyse DNA methylation data on a complex disease. I have corrected batch effect using RUVm two step inverse function and now I am doing the enrichment. I am trying to annotate significant CpGs to the corresponding genes through the entrezID (getMappedEntrezIDs function). I wanted to know if there is a way of knowing the CpGs mapping to each entrezID out of the significant CpGs found which I have in a list (sigCpGs).
output <- getMappedEntrezIDs(sig.cpg = sigCpGs, all.cpg = all_CpGs, array.type = "EPIC", anno = annEPIC)
In the output one can find output$freq
that gives a table output with numbers of probes associated with each gene, but I believe it gives the total number of probes (all_CpGs) associated. How would you do it to give the number and names of sigCpGs?
Thanks
How can it be that the output from mapping sigCpGs with
is different from
They seem to be using the same reference library to annotate genes, so what could be the reason?
Maybe biomaRt uses another library?