I used to run the exactly same commands in Rstudio and no errors occured.
ego <- enrichGO(gene=gene_EntrezID,OrgDb = org.Hs.eg.db,keytype = "ENTREZID", ont="BP",readable = T,pvalueCutoff = 0.001,qvalueCutoff = 0.001) dotplot(ego,colorBy = "pvalue",showCategory = 10)
But now this error jumps out:
Error in unique.default(x, nmax = nmax) : unique() applies only to vectors
I can't find out the reason, could someone help me please ? Thx !