在使用clusterprofilr进行GO富集分析和绘图时只能画出一个点
我的代码
library("clusterProfiler")
gene <- read.table("D:/基因注释/sv/1.gene.txt",header = F,sep=",")
gene <- as.factor(gene$V1)
term2gene <- read.csv("D:/基因注释/sv/1.sv.single.txt",header=T,sep="\t")
term2name <- read.csv("D:/基因注释/sv/go_term.list",header=F,sep="\t")
x <- enricher(gene,TERM2GENE=term2gene,TERM2NAME=term2name,pvalueCutoff = 0.01, pAdjustMethod = "BH", qvalueCutoff = 0.05)
ouf <- paste(out_file,sep ="\t")
write.csv(x,ouf)
barplot(x)
dotplot(x)
我的输出