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,
Thanks! I am using
R
v. 3.4.4 and thusclusterProfiler
v 3.4.4. So I guess the problem is coming from there. How can I fix the issue in my current version of the package? Or its better to update R?Dear Prof. Yu, I also have some problems with cluster profile.
--> I receved "Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘keytypes’ for signature ‘"GRanges"’"
--> error: Error in build_Anno(TERM2GENE, TERM2NAME) : object 'term2gene' not found
Please help me when you have time.
Thank you very much!