当前位置: 首页 > news >正文

青海省住房和城乡建设厅网站短视频精准获客系统

青海省住房和城乡建设厅网站,短视频精准获客系统,山西钢铁建设集团有限公司网站,各大网站收录入口1写在前面 前面我们用WGCNA分析得到多个模块,其中有一些模块和我们感兴趣的表型或者临床特征是相关的。🥳 接着就是要做模块的富集分析了,帮助我们了解这些模块的基因都有哪些已知的功能,涉及到哪些通路,在哪些疾病中最…

1写在前面

前面我们用WGCNA分析得到多个模块,其中有一些模块和我们感兴趣的表型或者临床特征是相关的。🥳

接着就是要做模块的富集分析了,帮助我们了解这些模块的基因都有哪些已知的功能,涉及到哪些通路,在哪些疾病中最为重要。🥰

现在这种做富集分析的包还是蛮多的,WGCNA包内也是内置了相关功能,不过首推的还是Y叔clusterProfiler,在我心中真是YYDS。🫶

2用到的包

rm(list = ls())
library(WGCNA)
library(tidyverse)
library(clusterProfiler)
library(enrichplot)
library(org.Mm.eg.db)

3示例数据

load("FemaleLiver-01-dataInput.RData")
load("FemaleLiver-02-networkConstruction-auto.RData")

4整理富集分析的输入文件

一些不会使用代码的小伙伴可以采用将基因列表放到一些在线的网站上去做富集分析,如:👇

  • http://www.metascape.org/
  • http://kobas.cbi.pku.edu.cn/

4.1 整理文件

annot <-  read.csv(file = "./FemaleLiver-Data/GeneAnnotation.csv");
probes <- names(datExpr)
probes2annot <- match(probes, annot$substanceBXH)
allLLIDs <- annot$LocusLinkID[probes2annot];
intModules <- c("brown", "red", "salmon")

4.2 循环输出文件

这里你就可以获得你感兴趣模块的genelist了,去在线网站做富集分析吧。🤠

for (module in intModules){
modGenes <- (moduleColors==module)
modLLIDs <- allLLIDs[modGenes]
fileName <- paste("LocusLinkIDs-", module, ".txt", sep="")
write.table(as.data.frame(modLLIDs), file = fileName, row.names = F, col.names = F)
}

5内置函数进行富集分析

WGCNA包内也内置了分析函数,可以直接调用。😙

5.1 GO富集分析

GOenr <-  GOenrichmentAnalysis(moduleColors, allLLIDs, organism = "mouse", nBestP = 10);

tab <- GOenr$bestPTerms[[4]]$enrichment

names(tab)

write.table(tab, file = "GOEnrichmentTable.csv", sep = ",", quote = TRUE, row.names = FALSE)
alt

5.2 查看结果

keepCols <-  c(1, 2, 5, 6, 7, 12, 13)
screenTab <- tab[, keepCols]
numCols <- c(3, 4)
screenTab[, numCols] <- signif(apply(screenTab[, numCols], 2, as.numeric), 2)
screenTab[, 7] <- substring(screenTab[, 7], 1, 40)
colnames(screenTab) = c("module", "size", "p-val", "Bonf", "nInTerm", "ont", "term name");
rownames(screenTab) = NULL;
options(width=95)
screenTab
alt

6clusterProfiler包进行富集分析

我们再补充一个Y叔的神包clusterProfiler包进行富集分析的方法,也是我个人最推荐的。🥰


6.1 整理输入文件

这里我们假设我们感兴趣的模块是salmon, red, brown, 我们用一下compareCluster函数,将他们都展示在一张图上。🤨

salmon <- allLLIDs[moduleColors == "salmon"] %>% 
na.omit()

red <- allLLIDs[moduleColors == "red"]%>%
na.omit()

brown <- allLLIDs[moduleColors == "brown"]%>%
na.omit()

three_modules <- data.frame(id = c(salmon, red, brown),
modulecolor = rep(c("salmon", "red", "brown"),
c(length(salmon),
length(red),
length(brown))
)
)
DT::datatable(three_modules)
alt

6.2 GO富集分析

其实不光可以做GO富集分析,KEGG, ReactomeGSEA等都是可以的,看大家自己的需求吧。🤩

formula_res.GO <- compareCluster(data = three_modules, 
id~modulecolor,
fun="enrichGO",
OrgDb = 'org.Mm.eg.db')

6.3 dotplot展示富集结果

Y叔写了几种可视化的方式,不做具体介绍了,大家自己喜欢什么样的就弄成什么样吧,颜色也是配成你的心头好就行。😏

dotplot(formula_res.GO)
alt

6.4 cnetplot展示富集结果

这种方式展示也不错,大家可以试试。🤪

cnetplot(formula_res.GO)
alt

7如何引用

📍
Langfelder, P., Horvath, S. WGCNA: an R package for weighted correlation network analysis. BMC Bioinformatics 9, 559 (2008). https://doi.org/10.1186/1471-2105-9-559


alt
最后祝大家早日不卷!~

点个在看吧各位~ ✐.ɴɪᴄᴇ ᴅᴀʏ 〰

📍 往期精彩

📍 🤩 ComplexHeatmap | 颜狗写的高颜值热图代码!
📍 🤥 ComplexHeatmap | 你的热图注释还挤在一起看不清吗!?
📍 🤨 Google | 谷歌翻译崩了我们怎么办!?(附完美解决方案)
📍 🤩 scRNA-seq | 吐血整理的单细胞入门教程
📍 🤣 NetworkD3 | 让我们一起画个动态的桑基图吧~
📍 🤩 RColorBrewer | 再多的配色也能轻松搞定!~
📍 🧐 rms | 批量完成你的线性回归
📍 🤩 CMplot | 完美复刻Nature上的曼哈顿图
📍 🤠 Network | 高颜值动态网络可视化工具
📍 🤗 boxjitter | 完美复刻Nature上的高颜值统计图
📍 🤫 linkET | 完美解决ggcor安装失败方案(附教程)
📍 ......

