这个问题很明显,你输入的‘id’也就是基因这个文件不存在,检查下命名
> f <- read.table("C:\\Users\\lijun\\Desktop\\AvsU_DEG_name_filter.txt") > f <- f[c(1)] > ego <- enrichGO(OrgDb="org.Hs.eg.db", gene = id, ont = "MF", pvalueCutoff = 0.01, readable= TRUE) #GO富集分析 Error in unique(gene) : object 'id' not found > dotplot(ego,showCategory=10,title="Enrichment GO Top10") #泡泡图 Error in dotplot(ego, showCategory = 10, title = "Enrichment GO Top10") : object 'ego' not found > barplot(ego, showCategory=20,title="EnrichmentGO") #柱状图 Error in barplot(ego, showCategory = 20, title = "EnrichmentGO") : object 'ego' not found
加载包后,出现这样的错误代码,有没有大神解答下