{"id":23867,"date":"2024-01-09T17:29:56","date_gmt":"2024-01-09T09:29:56","guid":{"rendered":"http:\/\/www.biocloudservice.com\/wordpress\/?p=23867"},"modified":"2024-01-09T17:29:57","modified_gmt":"2024-01-09T09:29:57","slug":"%e9%ab%98%e5%88%86%e7%94%9f%e4%bf%a1sci-wgcna%e5%88%86%e6%9e%90%e5%a4%8d%e7%8e%b0","status":"publish","type":"post","link":"http:\/\/www.biocloudservice.com\/wordpress\/?p=23867","title":{"rendered":"\u9ad8\u5206\u751f\u4fe1SCI-WGCNA\u5206\u6790\u590d\u73b0"},"content":{"rendered":"\n<p>\u4eca\u5929\u5c0f\u679c\u7ed9\u5c0f\u4f19\u4f34\u5e26\u6765\u7684\u5206\u4eab\u662f\u5565\u5462\uff1f\u4eca\u5929\u5c0f\u679c\u5c06\u590d\u73b0\u4e00\u7bc78+\u751f\u4fe1\u6587\u7ae0\u4e2d\u7684WGCNA\u5206\u6790\uff0c\u901a\u8fc7\u8be5\u63a8\u6587\u5c06\u638c\u63e1\u5982\u4f55\u5229\u7528\u81ea\u5df1\u7684\u6570\u636e\u8fdb\u884cWGCNA\u5206\u6790\uff0c\u6765\u8fdb\u884c\u4e0e\u8868\u578b\u6216\u8005\u75be\u75c5\u76f8\u5173\u5019\u9009\u57fa\u56e0\u7684\u6316\u6398\uff0c\u5c0f\u679c\u89c9\u5f97WGCNA\u662f\u4e00\u4e2a\u975e\u5e38\u4e0d\u9519\u7684\u5019\u9009\u57fa\u56e0\u6316\u6398\u7684\u65b9\u6cd5\uff0c\u503c\u5f97\u5c0f\u4f19\u4f34\u4eec\u8ba4\u771f\u5b66\u4e60\uff0c\u63a5\u4e0b\u6765\u8ddf\u7740\u5c0f\u679c\u5f00\u59cb\u4eca\u5929\u7684\u5206\u4eab\u5427\uff01<\/p>\n\n\n\n<p>1.WGCNA\u4ecb\u7ecd<\/p>\n\n\n\n<p>\u5728\u5f00\u59cb\u5206\u6790\u4e4b\u524d\uff0c\u5c0f\u679c\u60f3\u4e3a\u5c0f\u4f19\u4f34\u7b80\u5355\u4ecb\u7ecd\u4e00\u4e0bWGCNA\uff0cWGCNA\u662f\u4e00\u79cd\u7528\u4e8e\u57fa\u56e0\u5171\u8868\u8fbe\u7684\u65b9\u6cd5\uff0c\u5b83\u53ef\u4ee5\u5c06\u9ad8\u901a\u91cf\u57fa\u56e0\u8868\u8fbe\u6570\u636e\u8f6c\u5316\u4e3a\u4e00\u4e2a\u5171\u8868\u8fbe\u7f51\u7edc\uff0c\u4ece\u800c\u53d1\u73b0\u5177\u6709\u76f8\u4f3c\u8868\u8fbe\u6a21\u5f0f\u7684\u57fa\u56e0\u6a21\u5757\uff0c\u4ee5\u53ca\u7814\u7a76\u8fd9\u4e9b\u6a21\u5757\u4e0e\u8868\u578b\u4e4b\u95f4\u7684\u76f8\u5173\u6027\uff0c\u6700\u7ec8\u6316\u6398\u4e0e\u8868\u578b\u76f8\u5173\u7684\u5019\u9009\u57fa\u56e0\u3002\u8fd9\u5c31\u662f\u5c0f\u679c\u5bf9WGCNA\u5206\u6790\u539f\u7406\u7684\u7b80\u5355\u4ecb\u7ecd\uff0c\u662f\u4e0d\u662f\u901a\u4fd7\u6613\u61c2\u5965\uff01\u5176\u5b9eWGCNA\u5206\u6790\u5f88\u7b80\u5355\uff0c\u5c0f\u4f19\u4f34\u4e0d\u8981\u56e0\u4e3a\u5206\u6790\u6b65\u9aa4\u591a\u800c\u4e0d\u6562\u5c1d\u8bd5\uff0c\u53ea\u9700\u8981\u8f93\u5165\u57fa\u56e0\u8868\u8fbe\u77e9\u9635\u548c\u5bf9\u5e94\u6837\u672c\u8868\u578b\u6570\u636e\u6587\u4ef6\uff0c\u5c31\u53ef\u4ee5\u5b8c\u6210\u5206\u6790\uff0c\u6709\u9700\u8981\u7684\u5c0f\u4f19\u4f34\u53ef\u4ee5\u8ddf\u7740\u5c0f\u679c\u5f00\u59cb\u4eca\u5929\u7684\u5b9e\u64cd\u3002<\/p>\n\n\n\n<p>2.\u51c6\u5907\u9700\u8981\u7684R\u5305<\/p>\n\n\n\n<p>#\u5b89\u88c5\u9700\u8981\u7684R\u5305<\/p>\n\n\n\n<p>BiocManager::install(&#8220;WGCNA&#8221;)<\/p>\n\n\n\n<p>#\u52a0\u8f7d\u9700\u8981\u7684R\u5305<\/p>\n\n\n\n<p>library(WGCNA)<\/p>\n\n\n\n<p>3.WGCNA\u5206\u6790<\/p>\n\n\n\n<p>#\u8bfb\u53d6\u8868\u8fbe\u77e9\u9635\uff0c\u884c\u540d\u4e3a\u57fa\u56e0\uff0c\u5217\u540d\u4e3a\u6837\u672c\u4fe1\u606f<\/p>\n\n\n\n<p>expr&lt;-read.table(&#8220;combined.expr.txt&#8221;,header=T,sep=&#8221;\\t&#8221;)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"138\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613085327.jpeg?resize=640%2C138\" alt=\"Dingtalk_20230613085327\" class=\"wp-image-23868\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613085327.jpeg?w=1268 1268w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613085327.jpeg?resize=300%2C65 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613085327.jpeg?resize=1024%2C220 1024w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613085327.jpeg?resize=768%2C165 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613085327.jpeg?resize=600%2C129 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>#\u884c\u5217\u8f6c\u7f6e<\/p>\n\n\n\n<p>mydata&lt;-expr<\/p>\n\n\n\n<p>expr2&lt;-data.frame(t(mydata))<\/p>\n\n\n\n<p>#\u786e\u5b9aexpr2\u5217\u540d<\/p>\n\n\n\n<p>colnames(expr2)&lt;-rownames(mydata)<\/p>\n\n\n\n<p>#\u786e\u5b9aexpr2\u884c\u540d<\/p>\n\n\n\n<p>rownames(expr2)&lt;-colnames(mydata)<\/p>\n\n\n\n<p>#\u57fa\u56e0\u8fc7\u6ee4<\/p>\n\n\n\n<p>dataExpr1&lt;-expr2<\/p>\n\n\n\n<p>gsg=goodSamplesGenes(dataExpr1,verbose=3);<\/p>\n\n\n\n<p>gsg$allOK<\/p>\n\n\n\n<p>if (!gsg$allOK){<\/p>\n\n\n\n<p># Optionally, print the gene and sample names that were removed:<\/p>\n\n\n\n<p>if (sum(!gsg$goodGenes)&gt;0)<\/p>\n\n\n\n<p>printFlush(paste(&#8220;Removing genes:&#8221;,<\/p>\n\n\n\n<p>paste(names(dataExpr)[!gsg$goodGenes], collapse = &#8220;,&#8221;)));<\/p>\n\n\n\n<p>if (sum(!gsg$goodSamples)&gt;0)<\/p>\n\n\n\n<p>printFlush(paste(&#8220;Removing samples:&#8221;,<\/p>\n\n\n\n<p>paste(rownames(dataExpr)[!gsg$goodSamples], collapse = &#8220;,&#8221;)));<\/p>\n\n\n\n<p># Remove the offending genes and samples from the data:<\/p>\n\n\n\n<p>dataExpr1 = dataExpr1[gsg$goodSamples, gsg$goodGenes]<\/p>\n\n\n\n<p>}<\/p>\n\n\n\n<p>#\u57fa\u56e0\u6570\u76ee<\/p>\n\n\n\n<p>nGenes = ncol(dataExpr1)<\/p>\n\n\n\n<p>#\u6837\u672c\u6570\u76ee<\/p>\n\n\n\n<p>nSamples = nrow(dataExpr1)<\/p>\n\n\n\n<p>#\u5bfc\u5165\u8868\u578b\u6570\u636e\uff0c\u7b2c\u4e00\u5217\u4e3a\u6837\u672c\u4fe1\u606f\uff0c\u5176\u4ed6\u5217\u4e3a\u8868\u578b\u6570\u636e\uff0c\u9700\u8981\u6ce8\u610f\u7684\u662f\u8868\u578b\u6570\u636e\u8981\u4e0e\u6837\u672c\u6570\u636e\u4e00\u4e00\u5bf9\u5e94<\/p>\n\n\n\n<p>traitData=read.table(&#8220;TraitData.txt&#8221;,header=T,sep=&#8221;\\t&#8221;,row.names=1)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"169\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613090611.jpeg?resize=640%2C169\" alt=\"Dingtalk_20230613090611\" class=\"wp-image-23869\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613090611.jpeg?w=991 991w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613090611.jpeg?resize=300%2C79 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613090611.jpeg?resize=768%2C203 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613090611.jpeg?resize=600%2C159 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>#\u63d0\u53d6\u8868\u8fbe\u77e9\u9635\u6837\u672c\u540d<\/p>\n\n\n\n<p>fpkmSamples&lt;-rownames(dataExpr1)<\/p>\n\n\n\n<p>#\u63d0\u53d6\u8868\u578b\u6587\u4ef6\u6837\u672c\u540d<\/p>\n\n\n\n<p>traitSamples&lt;-rownames(traitData)<\/p>\n\n\n\n<p>#\u8868\u8fbe\u77e9\u9635\u6837\u672c\u540d\u987a\u5e8f\u5339\u914d\u8868\u578b\u6587\u4ef6\u6837\u672c\u540d<\/p>\n\n\n\n<p>traitRows&lt;-match(fpkmSamples,traitSamples)<\/p>\n\n\n\n<p>#\u83b7\u5f97\u5339\u914d\u597d\u6837\u672c\u987a\u5e8f\u7684\u8868\u578b\u6587\u4ef6<\/p>\n\n\n\n<p>dataTraits&lt;-traitData[traitRows,]<\/p>\n\n\n\n<p>#\u7ed8\u5236\u6811+\u8868\u578b\u70ed\u56fe<\/p>\n\n\n\n<p>sampleTree2&lt;-hclust(dist(dataExpr1),method=&#8221;average&#8221;)<\/p>\n\n\n\n<p>traitColors&lt;-numbers2colors(dataTraits,signed=FALSE)<\/p>\n\n\n\n<p>png(&#8220;sample-subtype-cluster.png&#8221;,width = 800,height = 600)<\/p>\n\n\n\n<p>plotDendroAndColors(sampleTree2,traitColors,groupLabels=names(dataTraits),main=&#8221;Sample dendrogram and trait heatmap&#8221;,<\/p>\n\n\n\n<p>cex.colorLabels=1.5,cex.dendroLabels=1,cex.rowText=2)<\/p>\n\n\n\n<p>dev.off()<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"480\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/sample-subtype-cluster.png?resize=640%2C480\" alt=\"sample-subtype-cluster\" class=\"wp-image-23870\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/sample-subtype-cluster.png?w=800 800w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/sample-subtype-cluster.png?resize=300%2C225 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/sample-subtype-cluster.png?resize=768%2C576 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/sample-subtype-cluster.png?resize=600%2C450 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>#\u8ba1\u7b97\u5408\u9002\u7684power\u503c\uff0c\u5e76\u7ed8\u5236Power\u503c\u66f2\u7ebf\u56fe<\/p>\n\n\n\n<p>powers = c(c(1:10), seq(from = 12, to=20, by=2))<\/p>\n\n\n\n<p>sft = pickSoftThreshold(dataExpr1, powerVector = powers, verbose = 5)<\/p>\n\n\n\n<p>#\u8bbe\u7f6e\u7f51\u7edc\u6784\u5efa\u53c2\u6570\u9009\u62e9\u8303\u56f4\uff0c\u8ba1\u7b97\u65e0\u5c3a\u5ea6\u5206\u5e03\u62d3\u6251\u77e9\u9635<\/p>\n\n\n\n<p>png(&#8220;step2-beta-value.png&#8221;,width = 800,height = 600)<\/p>\n\n\n\n<p>par(mfrow = c(1,2));<\/p>\n\n\n\n<p>cex1 = 0.9;<\/p>\n\n\n\n<p># Scale-free topology fit index as a function of the soft-thresholding power<\/p>\n\n\n\n<p>plot(sft$fitIndices[,1], -sign(sft$fitIndices[,3])*sft$fitIndices[,2],<\/p>\n\n\n\n<p>xlab=&#8221;Soft Threshold (power)&#8221;,ylab=&#8221;Scale Free Topology Model Fit,signed R^2&#8243;,type=&#8221;n&#8221;,<\/p>\n\n\n\n<p>main = paste(&#8220;Scale independence&#8221;));<\/p>\n\n\n\n<p>text(sft$fitIndices[,1], -sign(sft$fitIndices[,3])*sft$fitIndices[,2],<\/p>\n\n\n\n<p>labels=powers,cex=cex1,col=&#8221;red&#8221;);<\/p>\n\n\n\n<p># this line corresponds to using an R^2 cut-off of h<\/p>\n\n\n\n<p>abline(h=0.90,col=&#8221;red&#8221;)<\/p>\n\n\n\n<p># Mean connectivity as a function of the soft-thresholding power<\/p>\n\n\n\n<p>plot(sft$fitIndices[,1], sft$fitIndices[,5],<\/p>\n\n\n\n<p>xlab=&#8221;Soft Threshold (power)&#8221;,ylab=&#8221;Mean Connectivity&#8221;, type=&#8221;n&#8221;,<\/p>\n\n\n\n<p>main = paste(&#8220;Mean connectivity&#8221;))<\/p>\n\n\n\n<p>text(sft$fitIndices[,1], sft$fitIndices[,5], labels=powers, cex=cex1,col=&#8221;red&#8221;)<\/p>\n\n\n\n<p>dev.off()<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"480\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step2-beta-value.png?resize=640%2C480\" alt=\"step2-beta-value\" class=\"wp-image-23871\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step2-beta-value.png?w=800 800w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step2-beta-value.png?resize=300%2C225 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step2-beta-value.png?resize=768%2C576 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step2-beta-value.png?resize=600%2C450 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>#\u4e00\u6b65\u6cd5\u6784\u5efa\u5171\u8868\u8fbe\u7f51\u7edc<\/p>\n\n\n\n<p>##\u9700\u8981\u8c03\u7528WGCNA\u5305\u81ea\u5e26\u7684cor\u51fd\u6570\uff0c\u4e0d\u7136\u4f1a\u53d1\u751f\u62a5\u9519\u5965\uff01<\/p>\n\n\n\n<p>cor&lt;-WGCNA::cor<\/p>\n\n\n\n<p>##\u5728\u8fdb\u884c\u5171\u8868\u8fbe\u7f51\u7edc\u6784\u5efa\u65f6\uff0cpower\u503c\u7684\u9009\u62e9\u975e\u5e38\u91cd\u8981\uff0c\u6700\u5f71\u54cd\u7ed3\u679c\u7684\u4e00\u4e2a\u53c2\u6570\uff0c\u9700\u8981\u7ecf\u8fc7\u591a\u6b21\u5c1d\u8bd5\uff0c\u624d\u80fd\u627e\u5230\u6700\u9002\u5408\u7684\u3002<\/p>\n\n\n\n<p>net = blockwiseModules(dataExpr1, power = 7, maxBlockSize = nGenes,<\/p>\n\n\n\n<p>TOMType =&#8217;unsigned&#8217;, minModuleSize = 30,<\/p>\n\n\n\n<p>reassignThreshold = 0, mergeCutHeight = 0.25,<\/p>\n\n\n\n<p>numericLabels = TRUE, pamRespectsDendro = FALSE,<\/p>\n\n\n\n<p>saveTOMs=TRUE, saveTOMFileBase = &#8220;drought&#8221;,<\/p>\n\n\n\n<p>verbose = 3)<\/p>\n\n\n\n<p>table(net$colors)<\/p>\n\n\n\n<p>cor&lt;-stats::cor<\/p>\n\n\n\n<p>#\u7ed8\u5236\u57fa\u56e0\u805a\u7c7b\u6811\u548c\u6a21\u5757\u989c\u8272\u7ec4\u5408<\/p>\n\n\n\n<p># Convert labels to colors for plotting<\/p>\n\n\n\n<p>moduleLabels = net$colors<\/p>\n\n\n\n<p>moduleColors = labels2colors(moduleLabels)<\/p>\n\n\n\n<p># Plot the dendrogram and the module colors underneath<\/p>\n\n\n\n<p>png(&#8220;step4-genes-modules.png&#8221;,width = 800,height = 600)<\/p>\n\n\n\n<p>plotDendroAndColors(net$dendrograms[[1]], moduleColors[net$blockGenes[[1]]],<\/p>\n\n\n\n<p>&#8220;Module colors&#8221;,<\/p>\n\n\n\n<p>dendroLabels = FALSE, hang = 0.03,<\/p>\n\n\n\n<p>addGuide = TRUE, guideHang = 0.05)<\/p>\n\n\n\n<p>dev.off()<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"480\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step4-genes-modules.png?resize=640%2C480\" alt=\"step4-genes-modules\" class=\"wp-image-23872\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step4-genes-modules.png?w=800 800w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step4-genes-modules.png?resize=300%2C225 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step4-genes-modules.png?resize=768%2C576 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step4-genes-modules.png?resize=600%2C450 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>#\u8ba1\u7b97\u6a21\u5757\u4e0e\u6027\u72b6\u95f4\u7684\u76f8\u5173\u6027\u53ca\u7ed8\u5236\u76f8\u5173\u6027\u70ed\u56fe<\/p>\n\n\n\n<p>nGenes = ncol(dataExpr1)<\/p>\n\n\n\n<p>nSamples = nrow(dataExpr1)<\/p>\n\n\n\n<p>design=read.table(&#8220;TraitData.txt&#8221;, sep = &#8216;\\t&#8217;, header = T, row.names = 1)<\/p>\n\n\n\n<p># Recalculate MEs with color labels<\/p>\n\n\n\n<p>MEs0 = moduleEigengenes(dataExpr1, moduleColors)$eigengenes<\/p>\n\n\n\n<p>##\u4e0d\u540c\u989c\u8272\u7684\u6a21\u5757\u7684ME\u503c\u77e9 (\u6837\u672cvs\u6a21\u5757)<\/p>\n\n\n\n<p>MEs = orderMEs(MEs0);<\/p>\n\n\n\n<p>moduleTraitCor = cor(MEs, design , use = &#8220;p&#8221;);<\/p>\n\n\n\n<p>moduleTraitPvalue = corPvalueStudent(moduleTraitCor, nSamples)<\/p>\n\n\n\n<p># Will display correlations and their p-values<\/p>\n\n\n\n<p>textMatrix = paste(signif(moduleTraitCor, 2), &#8220;\\n(&#8220;,<\/p>\n\n\n\n<p>signif(moduleTraitPvalue, 1), &#8220;)&#8221;, sep = &#8220;&#8221;);<\/p>\n\n\n\n<p>dim(textMatrix) = dim(moduleTraitCor)<\/p>\n\n\n\n<p>png(&#8220;step5-Module-trait-relationships.png&#8221;,width = 800,height = 1200,res = 120)<\/p>\n\n\n\n<p>par(mar = c(6, 8.5, 3, 3));<\/p>\n\n\n\n<p># Display the correlation values within a heatmap plot<\/p>\n\n\n\n<p>labeledHeatmap(Matrix = moduleTraitCor,<\/p>\n\n\n\n<p>xLabels = colnames(design),<\/p>\n\n\n\n<p>yLabels = names(MEs),<\/p>\n\n\n\n<p>ySymbols = names(MEs),<\/p>\n\n\n\n<p>colorLabels = FALSE,<\/p>\n\n\n\n<p>colors = greenWhiteRed(50),<\/p>\n\n\n\n<p>textMatrix = textMatrix,<\/p>\n\n\n\n<p>setStdMargins = FALSE,<\/p>\n\n\n\n<p>cex.text = 0.5,<\/p>\n\n\n\n<p>zlim = c(-1,1),<\/p>\n\n\n\n<p>main = paste(&#8220;Module-trait relationships&#8221;))<\/p>\n\n\n\n<p>dev.off()<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"960\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step5-module-trait-relationships.png?resize=640%2C960\" alt=\"step5-Module-trait-relationships\" class=\"wp-image-23873\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step5-module-trait-relationships.png?w=800 800w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step5-module-trait-relationships.png?resize=200%2C300 200w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step5-module-trait-relationships.png?resize=683%2C1024 683w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step5-module-trait-relationships.png?resize=768%2C1152 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step5-module-trait-relationships.png?resize=600%2C900 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>#\u8ba1\u7b97MM\u503c\u548cGS\u503c\u5e76\u7ed8\u56fe<\/p>\n\n\n\n<p>##\u5207\u5272\uff0c\u4ece\u7b2c\u4e09\u4e2a\u5b57\u7b26\u5f00\u59cb\u4fdd\u5b58<\/p>\n\n\n\n<p>modNames = substring(names(MEs), 3)<\/p>\n\n\n\n<p>geneModuleMembership = as.data.frame(cor(dataExpr1, MEs, use = &#8220;p&#8221;));<\/p>\n\n\n\n<p>## \u7b97\u51fa\u6bcf\u4e2a\u6a21\u5757\u8ddf\u57fa\u56e0\u7684\u76ae\u5c14\u68ee\u76f8\u5173\u7cfb\u6570\u77e9<\/p>\n\n\n\n<p>## MEs\u662f\u6bcf\u4e2a\u6a21\u5757\u5728\u6bcf\u4e2a\u6837\u672c\u91cc\u9762\u76bf<\/p>\n\n\n\n<p>## dataExpr1\u662f\u6bcf\u4e2a\u57fa\u56e0\u5728\u6bcf\u4e2a\u6837\u672c\u7684\u8868\u8fbe\u91cf<\/p>\n\n\n\n<p>MMPvalue = as.data.frame(<\/p>\n\n\n\n<p>corPvalueStudent(as.matrix(geneModuleMembership), nSamples) ##\u8ba1\u7b97MM\u503c\u5bf9\u5e94\u7684P\u503c<\/p>\n\n\n\n<p>);<\/p>\n\n\n\n<p>names(geneModuleMembership) = paste(&#8220;MM&#8221;, modNames, sep=&#8221;&#8221;); ##\u7ed9MM\u5bf9\u8c61\u7edf\u4e00\u8d4b\u540d<\/p>\n\n\n\n<p>names(MMPvalue) = paste(&#8220;p.MM&#8221;, modNames, sep=&#8221;&#8221;); ##\u7ed9MMPvalue\u5bf9\u8c61\u7edf\u4e00\u8d4b\u540d<\/p>\n\n\n\n<p>##\u8ba1\u7b97\u57fa\u56e0\u4e0e\u6bcf\u4e2a\u6027\u72b6\u7684\u663e\u8457\u6027\uff08\u76f8\u5173\u6027\uff09\u53capvalue\u503c<\/p>\n\n\n\n<p>geneTraitSignificance = as.data.frame(cor(dataExpr1, design, use = &#8220;p&#8221;));<\/p>\n\n\n\n<p>GSPvalue = as.data.frame(<\/p>\n\n\n\n<p>corPvalueStudent(as.matrix(geneTraitSignificance), nSamples) ##\u8ba1\u7b97GS\u503c\u5bf9\u5e94\u7684pvalue\u503c<\/p>\n\n\n\n<p>);<\/p>\n\n\n\n<p>names(geneTraitSignificance) = paste(&#8220;GS.&#8221;, colnames(design), sep=&#8221;&#8221;);<\/p>\n\n\n\n<p>names(GSPvalue) = paste(&#8220;p.GS.&#8221;, colnames(design), sep=&#8221;&#8221;);<\/p>\n\n\n\n<p>module = &#8220;brown&#8221;<\/p>\n\n\n\n<p>column = match(module, modNames); ##\u5728\u6240\u6709\u6a21\u5757\u4e2d\u5339\u914d\u9009\u62e9\u7684\u6a21\u5757\uff0c\u8fd4\u56de\u6240\u5728\u7684\u4f4d\u7f6e<\/p>\n\n\n\n<p>moduleGenes = moduleColors==module; ##==\u5339\u914d\uff0c\u5339\u914d\u4e0a\u7684\u8fd4\u56deTrue\uff0c\u5426\u5219\u8fd4\u56defalse<\/p>\n\n\n\n<p>png(&#8220;step6-Module_membership-gene_significance.png&#8221;,width = 800,height = 600)<\/p>\n\n\n\n<p>par(mfrow = c(1,1)); ##\u8bbe\u5b9a\u8f93\u51fa\u56fe\u7247\u884c\u5217\u6570\u91cf\uff0c\uff081\uff3f1\uff09\u4ee3\u8868\u884c\u4e00\u4e2a\uff0c\u5217\u4e00\u4e3f<\/p>\n\n\n\n<p>verboseScatterplot(abs(geneModuleMembership[moduleGenes, column]), ## \u7ed8\u5236MM\u548cGS\u6563\u70b9\u56ff<\/p>\n\n\n\n<p>abs(geneTraitSignificance[moduleGenes, 1]),<\/p>\n\n\n\n<p>xlab = paste(&#8220;Module Membership in&#8221;, module, &#8220;module&#8221;),<\/p>\n\n\n\n<p>ylab = &#8220;Gene significance for Basal&#8221;,<\/p>\n\n\n\n<p>main = paste(&#8220;Module membership vs. gene significance\\n&#8221;),<\/p>\n\n\n\n<p>cex.main = 1.2, cex.lab = 1.2, cex.axis = 1.2, col = module)<\/p>\n\n\n\n<p>dev.off()<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"480\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step6-module_membership-gene_significance.png?resize=640%2C480\" alt=\"step6-Module_membership-gene_significance\" class=\"wp-image-23874\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step6-module_membership-gene_significance.png?w=800 800w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step6-module_membership-gene_significance.png?resize=300%2C225 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step6-module_membership-gene_significance.png?resize=768%2C576 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step6-module_membership-gene_significance.png?resize=600%2C450 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>#\u7ed8\u5236TOM\u70ed\u56fe+\u6a21\u5757\u6027\u72b6\u7ec4\u5408\u56fe<\/p>\n\n\n\n<p>geneTree = net$dendrograms[[1]]; ##\u63d0\u53d6\u57fa\u56e0\u805a\u7c7b<\/p>\n\n\n\n<p>dissTOM = 1-TOMsimilarityFromExpr(dataExpr1, power = 7); ##\u8ba1\u7b97TOM\u8ddd\u79bb<\/p>\n\n\n\n<p>plotTOM = dissTOM^7; ##\u901a\u8fc77\u6b21\u65b9\u5904\u7406\u8fdb\u884c\u6807\u51c6\u5316\uff0c\u964d\u4f4e\u57fa\u56e0\u95f4\u7684\u8bef\u5dee<\/p>\n\n\n\n<p>diag(plotTOM) = NA; ##\u66ff\u6362\u659c\u5bf9\u89d2\u77e9\u9635\u4e2d\u7684\u5185\u5bb9\u4e3aNA<\/p>\n\n\n\n<p>TOMplot(plotTOM, geneTree, moduleColors, main = &#8220;Network heatmap plot, all genes&#8221;)<\/p>\n\n\n\n<p>nSelect = 400 ##\u6311\u9009\u9700\u8981\u63d0\u53d6\u7684\u57fa\u56e0<\/p>\n\n\n\n<p>set.seed(10); ##\u8bbe\u7f6e\u968f\u673a\u79cd\u5b50\u6570\uff0c\u4fdd\u8bc1\u9009\u53d6\u7684\u968f\u673a\u6027<\/p>\n\n\n\n<p>select = sample(nGenes, size = nSelect); ##\u4eff5000\u4e2a\u57fa\u56e0\u4e2d\u968f\u673a\u53ff400\u4e3f<\/p>\n\n\n\n<p>selectTOM = dissTOM[select, select]; ##\u63d0\u53d6\u6311\u51fa\u6765\u7684\u57fa\u56e0\u7684TOM\u8ddd\u79bb<\/p>\n\n\n\n<p># There\u2019s no simple way of restricting a clustering tree to a subset of genes, so we must re-cluster.<\/p>\n\n\n\n<p>selectTree = hclust(as.dist(selectTOM), method = &#8220;average&#8221;) ##\u5bf9\u6311\u51fa\u6765\u5bf9\u57fa\u56e0TOM\u8ddd\u79bb\u91cd\u65b0\u805a\u7c7b<\/p>\n\n\n\n<p>selectColors = moduleColors[select];<\/p>\n\n\n\n<p># Open a graphical window<\/p>\n\n\n\n<p>sizeGrWindow(9,9)<\/p>\n\n\n\n<p># Taking the dissimilarity to a power, say 10, makes the plot more informative by effectively changing<\/p>\n\n\n\n<p># the color palette; setting the diagonal to NA also improves the clarity of the plot<\/p>\n\n\n\n<p>plotDiss = selectTOM^7; ##\u5bf9\u6311\u9009\u51fa\u5bf9\u57fa\u56e0TOM\u8ddd\u79bb7\u6b21\u65b9\u5904\u7406<\/p>\n\n\n\n<p>diag(plotDiss) = NA; ##\u66ff\u6362\u659c\u5bf9\u89d2\u77e9\u9635\u4e2d\u7684\u5185\u5bb9\u4e3aNA<\/p>\n\n\n\n<p>png(&#8220;step7-Network-heatmap.png&#8221;,width = 800,height = 600)<\/p>\n\n\n\n<p>TOMplot(plotDiss, selectTree, selectColors, ##\u7ed8\u5236TOM\u56fe<\/p>\n\n\n\n<p>main = &#8220;Network heatmap plot, selected genes&#8221;)<\/p>\n\n\n\n<p>dev.off()<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"480\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step7-network-heatmap.png?resize=640%2C480\" alt=\"step7-Network-heatmap\" class=\"wp-image-23875\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step7-network-heatmap.png?w=800 800w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step7-network-heatmap.png?resize=300%2C225 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step7-network-heatmap.png?resize=768%2C576 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step7-network-heatmap.png?resize=600%2C450 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p># \u6a21\u5757\u6027\u72b6\u7ec4\u5408\u56fe<\/p>\n\n\n\n<p>RA = as.data.frame(design[,2]); ##\u63d0\u53d6\u7279\u5b9a\u6027\u72b6<\/p>\n\n\n\n<p>names(RA) = &#8220;RA&#8221;<\/p>\n\n\n\n<p># Add the weight to existing module eigengenes<\/p>\n\n\n\n<p>MET = orderMEs(cbind(MEs, RA))<\/p>\n\n\n\n<p># Plot the relationships among the eigengenes and the trait<\/p>\n\n\n\n<p>sizeGrWindow(5,7.5);<\/p>\n\n\n\n<p>par(cex = 0.9)<\/p>\n\n\n\n<p>png(&#8220;step7-Eigengene-dendrogram.png&#8221;,width = 800,height = 600)<\/p>\n\n\n\n<p>plotEigengeneNetworks(MET, &#8220;&#8221;, ##\u7ed8\u5236\u6a21\u5757\u805a\u7c7b\u56fe\u548c\u70ed\u56fe<\/p>\n\n\n\n<p>marDendro =c(0,5,1,5), ##\u6811\u7c7b\u56fe\u533a\u95f4\u5927\u5c0f\u8c01\u5bbf<\/p>\n\n\n\n<p>marHeatmap = c(5,6,1,2), cex.lab = 0.8, ##\u6811\u7c7b\u56fe\u533a\u95f4\u5927\u5c0f\u8c01\u5bbf<\/p>\n\n\n\n<p>xLabelsAngle = 90) ##\u8f74\u9c9c\u827f90\u5ebf<\/p>\n\n\n\n<p>dev.off()<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"480\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step7-eigengene-dendrogram.png?resize=640%2C480\" alt=\"step7-Eigengene-dendrogram\" class=\"wp-image-23876\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step7-eigengene-dendrogram.png?w=800 800w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step7-eigengene-dendrogram.png?resize=300%2C225 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step7-eigengene-dendrogram.png?resize=768%2C576 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step7-eigengene-dendrogram.png?resize=600%2C450 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>#\u5bfc\u51fa\u5355\u4e2a\u6a21\u5757\u7684\u7f51\u7edc\u7ed3\u679c<\/p>\n\n\n\n<p>TOM = TOMsimilarityFromExpr(dataExpr1, power = 7); ##\u9700\u8981\u8f83\u957f\u65f6\u95f4<\/p>\n\n\n\n<p># \u9009\u62e9brown\u6a21\u5757<\/p>\n\n\n\n<p>module = &#8220;brown&#8221;;<\/p>\n\n\n\n<p># Select module probes<\/p>\n\n\n\n<p>probes = colnames(dataExpr1)<\/p>\n\n\n\n<p>inModule = (moduleColors==module);<\/p>\n\n\n\n<p>## \u63d0\u53d6\u6307\u5b9a\u6a21\u5757\u7684\u57fa\u56e0\u540d<\/p>\n\n\n\n<p>modProbes = probes[inModule];<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"235\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613103051.jpeg?resize=640%2C235\" alt=\"Dingtalk_20230613103051\" class=\"wp-image-23877\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613103051.jpeg?w=1083 1083w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613103051.jpeg?resize=300%2C110 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613103051.jpeg?resize=1024%2C376 1024w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613103051.jpeg?resize=768%2C282 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613103051.jpeg?resize=600%2C220 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>modTOM = TOM[inModule, inModule];<\/p>\n\n\n\n<p>dimnames(modTOM) = list(modProbes, modProbes)<\/p>\n\n\n\n<p>## \u6a21\u5757\u5bf9\u5e94\u7684\u57fa\u56e0\u5173\u7cfb\u77e9<\/p>\n\n\n\n<p>cyt = exportNetworkToCytoscape( ##\u5bfc\u51fa\u5355\u4e2a\u6a21\u5757\u7684Cytoscape\u8f93\u5165\u6587\u4ef6<\/p>\n\n\n\n<p>modTOM,<\/p>\n\n\n\n<p>edgeFile = paste(&#8220;CytoscapeInput-edges-&#8220;, paste(module, collapse=&#8221;-&#8220;), &#8220;.txt&#8221;, sep=&#8221;&#8221;), ##\u8f93\u51fa\u8fb9\u6587\u4ef6\u540d<\/p>\n\n\n\n<p>nodeFile = paste(&#8220;CytoscapeInput-nodes-&#8220;, paste(module, collapse=&#8221;-&#8220;), &#8220;.txt&#8221;, sep=&#8221;&#8221;), ##\u8f93\u51fa\u70b9\u6587\u4ef6\u540d<\/p>\n\n\n\n<p>weighted = TRUE,<\/p>\n\n\n\n<p>threshold = 0.02,<\/p>\n\n\n\n<p>nodeNames = modProbes,<\/p>\n\n\n\n<p>nodeAttr = moduleColors[inModule]<\/p>\n\n\n\n<p>)<\/p>\n\n\n\n<p>CytoscapeInput-edges-brown.txt\uff0c\u8fb9\u6587\u4ef6<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"203\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102320.jpeg?resize=640%2C203\" alt=\"Dingtalk_20230613102320\" class=\"wp-image-23878\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102320.jpeg?w=1117 1117w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102320.jpeg?resize=300%2C95 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102320.jpeg?resize=1024%2C325 1024w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102320.jpeg?resize=768%2C243 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102320.jpeg?resize=600%2C190 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>CytoscapeInput-nodes-brown.txt,\u70b9\u6587\u4ef6<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"218\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102430.jpeg?resize=640%2C218\" alt=\"Dingtalk_20230613102430\" class=\"wp-image-23879\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102430.jpeg?w=1095 1095w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102430.jpeg?resize=300%2C102 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102430.jpeg?resize=1024%2C349 1024w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102430.jpeg?resize=768%2C262 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102430.jpeg?resize=600%2C204 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>\u6700\u7ec8\u5c0f\u679c\u6210\u529f\u5b8c\u6210\u4e86WGCNA\u5206\u6790\uff0c\u57fa\u672c\u8fbe\u5230\u4e86\u590d\u73b0\uff0c\u4eca\u5929\u5c0f\u679c\u7684\u5206\u4eab\u5c31\u5230\u8fd9\u91cc\u5566\uff01\u5982\u679c\u5c0f\u4f19\u4f34\u6709\u5176\u4ed6\u6570\u636e\u5206\u6790\u9700\u6c42\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u672c\u516c\u53f8\u65b0\u5f00\u53d1\u7684\u751f\u4fe1\u5206\u6790\u5c0f\u5de5\u5177\u4e91\u5e73\u53f0\uff0c\u96f6\u4ee3\u7801\u5b8c\u6210\u5206\u6790\uff0c\u975e\u5e38\u65b9\u4fbf\u5965\uff0c\u4e91\u5e73\u53f0\u7f51\u5740\u4e3a\uff1ahttp:\/\/www.biocloudservice.com\/home.html,\u5305\u62ec\u4e86WGCNA\u5206\u6790(http:\/\/www.biocloudservice.com\/336\/336.php),GEO\u6570\u636e\u4e0b\u8f7d(http:\/\/www.biocloudservice.com\/371\/371.php)\u7b49\u5c0f\u5de5\u5177\uff0c\u6b22\u8fce\u5927\u5bb6\u548c\u5c0f\u679c\u4e00\u8d77\u8ba8\u8bba\u5b66\u4e60\u54c8\uff01\uff01\uff01\uff01<\/p>\n\n\n<p>\u9ad8\u5206\u751f\u4fe1SCI-WGCNA\u5206\u6790\u590d\u73b0<\/p>\n<p>\u4eca\u5929\u5c0f\u679c\u7ed9\u5c0f\u4f19\u4f34\u5e26\u6765\u7684\u5206\u4eab\u662f\u5565\u5462\uff1f\u4eca\u5929\u5c0f\u679c\u5c06\u590d\u73b0\u4e00\u7bc78+\u751f\u4fe1\u6587\u7ae0\u4e2d\u7684WGCNA\u5206\u6790\uff0c\u901a\u8fc7\u8be5\u63a8\u6587\u5c06\u638c\u63e1\u5982\u4f55\u5229\u7528\u81ea\u5df1\u7684\u6570\u636e\u8fdb\u884cWGCNA\u5206\u6790\uff0c\u6765\u8fdb\u884c\u4e0e\u8868\u578b\u6216\u8005\u75be\u75c5\u76f8\u5173\u5019\u9009\u57fa\u56e0\u7684\u6316\u6398\uff0c\u5c0f\u679c\u89c9\u5f97WGCNA\u662f\u4e00\u4e2a\u975e\u5e38\u4e0d\u9519\u7684\u5019\u9009\u57fa\u56e0\u6316\u6398\u7684\u65b9\u6cd5\uff0c\u503c\u5f97\u5c0f\u4f19\u4f34\u4eec\u8ba4\u771f\u5b66\u4e60\uff0c\u63a5\u4e0b\u6765\u8ddf\u7740\u5c0f\u679c\u5f00\u59cb\u4eca\u5929\u7684\u5206\u4eab\u5427\uff01<\/p>\n<p>1.WGCNA\u4ecb\u7ecd<\/p>\n<p>\u5728\u5f00\u59cb\u5206\u6790\u4e4b\u524d\uff0c\u5c0f\u679c\u60f3\u4e3a\u5c0f\u4f19\u4f34\u7b80\u5355\u4ecb\u7ecd\u4e00\u4e0bWGCNA\uff0cWGCNA\u662f\u4e00\u79cd\u7528\u4e8e\u57fa\u56e0\u5171\u8868\u8fbe\u7684\u65b9\u6cd5\uff0c\u5b83\u53ef\u4ee5\u5c06\u9ad8\u901a\u91cf\u57fa\u56e0\u8868\u8fbe\u6570\u636e\u8f6c\u5316\u4e3a\u4e00\u4e2a\u5171\u8868\u8fbe\u7f51\u7edc\uff0c\u4ece\u800c\u53d1\u73b0\u5177\u6709\u76f8\u4f3c\u8868\u8fbe\u6a21\u5f0f\u7684\u57fa\u56e0\u6a21\u5757\uff0c\u4ee5\u53ca\u7814\u7a76\u8fd9\u4e9b\u6a21\u5757\u4e0e\u8868\u578b\u4e4b\u95f4\u7684\u76f8\u5173\u6027\uff0c\u6700\u7ec8\u6316\u6398\u4e0e\u8868\u578b\u76f8\u5173\u7684\u5019\u9009\u57fa\u56e0\u3002\u8fd9\u5c31\u662f\u5c0f\u679c\u5bf9WGCNA\u5206\u6790\u539f\u7406\u7684\u7b80\u5355\u4ecb\u7ecd\uff0c\u662f\u4e0d\u662f\u901a\u4fd7\u6613\u61c2\u5965\uff01\u5176\u5b9eWGCNA\u5206\u6790\u5f88\u7b80\u5355\uff0c\u5c0f\u4f19\u4f34\u4e0d\u8981\u56e0\u4e3a\u5206\u6790\u6b65\u9aa4\u591a\u800c\u4e0d\u6562\u5c1d\u8bd5\uff0c\u53ea\u9700\u8981\u8f93\u5165\u57fa\u56e0\u8868\u8fbe\u77e9\u9635\u548c\u5bf9\u5e94\u6837\u672c\u8868\u578b\u6570\u636e\u6587\u4ef6\uff0c\u5c31\u53ef\u4ee5\u5b8c\u6210\u5206\u6790\uff0c\u6709\u9700\u8981\u7684\u5c0f\u4f19\u4f34\u53ef\u4ee5\u8ddf\u7740\u5c0f\u679c\u5f00\u59cb\u4eca\u5929\u7684\u5b9e\u64cd\u3002<\/p>\n<p>2.\u51c6\u5907\u9700\u8981\u7684R\u5305<\/p>\n<p>#\u5b89\u88c5\u9700\u8981\u7684R\u5305<\/p>\n<p>BiocManager::install(&#8220;WGCNA&#8221;)<\/p>\n<p>#\u52a0\u8f7d\u9700\u8981\u7684R\u5305<\/p>\n<p>library(WGCNA)<\/p>\n<p>3.WGCNA\u5206\u6790<\/p>\n<p>#\u8bfb\u53d6\u8868\u8fbe\u77e9\u9635\uff0c\u884c\u540d\u4e3a\u57fa\u56e0\uff0c\u5217\u540d\u4e3a\u6837\u672c\u4fe1\u606f<\/p>\n<p>expr&lt;-read.table(&#8220;combined.expr.txt&#8221;,header=T,sep=&#8221;\\t&#8221;)<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"138\" class=\"wp-image-23868\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613085327.jpeg?resize=640%2C138\" alt=\"Dingtalk_20230613085327\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613085327.jpeg?w=1268 1268w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613085327.jpeg?resize=300%2C65 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613085327.jpeg?resize=1024%2C220 1024w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613085327.jpeg?resize=768%2C165 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613085327.jpeg?resize=600%2C129 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/p>\n<p>#\u884c\u5217\u8f6c\u7f6e<\/p>\n<p>mydata&lt;-expr<\/p>\n<p>expr2&lt;-data.frame(t(mydata))<\/p>\n<p>#\u786e\u5b9aexpr2\u5217\u540d<\/p>\n<p>colnames(expr2)&lt;-rownames(mydata)<\/p>\n<p>#\u786e\u5b9aexpr2\u884c\u540d<\/p>\n<p>rownames(expr2)&lt;-colnames(mydata)<\/p>\n<p>#\u57fa\u56e0\u8fc7\u6ee4<\/p>\n<p>dataExpr1&lt;-expr2<\/p>\n<p>gsg=goodSamplesGenes(dataExpr1,verbose=3);<\/p>\n<p>gsg$allOK<\/p>\n<p>if (!gsg$allOK){<\/p>\n<p># Optionally, print the gene and sample names that were removed:<\/p>\n<p>if (sum(!gsg$goodGenes)&gt;0)<\/p>\n<p>printFlush(paste(&#8220;Removing genes:&#8221;,<\/p>\n<p>paste(names(dataExpr)[!gsg$goodGenes], collapse = &#8220;,&#8221;)));<\/p>\n<p>if (sum(!gsg$goodSamples)&gt;0)<\/p>\n<p>printFlush(paste(&#8220;Removing samples:&#8221;,<\/p>\n<p>paste(rownames(dataExpr)[!gsg$goodSamples], collapse = &#8220;,&#8221;)));<\/p>\n<p># Remove the offending genes and samples from the data:<\/p>\n<p>dataExpr1 = dataExpr1[gsg$goodSamples, gsg$goodGenes]<\/p>\n<p>}<\/p>\n<p>#\u57fa\u56e0\u6570\u76ee<\/p>\n<p>nGenes = ncol(dataExpr1)<\/p>\n<p>#\u6837\u672c\u6570\u76ee<\/p>\n<p>nSamples = nrow(dataExpr1)<\/p>\n<p>#\u5bfc\u5165\u8868\u578b\u6570\u636e\uff0c\u7b2c\u4e00\u5217\u4e3a\u6837\u672c\u4fe1\u606f\uff0c\u5176\u4ed6\u5217\u4e3a\u8868\u578b\u6570\u636e\uff0c\u9700\u8981\u6ce8\u610f\u7684\u662f\u8868\u578b\u6570\u636e\u8981\u4e0e\u6837\u672c\u6570\u636e\u4e00\u4e00\u5bf9\u5e94<\/p>\n<p>traitData=read.table(&#8220;TraitData.txt&#8221;,header=T,sep=&#8221;\\t&#8221;,row.names=1)<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"169\" class=\"wp-image-23869\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613090611.jpeg?resize=640%2C169\" alt=\"Dingtalk_20230613090611\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613090611.jpeg?w=991 991w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613090611.jpeg?resize=300%2C79 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613090611.jpeg?resize=768%2C203 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613090611.jpeg?resize=600%2C159 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/p>\n<p>#\u63d0\u53d6\u8868\u8fbe\u77e9\u9635\u6837\u672c\u540d<\/p>\n<p>fpkmSamples&lt;-rownames(dataExpr1)<\/p>\n<p>#\u63d0\u53d6\u8868\u578b\u6587\u4ef6\u6837\u672c\u540d<\/p>\n<p>traitSamples&lt;-rownames(traitData)<\/p>\n<p>#\u8868\u8fbe\u77e9\u9635\u6837\u672c\u540d\u987a\u5e8f\u5339\u914d\u8868\u578b\u6587\u4ef6\u6837\u672c\u540d<\/p>\n<p>traitRows&lt;-match(fpkmSamples,traitSamples)<\/p>\n<p>#\u83b7\u5f97\u5339\u914d\u597d\u6837\u672c\u987a\u5e8f\u7684\u8868\u578b\u6587\u4ef6<\/p>\n<p>dataTraits&lt;-traitData[traitRows,]<\/p>\n<p>#\u7ed8\u5236\u6811+\u8868\u578b\u70ed\u56fe<\/p>\n<p>sampleTree2&lt;-hclust(dist(dataExpr1),method=&#8221;average&#8221;)<\/p>\n<p>traitColors&lt;-numbers2colors(dataTraits,signed=FALSE)<\/p>\n<p>png(&#8220;sample-subtype-cluster.png&#8221;,width = 800,height = 600)<\/p>\n<p>plotDendroAndColors(sampleTree2,traitColors,groupLabels=names(dataTraits),main=&#8221;Sample dendrogram and trait heatmap&#8221;,<\/p>\n<p>cex.colorLabels=1.5,cex.dendroLabels=1,cex.rowText=2)<\/p>\n<p>dev.off()<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"480\" class=\"wp-image-23870\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/sample-subtype-cluster.png?resize=640%2C480\" alt=\"sample-subtype-cluster\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/sample-subtype-cluster.png?w=800 800w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/sample-subtype-cluster.png?resize=300%2C225 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/sample-subtype-cluster.png?resize=768%2C576 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/sample-subtype-cluster.png?resize=600%2C450 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/p>\n<p>#\u8ba1\u7b97\u5408\u9002\u7684power\u503c\uff0c\u5e76\u7ed8\u5236Power\u503c\u66f2\u7ebf\u56fe<\/p>\n<p>powers = c(c(1:10), seq(from = 12, to=20, by=2))<\/p>\n<p>sft = pickSoftThreshold(dataExpr1, powerVector = powers, verbose = 5)<\/p>\n<p>#\u8bbe\u7f6e\u7f51\u7edc\u6784\u5efa\u53c2\u6570\u9009\u62e9\u8303\u56f4\uff0c\u8ba1\u7b97\u65e0\u5c3a\u5ea6\u5206\u5e03\u62d3\u6251\u77e9\u9635<\/p>\n<p>png(&#8220;step2-beta-value.png&#8221;,width = 800,height = 600)<\/p>\n<p>par(mfrow = c(1,2));<\/p>\n<p>cex1 = 0.9;<\/p>\n<p># Scale-free topology fit index as a function of the soft-thresholding power<\/p>\n<p>plot(sft$fitIndices[,1], -sign(sft$fitIndices[,3])*sft$fitIndices[,2],<\/p>\n<p>xlab=&#8221;Soft Threshold (power)&#8221;,ylab=&#8221;Scale Free Topology Model Fit,signed R^2&#8243;,type=&#8221;n&#8221;,<\/p>\n<p>main = paste(&#8220;Scale independence&#8221;));<\/p>\n<p>text(sft$fitIndices[,1], -sign(sft$fitIndices[,3])*sft$fitIndices[,2],<\/p>\n<p>labels=powers,cex=cex1,col=&#8221;red&#8221;);<\/p>\n<p># this line corresponds to using an R^2 cut-off of h<\/p>\n<p>abline(h=0.90,col=&#8221;red&#8221;)<\/p>\n<p># Mean connectivity as a function of the soft-thresholding power<\/p>\n<p>plot(sft$fitIndices[,1], sft$fitIndices[,5],<\/p>\n<p>xlab=&#8221;Soft Threshold (power)&#8221;,ylab=&#8221;Mean Connectivity&#8221;, type=&#8221;n&#8221;,<\/p>\n<p>main = paste(&#8220;Mean connectivity&#8221;))<\/p>\n<p>text(sft$fitIndices[,1], sft$fitIndices[,5], labels=powers, cex=cex1,col=&#8221;red&#8221;)<\/p>\n<p>dev.off()<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"480\" class=\"wp-image-23871\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step2-beta-value.png?resize=640%2C480\" alt=\"step2-beta-value\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step2-beta-value.png?w=800 800w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step2-beta-value.png?resize=300%2C225 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step2-beta-value.png?resize=768%2C576 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step2-beta-value.png?resize=600%2C450 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/p>\n<p>#\u4e00\u6b65\u6cd5\u6784\u5efa\u5171\u8868\u8fbe\u7f51\u7edc<\/p>\n<p>##\u9700\u8981\u8c03\u7528WGCNA\u5305\u81ea\u5e26\u7684cor\u51fd\u6570\uff0c\u4e0d\u7136\u4f1a\u53d1\u751f\u62a5\u9519\u5965\uff01<\/p>\n<p>cor&lt;-WGCNA::cor<\/p>\n<p>##\u5728\u8fdb\u884c\u5171\u8868\u8fbe\u7f51\u7edc\u6784\u5efa\u65f6\uff0cpower\u503c\u7684\u9009\u62e9\u975e\u5e38\u91cd\u8981\uff0c\u6700\u5f71\u54cd\u7ed3\u679c\u7684\u4e00\u4e2a\u53c2\u6570\uff0c\u9700\u8981\u7ecf\u8fc7\u591a\u6b21\u5c1d\u8bd5\uff0c\u624d\u80fd\u627e\u5230\u6700\u9002\u5408\u7684\u3002<\/p>\n<p>net = blockwiseModules(dataExpr1, power = 7, maxBlockSize = nGenes,<\/p>\n<p>TOMType =&#8217;unsigned&#8217;, minModuleSize = 30,<\/p>\n<p>reassignThreshold = 0, mergeCutHeight = 0.25,<\/p>\n<p>numericLabels = TRUE, pamRespectsDendro = FALSE,<\/p>\n<p>saveTOMs=TRUE, saveTOMFileBase = &#8220;drought&#8221;,<\/p>\n<p>verbose = 3)<\/p>\n<p>table(net$colors)<\/p>\n<p>cor&lt;-stats::cor<\/p>\n<p>#\u7ed8\u5236\u57fa\u56e0\u805a\u7c7b\u6811\u548c\u6a21\u5757\u989c\u8272\u7ec4\u5408<\/p>\n<p># Convert labels to colors for plotting<\/p>\n<p>moduleLabels = net$colors<\/p>\n<p>moduleColors = labels2colors(moduleLabels)<\/p>\n<p># Plot the dendrogram and the module colors underneath<\/p>\n<p>png(&#8220;step4-genes-modules.png&#8221;,width = 800,height = 600)<\/p>\n<p>plotDendroAndColors(net$dendrograms[[1]], moduleColors[net$blockGenes[[1]]],<\/p>\n<p>&#8220;Module colors&#8221;,<\/p>\n<p>dendroLabels = FALSE, hang = 0.03,<\/p>\n<p>addGuide = TRUE, guideHang = 0.05)<\/p>\n<p>dev.off()<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"480\" class=\"wp-image-23872\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step4-genes-modules.png?resize=640%2C480\" alt=\"step4-genes-modules\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step4-genes-modules.png?w=800 800w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step4-genes-modules.png?resize=300%2C225 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step4-genes-modules.png?resize=768%2C576 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step4-genes-modules.png?resize=600%2C450 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/p>\n<p>#\u8ba1\u7b97\u6a21\u5757\u4e0e\u6027\u72b6\u95f4\u7684\u76f8\u5173\u6027\u53ca\u7ed8\u5236\u76f8\u5173\u6027\u70ed\u56fe<\/p>\n<p>nGenes = ncol(dataExpr1)<\/p>\n<p>nSamples = nrow(dataExpr1)<\/p>\n<p>design=read.table(&#8220;TraitData.txt&#8221;, sep = &#8216;\\t&#8217;, header = T, row.names = 1)<\/p>\n<p># Recalculate MEs with color labels<\/p>\n<p>MEs0 = moduleEigengenes(dataExpr1, moduleColors)$eigengenes<\/p>\n<p>##\u4e0d\u540c\u989c\u8272\u7684\u6a21\u5757\u7684ME\u503c\u77e9 (\u6837\u672cvs\u6a21\u5757)<\/p>\n<p>MEs = orderMEs(MEs0);<\/p>\n<p>moduleTraitCor = cor(MEs, design , use = &#8220;p&#8221;);<\/p>\n<p>moduleTraitPvalue = corPvalueStudent(moduleTraitCor, nSamples)<\/p>\n<p># Will display correlations and their p-values<\/p>\n<p>textMatrix = paste(signif(moduleTraitCor, 2), &#8220;\\n(&#8220;,<\/p>\n<p>signif(moduleTraitPvalue, 1), &#8220;)&#8221;, sep = &#8220;&#8221;);<\/p>\n<p>dim(textMatrix) = dim(moduleTraitCor)<\/p>\n<p>png(&#8220;step5-Module-trait-relationships.png&#8221;,width = 800,height = 1200,res = 120)<\/p>\n<p>par(mar = c(6, 8.5, 3, 3));<\/p>\n<p># Display the correlation values within a heatmap plot<\/p>\n<p>labeledHeatmap(Matrix = moduleTraitCor,<\/p>\n<p>xLabels = colnames(design),<\/p>\n<p>yLabels = names(MEs),<\/p>\n<p>ySymbols = names(MEs),<\/p>\n<p>colorLabels = FALSE,<\/p>\n<p>colors = greenWhiteRed(50),<\/p>\n<p>textMatrix = textMatrix,<\/p>\n<p>setStdMargins = FALSE,<\/p>\n<p>cex.text = 0.5,<\/p>\n<p>zlim = c(-1,1),<\/p>\n<p>main = paste(&#8220;Module-trait relationships&#8221;))<\/p>\n<p>dev.off()<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"960\" class=\"wp-image-23873\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step5-module-trait-relationships.png?resize=640%2C960\" alt=\"step5-Module-trait-relationships\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step5-module-trait-relationships.png?w=800 800w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step5-module-trait-relationships.png?resize=200%2C300 200w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step5-module-trait-relationships.png?resize=683%2C1024 683w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step5-module-trait-relationships.png?resize=768%2C1152 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step5-module-trait-relationships.png?resize=600%2C900 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/p>\n<p>#\u8ba1\u7b97MM\u503c\u548cGS\u503c\u5e76\u7ed8\u56fe<\/p>\n<p>##\u5207\u5272\uff0c\u4ece\u7b2c\u4e09\u4e2a\u5b57\u7b26\u5f00\u59cb\u4fdd\u5b58<\/p>\n<p>modNames = substring(names(MEs), 3)<\/p>\n<p>geneModuleMembership = as.data.frame(cor(dataExpr1, MEs, use = &#8220;p&#8221;));<\/p>\n<p>## \u7b97\u51fa\u6bcf\u4e2a\u6a21\u5757\u8ddf\u57fa\u56e0\u7684\u76ae\u5c14\u68ee\u76f8\u5173\u7cfb\u6570\u77e9<\/p>\n<p>## MEs\u662f\u6bcf\u4e2a\u6a21\u5757\u5728\u6bcf\u4e2a\u6837\u672c\u91cc\u9762\u76bf<\/p>\n<p>## dataExpr1\u662f\u6bcf\u4e2a\u57fa\u56e0\u5728\u6bcf\u4e2a\u6837\u672c\u7684\u8868\u8fbe\u91cf<\/p>\n<p>MMPvalue = as.data.frame(<\/p>\n<p>corPvalueStudent(as.matrix(geneModuleMembership), nSamples) ##\u8ba1\u7b97MM\u503c\u5bf9\u5e94\u7684P\u503c<\/p>\n<p>);<\/p>\n<p>names(geneModuleMembership) = paste(&#8220;MM&#8221;, modNames, sep=&#8221;&#8221;); ##\u7ed9MM\u5bf9\u8c61\u7edf\u4e00\u8d4b\u540d<\/p>\n<p>names(MMPvalue) = paste(&#8220;p.MM&#8221;, modNames, sep=&#8221;&#8221;); ##\u7ed9MMPvalue\u5bf9\u8c61\u7edf\u4e00\u8d4b\u540d<\/p>\n<p>##\u8ba1\u7b97\u57fa\u56e0\u4e0e\u6bcf\u4e2a\u6027\u72b6\u7684\u663e\u8457\u6027\uff08\u76f8\u5173\u6027\uff09\u53capvalue\u503c<\/p>\n<p>geneTraitSignificance = as.data.frame(cor(dataExpr1, design, use = &#8220;p&#8221;));<\/p>\n<p>GSPvalue = as.data.frame(<\/p>\n<p>corPvalueStudent(as.matrix(geneTraitSignificance), nSamples) ##\u8ba1\u7b97GS\u503c\u5bf9\u5e94\u7684pvalue\u503c<\/p>\n<p>);<\/p>\n<p>names(geneTraitSignificance) = paste(&#8220;GS.&#8221;, colnames(design), sep=&#8221;&#8221;);<\/p>\n<p>names(GSPvalue) = paste(&#8220;p.GS.&#8221;, colnames(design), sep=&#8221;&#8221;);<\/p>\n<p>module = &#8220;brown&#8221;<\/p>\n<p>column = match(module, modNames); ##\u5728\u6240\u6709\u6a21\u5757\u4e2d\u5339\u914d\u9009\u62e9\u7684\u6a21\u5757\uff0c\u8fd4\u56de\u6240\u5728\u7684\u4f4d\u7f6e<\/p>\n<p>moduleGenes = moduleColors==module; ##==\u5339\u914d\uff0c\u5339\u914d\u4e0a\u7684\u8fd4\u56deTrue\uff0c\u5426\u5219\u8fd4\u56defalse<\/p>\n<p>png(&#8220;step6-Module_membership-gene_significance.png&#8221;,width = 800,height = 600)<\/p>\n<p>par(mfrow = c(1,1)); ##\u8bbe\u5b9a\u8f93\u51fa\u56fe\u7247\u884c\u5217\u6570\u91cf\uff0c\uff081\uff3f1\uff09\u4ee3\u8868\u884c\u4e00\u4e2a\uff0c\u5217\u4e00\u4e3f<\/p>\n<p>verboseScatterplot(abs(geneModuleMembership[moduleGenes, column]), ## \u7ed8\u5236MM\u548cGS\u6563\u70b9\u56ff<\/p>\n<p>abs(geneTraitSignificance[moduleGenes, 1]),<\/p>\n<p>xlab = paste(&#8220;Module Membership in&#8221;, module, &#8220;module&#8221;),<\/p>\n<p>ylab = &#8220;Gene significance for Basal&#8221;,<\/p>\n<p>main = paste(&#8220;Module membership vs. gene significance\\n&#8221;),<\/p>\n<p>cex.main = 1.2, cex.lab = 1.2, cex.axis = 1.2, col = module)<\/p>\n<p>dev.off()<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"480\" class=\"wp-image-23874\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step6-module_membership-gene_significance.png?resize=640%2C480\" alt=\"step6-Module_membership-gene_significance\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step6-module_membership-gene_significance.png?w=800 800w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step6-module_membership-gene_significance.png?resize=300%2C225 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step6-module_membership-gene_significance.png?resize=768%2C576 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step6-module_membership-gene_significance.png?resize=600%2C450 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/p>\n<p>#\u7ed8\u5236TOM\u70ed\u56fe+\u6a21\u5757\u6027\u72b6\u7ec4\u5408\u56fe<\/p>\n<p>geneTree = net$dendrograms[[1]]; ##\u63d0\u53d6\u57fa\u56e0\u805a\u7c7b<\/p>\n<p>dissTOM = 1-TOMsimilarityFromExpr(dataExpr1, power = 7); ##\u8ba1\u7b97TOM\u8ddd\u79bb<\/p>\n<p>plotTOM = dissTOM^7; ##\u901a\u8fc77\u6b21\u65b9\u5904\u7406\u8fdb\u884c\u6807\u51c6\u5316\uff0c\u964d\u4f4e\u57fa\u56e0\u95f4\u7684\u8bef\u5dee<\/p>\n<p>diag(plotTOM) = NA; ##\u66ff\u6362\u659c\u5bf9\u89d2\u77e9\u9635\u4e2d\u7684\u5185\u5bb9\u4e3aNA<\/p>\n<p>TOMplot(plotTOM, geneTree, moduleColors, main = &#8220;Network heatmap plot, all genes&#8221;)<\/p>\n<p>nSelect = 400 ##\u6311\u9009\u9700\u8981\u63d0\u53d6\u7684\u57fa\u56e0<\/p>\n<p>set.seed(10); ##\u8bbe\u7f6e\u968f\u673a\u79cd\u5b50\u6570\uff0c\u4fdd\u8bc1\u9009\u53d6\u7684\u968f\u673a\u6027<\/p>\n<p>select = sample(nGenes, size = nSelect); ##\u4eff5000\u4e2a\u57fa\u56e0\u4e2d\u968f\u673a\u53ff400\u4e3f<\/p>\n<p>selectTOM = dissTOM[select, select]; ##\u63d0\u53d6\u6311\u51fa\u6765\u7684\u57fa\u56e0\u7684TOM\u8ddd\u79bb<\/p>\n<p># There\u2019s no simple way of restricting a clustering tree to a subset of genes, so we must re-cluster.<\/p>\n<p>selectTree = hclust(as.dist(selectTOM), method = &#8220;average&#8221;) ##\u5bf9\u6311\u51fa\u6765\u5bf9\u57fa\u56e0TOM\u8ddd\u79bb\u91cd\u65b0\u805a\u7c7b<\/p>\n<p>selectColors = moduleColors[select];<\/p>\n<p># Open a graphical window<\/p>\n<p>sizeGrWindow(9,9)<\/p>\n<p># Taking the dissimilarity to a power, say 10, makes the plot more informative by effectively changing<\/p>\n<p># the color palette; setting the diagonal to NA also improves the clarity of the plot<\/p>\n<p>plotDiss = selectTOM^7; ##\u5bf9\u6311\u9009\u51fa\u5bf9\u57fa\u56e0TOM\u8ddd\u79bb7\u6b21\u65b9\u5904\u7406<\/p>\n<p>diag(plotDiss) = NA; ##\u66ff\u6362\u659c\u5bf9\u89d2\u77e9\u9635\u4e2d\u7684\u5185\u5bb9\u4e3aNA<\/p>\n<p>png(&#8220;step7-Network-heatmap.png&#8221;,width = 800,height = 600)<\/p>\n<p>TOMplot(plotDiss, selectTree, selectColors, ##\u7ed8\u5236TOM\u56fe<\/p>\n<p>main = &#8220;Network heatmap plot, selected genes&#8221;)<\/p>\n<p>dev.off()<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"480\" class=\"wp-image-23875\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step7-network-heatmap.png?resize=640%2C480\" alt=\"step7-Network-heatmap\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step7-network-heatmap.png?w=800 800w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step7-network-heatmap.png?resize=300%2C225 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step7-network-heatmap.png?resize=768%2C576 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step7-network-heatmap.png?resize=600%2C450 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/p>\n<p># \u6a21\u5757\u6027\u72b6\u7ec4\u5408\u56fe<\/p>\n<p>RA = as.data.frame(design[,2]); ##\u63d0\u53d6\u7279\u5b9a\u6027\u72b6<\/p>\n<p>names(RA) = &#8220;RA&#8221;<\/p>\n<p># Add the weight to existing module eigengenes<\/p>\n<p>MET = orderMEs(cbind(MEs, RA))<\/p>\n<p># Plot the relationships among the eigengenes and the trait<\/p>\n<p>sizeGrWindow(5,7.5);<\/p>\n<p>par(cex = 0.9)<\/p>\n<p>png(&#8220;step7-Eigengene-dendrogram.png&#8221;,width = 800,height = 600)<\/p>\n<p>plotEigengeneNetworks(MET, &#8220;&#8221;, ##\u7ed8\u5236\u6a21\u5757\u805a\u7c7b\u56fe\u548c\u70ed\u56fe<\/p>\n<p>marDendro =c(0,5,1,5), ##\u6811\u7c7b\u56fe\u533a\u95f4\u5927\u5c0f\u8c01\u5bbf<\/p>\n<p>marHeatmap = c(5,6,1,2), cex.lab = 0.8, ##\u6811\u7c7b\u56fe\u533a\u95f4\u5927\u5c0f\u8c01\u5bbf<\/p>\n<p>xLabelsAngle = 90) ##\u8f74\u9c9c\u827f90\u5ebf<\/p>\n<p>dev.off()<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"480\" class=\"wp-image-23876\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step7-eigengene-dendrogram.png?resize=640%2C480\" alt=\"step7-Eigengene-dendrogram\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step7-eigengene-dendrogram.png?w=800 800w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step7-eigengene-dendrogram.png?resize=300%2C225 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step7-eigengene-dendrogram.png?resize=768%2C576 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/step7-eigengene-dendrogram.png?resize=600%2C450 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/p>\n<p>#\u5bfc\u51fa\u5355\u4e2a\u6a21\u5757\u7684\u7f51\u7edc\u7ed3\u679c<\/p>\n<p>TOM = TOMsimilarityFromExpr(dataExpr1, power = 7); ##\u9700\u8981\u8f83\u957f\u65f6\u95f4<\/p>\n<p># \u9009\u62e9brown\u6a21\u5757<\/p>\n<p>module = &#8220;brown&#8221;;<\/p>\n<p># Select module probes<\/p>\n<p>probes = colnames(dataExpr1)<\/p>\n<p>inModule = (moduleColors==module);<\/p>\n<p>## \u63d0\u53d6\u6307\u5b9a\u6a21\u5757\u7684\u57fa\u56e0\u540d<\/p>\n<p>modProbes = probes[inModule];<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"235\" class=\"wp-image-23877\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613103051.jpeg?resize=640%2C235\" alt=\"Dingtalk_20230613103051\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613103051.jpeg?w=1083 1083w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613103051.jpeg?resize=300%2C110 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613103051.jpeg?resize=1024%2C376 1024w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613103051.jpeg?resize=768%2C282 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613103051.jpeg?resize=600%2C220 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/p>\n<p>modTOM = TOM[inModule, inModule];<\/p>\n<p>dimnames(modTOM) = list(modProbes, modProbes)<\/p>\n<p>## \u6a21\u5757\u5bf9\u5e94\u7684\u57fa\u56e0\u5173\u7cfb\u77e9<\/p>\n<p>cyt = exportNetworkToCytoscape( ##\u5bfc\u51fa\u5355\u4e2a\u6a21\u5757\u7684Cytoscape\u8f93\u5165\u6587\u4ef6<\/p>\n<p>modTOM,<\/p>\n<p>edgeFile = paste(&#8220;CytoscapeInput-edges-&#8220;, paste(module, collapse=&#8221;-&#8220;), &#8220;.txt&#8221;, sep=&#8221;&#8221;), ##\u8f93\u51fa\u8fb9\u6587\u4ef6\u540d<\/p>\n<p>nodeFile = paste(&#8220;CytoscapeInput-nodes-&#8220;, paste(module, collapse=&#8221;-&#8220;), &#8220;.txt&#8221;, sep=&#8221;&#8221;), ##\u8f93\u51fa\u70b9\u6587\u4ef6\u540d<\/p>\n<p>weighted = TRUE,<\/p>\n<p>threshold = 0.02,<\/p>\n<p>nodeNames = modProbes,<\/p>\n<p>nodeAttr = moduleColors[inModule]<\/p>\n<p>)<\/p>\n<p>CytoscapeInput-edges-brown.txt\uff0c\u8fb9\u6587\u4ef6<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"203\" class=\"wp-image-23878\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102320.jpeg?resize=640%2C203\" alt=\"Dingtalk_20230613102320\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102320.jpeg?w=1117 1117w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102320.jpeg?resize=300%2C95 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102320.jpeg?resize=1024%2C325 1024w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102320.jpeg?resize=768%2C243 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102320.jpeg?resize=600%2C190 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/p>\n<p>CytoscapeInput-nodes-brown.txt,\u70b9\u6587\u4ef6<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"218\" class=\"wp-image-23879\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102430.jpeg?resize=640%2C218\" alt=\"Dingtalk_20230613102430\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102430.jpeg?w=1095 1095w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102430.jpeg?resize=300%2C102 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102430.jpeg?resize=1024%2C349 1024w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102430.jpeg?resize=768%2C262 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/01\/dingtalk_20230613102430.jpeg?resize=600%2C204 600w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/p>\n<p>\u6700\u7ec8\u5c0f\u679c\u6210\u529f\u5b8c\u6210\u4e86WGCNA\u5206\u6790\uff0c\u57fa\u672c\u8fbe\u5230\u4e86\u590d\u73b0\uff0c\u4eca\u5929\u5c0f\u679c\u7684\u5206\u4eab\u5c31\u5230\u8fd9\u91cc\u5566\uff01\u5982\u679c\u5c0f\u4f19\u4f34\u6709\u5176\u4ed6\u6570\u636e\u5206\u6790\u9700\u6c42\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u672c\u516c\u53f8\u65b0\u5f00\u53d1\u7684\u751f\u4fe1\u5206\u6790\u5c0f\u5de5\u5177\u4e91\u5e73\u53f0\uff0c\u96f6\u4ee3\u7801\u5b8c\u6210\u5206\u6790\uff0c\u975e\u5e38\u65b9\u4fbf\u5965\uff0c\u4e91\u5e73\u53f0\u7f51\u5740\u4e3a\uff1ahttp:\/\/www.biocloudservice.com\/home.html,\u5305\u62ec\u4e86WGCNA\u5206\u6790(http:\/\/www.biocloudservice.com\/336\/336.php),GEO\u6570\u636e\u4e0b\u8f7d(http:\/\/www.biocloudservice.com\/371\/371.php)\u7b49\u5c0f\u5de5\u5177\uff0c\u6b22\u8fce\u5927\u5bb6\u548c\u5c0f\u679c\u4e00\u8d77\u8ba8\u8bba\u5b66\u4e60\u54c8\uff01\uff01\uff01\uff01<\/p>","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u5c0f\u679c\u7ed9\u5c0f\u4f19\u4f34\u5e26\u6765\u7684\u5206\u4eab\u662f\u5565\u5462\uff1f\u4eca\u5929\u5c0f\u679c\u5c06\u590d\u73b0\u4e00\u7bc78+\u751f\u4fe1\u6587\u7ae0\u4e2d\u7684WGCNA\u5206\u6790\uff0c\u901a\u8fc7\u8be5\u63a8\u6587\u5c06\u638c\u63e1\u5982\u4f55\u5229\u7528\u81ea [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":""},"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/23867"}],"collection":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23867"}],"version-history":[{"count":1,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/23867\/revisions"}],"predecessor-version":[{"id":23882,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/23867\/revisions\/23882"}],"wp:attachment":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23867"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}