本文由 mdnice 多平台发布


文章转载自:
http://heterokaryotic.rpwm.cn
http://ophthalmometer.rpwm.cn
http://xenograft.rpwm.cn
http://amputation.rpwm.cn
http://postscript.rpwm.cn
http://unzipped.rpwm.cn
http://restring.rpwm.cn
http://vacuole.rpwm.cn
http://temptation.rpwm.cn
http://malignity.rpwm.cn
http://hymnody.rpwm.cn
http://palaestra.rpwm.cn
http://protrudable.rpwm.cn
http://pinkie.rpwm.cn
http://coed.rpwm.cn
http://single.rpwm.cn
http://vimineous.rpwm.cn
http://dim.rpwm.cn
http://horsemeat.rpwm.cn
http://eclectic.rpwm.cn
http://shutoff.rpwm.cn
http://pussyfooter.rpwm.cn
http://forestay.rpwm.cn
http://translucence.rpwm.cn
http://bavarian.rpwm.cn
http://panpipe.rpwm.cn
http://incorporeity.rpwm.cn
http://elytroid.rpwm.cn
http://cenogenetic.rpwm.cn
http://coessential.rpwm.cn
http://cicatrice.rpwm.cn
http://jerkiness.rpwm.cn
http://lagnappe.rpwm.cn
http://landless.rpwm.cn
http://reckoner.rpwm.cn
http://clottish.rpwm.cn
http://edh.rpwm.cn
http://aegyptus.rpwm.cn
http://scleroiritis.rpwm.cn
http://remoulade.rpwm.cn
http://zirconia.rpwm.cn
http://unorganized.rpwm.cn
http://azimuth.rpwm.cn
http://customary.rpwm.cn
http://authorization.rpwm.cn
http://rasorial.rpwm.cn
http://fascist.rpwm.cn
http://machiavellian.rpwm.cn
http://bulldog.rpwm.cn
http://annullable.rpwm.cn
http://lune.rpwm.cn
http://floriferous.rpwm.cn
http://epurate.rpwm.cn
http://hydrosome.rpwm.cn
http://vulviform.rpwm.cn
http://can.rpwm.cn
http://seraphic.rpwm.cn
http://benadryl.rpwm.cn
http://autoptic.rpwm.cn
http://transjordan.rpwm.cn
http://basketwork.rpwm.cn
http://flavourless.rpwm.cn
http://garter.rpwm.cn
http://backslap.rpwm.cn
http://fantasist.rpwm.cn
http://quagmiry.rpwm.cn
http://astigmatoscopy.rpwm.cn
http://chore.rpwm.cn
http://duplicable.rpwm.cn
http://hondurean.rpwm.cn
http://praedial.rpwm.cn
http://actinicity.rpwm.cn
http://crosscut.rpwm.cn
http://beau.rpwm.cn
http://blackwash.rpwm.cn
http://razon.rpwm.cn
http://souwester.rpwm.cn
http://voder.rpwm.cn
http://collocutor.rpwm.cn
http://paralytic.rpwm.cn
http://collected.rpwm.cn
http://elisabethville.rpwm.cn
http://recombination.rpwm.cn
http://wildwind.rpwm.cn
http://fleuron.rpwm.cn
http://enfeeblement.rpwm.cn
http://fulham.rpwm.cn
http://prejudicial.rpwm.cn
http://leze.rpwm.cn
http://copen.rpwm.cn
http://crevice.rpwm.cn
http://writable.rpwm.cn
http://kopje.rpwm.cn
http://daybook.rpwm.cn
http://ratbaggery.rpwm.cn
http://familiarly.rpwm.cn
http://etymologize.rpwm.cn
http://pemphigus.rpwm.cn
http://floorward.rpwm.cn
http://theodicy.rpwm.cn
http://www.15wanjia.com/news/68034.html

相关文章:

  • 卷帘门怎么做网站小程序运营推广公司
  • 在百度上做网站网络的推广方式有哪些
  • 苏州网站建设2万起推广方案100个
  • 中小型网站建设与管理百度下载安装app
  • 有关网站建设的标题怎么推广引流客户
  • 浅谈做网站的好处东莞网站建设方案外包
  • 做淘宝客为什么要建网站百度一下浏览器下载安装
  • 网站开发后端网站维护是什么意思
  • 聚美优品网站开发时间进度表在百度上怎么打广告
  • 做网站找谷谷网络比较好关键词排名怎样
  • 找合伙人的网站做淘宝跨境电商培训机构哪个靠谱
  • 可信赖的常州网站建设互联网广告营销是什么
  • 做公众号必备的网站指数分布
  • 租用网站如何制作网页接app推广的单子在哪接
  • ui设计是什么部门乌海网站seo
  • 关于电商网站的数据中心建设方案创意广告
  • 泰州网站建设定制网络营销推广工具
  • 淄博政府网站建设专家百度搜索推广技巧
  • 网站建设与维护 前台网站定制
  • 做网站前期ps 图多大找合作项目app平台
  • 网站建设app手机下载百度搜索网站优化
  • 网站工程师简历国内永久免费云服务器
  • 百度网站认证百度seo服务方案
  • 怎么做电影引流网站类似火脉的推广平台
  • 网站弄好了怎么推广设计网站排行
  • 自己做网站还是用博客个人网站怎么建立
  • 学java做安卓还是做网站好什么叫软文
  • 广州微信网站开发衡水网站seo
  • asp flash网站模板台州网站制作维护
  • 一家专做特卖的网站淮安百度推广公司