Hi all,

I need to assign GO terms to DE genes in R. `ClusterProfiler` seems to be a popular package for that.
But for some reason it either fails to detect GO terms or its GO terms do not coincide with other tools.

    library(clusterProfiler)
    library(org.Hs.eg.db)

    ###mtDNA genes
    genes<-c("ENSG00000198886","ENSG00000198888","ENSG00000198763","ENSG00000198840","ENSG00000212907","ENSG00000198786","ENSG00000198695","ENSG00000198727","ENSG00000198804","ENSG00000198712","ENSG00000198938","ENSG00000198899","ENSG00000228253")


    ego<-enrichGO(genes, OrgDb = org.Hs.eg.db, keytype ="ENSEMBL",ont = "CC",pAdjustMethod = "fdr",pvalueCutoff  = 0.1,  qvalueCutoff  = 0.5)
    
    dotplot(ego, showCategory=30)


The same genes with `Panther` as expected show mtDNA related GO terms. Other genes from my dataset get enrichments, so apparently the problem is not in gene IDs.
What am I doing wrong?

Cheers,

With the hint from @Guangchuang in the post above, I resolved the problem by updating `clusteProfiler` to the latest version. 

For that I had to update R to v. 3.5 for my Ubuntu 16.04 https://www.r-bloggers.com/updating-r-on-ubuntu/

Then install the latest bioconductor version https://www.bioconductor.org/install/ 

And resolve the igragh fortrat4 dependancy issue  https://ashokragavendran.wordpress.com/2017/10/24/error-installing-rigraph-unable-to-load-shared-object-igraph-so-libgfortran-so-4-cannot-open-shared-object-file-no-such-file-or-directory/

Hope this will save several hours for people with the same problem
