How can it be that the output from mapping sigCpGs with
library(IlluminaHumanMethylationEPICanno.ilm10b4.hg19)
sig.ann <- getAnnotation(IlluminaHumanMethylationEPICanno.ilm10b4.hg19)[sigCpGs, ]
sig.genes <- sig.ann$UCSC_RefGene_Name
is different from
library(missMethyl)
library (biomaRt)
annEPIC <- getAnnotation(IlluminaHumanMethylationEPICanno.ilm10b4.hg19)
sig.entrez <- getMappedEntrezIDs(sig.cpg = sigCpGs, all.cpg = all_CpGs, array.type = "EPIC", anno = annEPIC)
sig.entrez <- sig.entrez$sig.eg
# Connect to Ensembl
ensembl <- useEnsembl(biomart = "genes", dataset = "hsapiens_gene_ensembl")
gene_info <- getBM(attributes = c("entrezgene_id", "external_gene_name", "description"),
filters = "entrezgene_id",
values = sig.entrez,
mart = ensembl)
They seem to be using the same reference library to annotate genes, so what could be the reason?
Maybe biomaRt uses another library?