打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
R包clusterProfiler功能富集分析及可视化总结

source("http://www.bioconductor.org/biocLite.R")#启动bioconductor

biocLite("clusterProfiler")#安装clusterProfiler

library(clusterProfiler)

##文件为一列gene entrezID, 文件名设为 enterz.txt

 

setwd("d:/") #设置目录

getwd() #查看目录

 

biocLite("org.Hs.eg.db")

library(org.Hs.eg.db)

 

ego <- enrichGO(OrgDb="org.Hs.eg.db", gene =genelist, ont = "CC", pvalueCutoff = 0.01, readable= TRUE)#GO富集分析

 

write.csv(summary(ego),"GO-enrich.csv",row.names=F) #写入文件

 

ekk <- enrichKEGG(gene=genelist,organism  = 'hsa', qvalueCutoff = 0.05)#KEGG富集分析

 

write.csv(summary(ekk),"KEGG-enrich.csv",row.names=F) #写入文件

 

dotplot(ego,showCategory=10,title="Enrichment GOTop10") #泡泡图



barplot(ego, showCategory=20,title="EnrichmentGO") #柱状图

 


本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
使用clusterProfiler进行GO富集分析
从基因名到GO注释一步到位
enrichplot: 让你们对clusterProfiler系列包无法自拔
MeSH加Cytoscape你也可以绘制超高颜值富集图
GO analysis using clusterProfiler | Guangchuang YU
clusterProfiler:基因功能富集分析的惊喜之作
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服