{"id":60861,"date":"2024-09-12T15:26:52","date_gmt":"2024-09-12T07:26:52","guid":{"rendered":"http:\/\/www.biocloudservice.com\/wordpress\/?p=60861"},"modified":"2024-09-12T15:26:52","modified_gmt":"2024-09-12T07:26:52","slug":"%e6%8b%92%e7%bb%9d%e5%ae%a1%e7%be%8e%e7%96%b2%e5%8a%b3%ef%bc%8c%e5%a4%a7%e6%b5%b7%e5%93%a5%e6%89%8b%e6%8a%8a%e6%89%8b%e6%95%99%e5%ad%a6nature%e7%ba%a7%e5%88%ab%e7%8e%af%e5%bd%a2%e6%95%a3%e7%82%b9","status":"publish","type":"post","link":"http:\/\/www.biocloudservice.com\/wordpress\/?p=60861","title":{"rendered":"\u62d2\u7edd\u5ba1\u7f8e\u75b2\u52b3\uff0c\u5927\u6d77\u54e5\u624b\u628a\u624b\u6559\u5b66Nature\u7ea7\u522b\u73af\u5f62\u6563\u70b9\u56fe\uff01"},"content":{"rendered":"\n<p><strong>\u524d\u8a00<\/strong><strong><\/strong><\/p>\n\n\n\n<p>\u5927\u6d77\u54e5\u5df2\u7ecf\u7ed9\u5927\u5bb6\u5206\u4eab\u4e86\u5341\u51e0\u671f\u7684R\u5305\u6559\u7a0b\u4e86\uff0c\u4eca\u5929\u7ed9\u5927\u5bb6\u6362\u6362\u53e3\u5473\u3002\u6563\u70b9\u53ef\u8c13\u662f\u751f\u4fe1\u5206\u6790\u4e2d\u53ef\u89c6\u5316\u7684\u5e38\u5ba2\uff0c\u5f88\u591a\u6570\u636e\u7684\u53ef\u89c6\u5316\u4f1a\u7528\u5230\u6563\u70b9\u56fe\uff0c\u4f60\u7684\u6563\u70b9\u56fe\u662f\u5927\u4f17\u8138\u5417\uff1f\u662f\u4e0d\u662f\u7f16\u8f91\u5df2\u7ecf\u770b\u5410\u4e86\uff1f\u5343\u7bc7\u4e00\u5f8b\uff0c\u6ca1\u6709\u7279\u70b9\uff0c\u5f88\u5bb9\u6613\u5c31\u88ab\u62d2\u7a3f\u5566\uff01\u4eca\u5929\u8ddf\u7740\u5927\u6d77\u54e5\u7684\u6b65\u4f10\u91cd\u65b0\u6765\u5b66\u4e60Circlize\u5305\uff0c\u8ba9\u4f60\u7684\u6587\u7ae0\u63d0\u5347\u4e00\u4e2a\u903c\u683c\uff01circlize \u5305\u65e8\u5728\u5728 R \u4e2d\u5b9e\u73b0 Circos\u3002\u5b83\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u901a\u8fc7\u4f4e\u7ea7\u56fe\u5f62\u7684\u4e0d\u540c\u7ec4\u5408\u6765\u751f\u6210\u66f4\u590d\u6742\u7684\u3001\u4fe1\u606f\u66f4\u4e30\u5bcc\u7684\u56fe\u5f62\u3002<\/p>\n\n\n\n<p><strong>\u8bbe\u8ba1\u539f\u7406 &nbsp;<\/strong><strong><\/strong><\/p>\n\n\n\n<p>circlize \u5706\u5f62\u5e03\u5c40\u7531 sectors\uff08\u6247\u5f62\uff09\u548c tracks\uff08\u8f68\u8ff9\uff09\u7ec4\u6210\u3002\u5bf9\u4e8e\u6570\u636e\u4e2d\u7684\u4e0d\u540c\u5206\u7c7b\uff0c\u4f1a\u4f5c\u4e3a\u4e0d\u540c\u7684 sectors\uff0c\u5728\u5706\u5f62\u5e03\u5c40\u4e0a\u770b\u8d77\u6765\u5c31\u662f\u5c06\u5706\u5207\u5272\u4e3a\u4e00\u4e2a\u4e2a\u6247\u5f62\uff1b\u800c\u540c\u4e00\u4e2a\u7c7b\u522b\u7684\u4e0d\u540c\u7ef4\u5ea6\u7684\u89c2\u6d4b\u503c\uff0c\u4f1a\u4f5c\u4e3a\u4ece\u5706\u5916\u5411\u5706\u5185\u4e0d\u65ad\u5806\u53e0\u7684\u56fe\u5f62\u8f68\u8ff9 tracks\uff0c\u5373\u5c55\u793a\u7684\u5404\u79cd\u6570\u636e\u56fe\u5f62\u3002<\/p>\n\n\n\n<p>\u76ee\u524d\uff0c\u6709\u4ee5\u4e0b\u56fe\u5f62\u51fd\u6570\u53ef\u7528\u4e8e\u6dfb\u52a0\u56fe\u5f62\u3002\u5176\u7528\u6cd5\u4e0e\u57fa\u672c\u56fe\u5f62\u5f15\u64ce\u4e2d\u6ca1\u6709\u524d\u7f00\u7684\u51fd\u6570circos\u975e\u5e38\u76f8\u4f3c\uff0c\u53ea\u662f\u6709\u4e00\u4e9b\u589e\u5f3a\u529f\u80fd\u4e13\u4e3a\u53ef\u89c6\u5316\u800c\u8bbe\u8ba1\u3002<\/p>\n\n\n\n<p>circos.points()\uff1a\u5728\u5355\u5143\u683c\u4e2d\u6dfb\u52a0\u70b9\u3002<\/p>\n\n\n\n<p>circos.lines()\uff1a\u5728\u5355\u5143\u683c\u4e2d\u6dfb\u52a0\u884c\u3002<\/p>\n\n\n\n<p>circos.segments()\uff1a\u5728\u5355\u5143\u683c\u4e2d\u6dfb\u52a0\u6bb5\u3002<\/p>\n\n\n\n<p>circos.rect()\uff1a\u5728\u5355\u5143\u683c\u4e2d\u6dfb\u52a0\u77e9\u5f62\u3002<\/p>\n\n\n\n<p>circos.polygon()\uff1a\u5728\u5355\u5143\u683c\u4e2d\u6dfb\u52a0\u591a\u8fb9\u5f62\u3002<\/p>\n\n\n\n<p>circos.text()\uff1a\u5728\u5355\u5143\u683c\u4e2d\u6dfb\u52a0\u6587\u672c\u3002<\/p>\n\n\n\n<p>circos.axis() circos.yaxis()\uff1a\u5728\u5355\u5143\u683c\u4e2d\u6dfb\u52a0\u8f74\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u51fd\u6570\u5728\u5706\u4e2d\u7684\u4e24\u4e2a\u4f4d\u7f6e\u4e4b\u95f4\u7ed8\u5236\u94fe\u63a5\uff1a<\/p>\n\n\n\n<p>circos.link()<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u51fd\u6570\u7ed8\u5236\u9ad8\u7ea7\u56fe\u5f62\uff1a<\/p>\n\n\n\n<p>circos.barplot()\uff1a\u7ed8\u5236\u6761\u5f62\u56fe\u3002<\/p>\n\n\n\n<p>circos.boxplot()\uff1a\u7ed8\u5236\u7bb1\u7ebf\u56fe\u3002<\/p>\n\n\n\n<p>circos.violin()\uff1a\u7ed8\u5236\u5c0f\u63d0\u7434\u56fe\u3002<\/p>\n\n\n\n<p>circos.heatmap()\uff1a\u7ed8\u5236\u5706\u5f62\u70ed\u56fe\u3002<\/p>\n\n\n\n<p>circos.raster()\uff1a\u7ed8\u5236\u5149\u6805\u56fe\u50cf\u3002<\/p>\n\n\n\n<p>circos.arrow()\uff1a\u7ed8\u5236\u5706\u5f62\u7bad\u5934\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u529f\u80fd\u5b89\u6392\u5706\u5f62\u5e03\u5c40\u3002<\/p>\n\n\n\n<p>circos.initialize()\uff1a\u5728\u5706\u5708\u4e0a\u5206\u914d\u6247\u533a\u3002<\/p>\n\n\n\n<p>circos.track()\uff1a\u4e3a\u5355\u4e2a\u8f68\u9053\u4e2d\u7684\u5355\u5143\u683c\u521b\u5efa\u7ed8\u56fe\u533a\u57df\u3002<\/p>\n\n\n\n<p>circos.update()\uff1a\u66f4\u65b0\u5df2\u5b58\u5728\u7684\u5355\u5143\u683c\u3002<\/p>\n\n\n\n<p>circos.par()\uff1a\u56fe\u5f62\u53c2\u6570\u3002<\/p>\n\n\n\n<p>circos.info()\uff1a\u6253\u5370\u5f53\u524d\u5706\u5f62\u56fe\u7684\u4e00\u822c\u53c2\u6570\u3002<\/p>\n\n\n\n<p>circos.clear()\uff1a\u91cd\u7f6e\u56fe\u5f62\u53c2\u6570\u548c\u5185\u90e8\u53d8\u91cf\u3002<\/p>\n\n\n\n<p>\u56e0\u6b64\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u7ed8\u5236\u5927\u591a\u6570\u7c7b\u578b\u7684\u56fe\u3002<\/p>\n\n\n\n<p>\u53ef\u89c6\u5316\u4e0d\u719f\u6089\u7684\u5c0f\u4f19\u4f34\u4eec\u6b22\u8fce\u6765\u6ef4\u6ef4\u5927\u6d77\u54e5\uff0c\u5927\u6d77\u54e5\u5c31\u662f\u8fd9\u4e48\u7684\u5ba0\u7c89\uff0c\u6709\u4ec0\u4e48\u53ef\u89c6\u5316\u4e0a\u7684\u95ee\u9898\u5927\u5bb6\u5c3d\u7ba1\u54a8\u8be2\u5927\u6d77\u54e5\uff01\u6ca1\u6709\u65f6\u95f4\u5b66\u4e60\u7684\u5c0f\u4f19\u4f34\u4eec\u4e5f\u4e0d\u8981\u7740\u6025\u54e6\uff01\u6709\u9700\u8981\u53ef\u89c6\u5316\u7684\u5c0f\u4f19\u4f34\u4eec\u4e5f\u53ef\u4ee5\u627e\u5927\u6d77\u54e5\u54e6\uff01\u7ec3\u4e86\u5341\u5e74\u751f\u4fe1\u5206\u6790\u7684\u5927\u6d77\u54e5\u5bf9\u4e8e\u53ef\u89c6\u5316\u77e5\u8bc6\u5df2\u7ecf\u5982\u9c7c\u5f97\u6c34\u4ece\u5206\u6790\u5230\u53ef\u89c6\u5316\u76f4\u5230\u4f60\u6ee1\u610f\u4e3a\u6b62\uff01<\/p>\n\n\n\n<p>\u751f\u4fe1\u6570\u636e\u5904\u7406\u8d77\u6765\u5360\u7528\u5185\u5b58\u5b9e\u5728\u592a\u5927\u4e86\uff0c\u653e\u8fc7\u81ea\u5df1\u7684\u7535\u8111\u5427\uff01\u5927\u6d77\u54e5\u5728\u8fd9\u91cc\u7ed9\u5927\u5bb6\u9001\u4e0a\u798f\u5229\u4e86\uff0c\u6709\u9700\u8981\u670d\u52a1\u5668\u7684\u5c0f\u4f19\u4f34\u4eec\uff0c\u6b22\u8fce\u5927\u5bb6\u8054\u7cfb\u5927\u6d77\u54e5\uff0c\u4fdd\u8bc1\u670d\u52a1\u5668\u7684\u6027\u4ef7\u6bd4\u6700\u9ad8\u54e6\uff01<\/p>\n\n\n\n<p><strong>\u4ee3\u7801\u6559\u7a0b<\/strong><strong><\/strong><\/p>\n\n\n\n<p>\u6211\u9996\u5148\u6f14\u793a\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50 \u4f7f\u7528 Circlize \u5305\u4e2d\u7684\u57fa\u672c\u529f\u80fd\u6765\u4e86\u89e3circlize \u5305\u5de5\u4f5c\u539f\u7406\u7684\u57fa\u672c\u6982\u5ff5\u3002\u9996\u5148\uff0c\u8ba9\u6211\u4eec\u751f\u6210\u4e00\u4e9b\u968f\u673a\u6570\u636e\u3002\u9700\u8981\u4e00\u4e2a\u5b57\u7b26\u5411\u91cf\u6765\u8868\u793a\u7c7b\u522b\u3001X \u503c\u7684\u6570\u503c\u5411\u91cf\u548c Y \u503c\u7684 Vectoe\u3002<\/p>\n\n\n\n<p>set.seed(999)<\/p>\n\n\n\n<p>n = 1000<\/p>\n\n\n\n<p>df = data.frame(sectors = sample(letters[1:8], n, replace = TRUE),<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;x = rnorm(n), y = runif(n))<\/p>\n\n\n\n<p>\u9996\u5148\uff0c\u6211\u4eec\u521d\u59cb\u5316\u5706\u5f62\u5e03\u5c40\u3002\u8be5\u5706\u5708\u88ab\u5212\u5206\u4e3a\u591a\u4e2a\u6247\u533a \u57fa\u4e8e\u6bcf\u4e2a\u7c7b\u522b\u4e2d X \u8f74\u4e0a\u7684\u6570\u636e\u8303\u56f4\u3002\u5728\u4e0b\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u88ab\u9664\u4ee5\u5e76\u81ea\u52a8\u8ba1\u7b97\u6247\u533a\u7684\u5bbd\u5ea6 \u57fa\u4e8e\u6bcf\u4e2a\u7c7b\u522b\u4e2d\u7684\u6570\u636e\u8303\u56f4\u3002\u9ed8\u8ba4\uff0c\u6247\u533a\u5b9a\u4f4d \u8d77\u4ef7\u4e3adf$x df$sectors \u03b8=0\uff08\u5728\u6781\u5750\u6807\u7cfb\u4e2d\uff09\u5e76\u6cbf\u5706\u5468\u524d\u8fdb \u987a\u65f6\u9488\u3002\u8fd0\u884c\u4ee5\u4e0b\u4ee3\u7801\u540e\uff0c\u60a8\u53ef\u80fd\u770b\u4e0d\u5230\u4efb\u4f55\u5185\u5bb9\uff0c\u56e0\u4e3a\u6ca1\u6709\u8f68\u9053\u5c1a\u672a\u6dfb\u52a0\u3002<\/p>\n\n\n\n<p>library(circlize)<\/p>\n\n\n\n<p>circos.par(&#8220;track.height&#8221; = 0.1)<\/p>\n\n\n\n<p>circos.initialize(df$sectors, x = df$x)<\/p>\n\n\n\n<p>\u6211\u4eec\u901a\u8fc7\u9009\u9879\u51fd\u6570\u5c06\u5168\u5c40\u53c2\u6570\u8bbe\u7f6e\u4e3a 0.1\uff0c\u4ee5\u4fbf\u6240\u6709\u5c06\u8981\u6dfb\u52a0\u7684\u8f68\u9053\u7684\u9ed8\u8ba4\u9ad8\u5ea6\u4e3a 0.1. circlize \u4f7f\u7528\u7684\u5706\u7684\u534a\u5f84\u59cb\u7ec8\u4e3a 1\uff0c\u56e0\u6b64\u9ad8\u5ea6\u4e3a 0.1 \u8868\u793a\u5706\u534a\u5f84\u7684 10%\u3002\u5728\u540e\u9762\u7684\u7ae0\u8282\u4e2d\uff0c\u60a8\u53ef\u4ee5\u627e\u5230\u5982\u4f55\u8bbe\u7f6e \u5177\u6709\u7269\u7406\u5355\u4f4d\u7684\u9ad8\u5ea6\uff0c\u4f8b\u5982\u5398\u7c73\u3002<\/p>\n\n\n\n<p>circos.track(df$sectors, y = df$y,<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;panel.fun = function(x, y) {<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;circos.text(CELL_META$xcenter,<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CELL_META$cell.ylim[2] + mm_y(5),<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CELL_META$sector.index)<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;circos.axis(labels.cex = 0.6)<\/p>\n\n\n\n<p>})<\/p>\n\n\n\n<p>col = rep(c(&#8220;#FF0000&#8221;, &#8220;#00FF00&#8221;), 4)<\/p>\n\n\n\n<p>circos.trackPoints(df$sectors, df$x, df$y, col = col, pch = 16, cex = 0.5)<\/p>\n\n\n\n<p>circos.text(-1, 0.5, &#8220;text&#8221;, sector.index = &#8220;a&#8221;, track.index = 1)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"457\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72471-5.png?resize=640%2C457\" alt=\"\" class=\"wp-image-60862\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72471-5.png?resize=1024%2C731 1024w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72471-5.png?resize=300%2C214 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72471-5.png?resize=768%2C549 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72471-5.png?resize=600%2C429 600w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72471-5.png?w=1344 1344w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72471-5.png?w=1280 1280w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>\u597d\u4e86\uff0c\u73b0\u5728\u6211\u4eec\u5c06\u76f4\u65b9\u56fe\u6dfb\u52a0\u5230\u7b2c\u4e8c\u4e2a\u8f68\u9053\u3002\u8fd9\u662f\u4e00\u4e2a \u9ad8\u7ea7\u51fd\u6570\uff0c\u8fd9\u610f\u5473\u7740\u5b83\u521b\u5efa\u4e00\u4e2a\u65b0\u8f68\u9053\u3002<\/p>\n\n\n\n<p>bgcol = rep(c(&#8220;#EFEFEF&#8221;, &#8220;#CCCCCC&#8221;), 4)<\/p>\n\n\n\n<p>circos.trackHist(df$sectors, df$x, bin.size = 0.2, bg.col = bgcol, col = NA)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"457\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72473-4.png?resize=640%2C457\" alt=\"\" class=\"wp-image-60863\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72473-4.png?resize=1024%2C731 1024w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72473-4.png?resize=300%2C214 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72473-4.png?resize=768%2C549 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72473-4.png?resize=600%2C429 600w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72473-4.png?w=1344 1344w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72473-4.png?w=1280 1280w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>\u5728\u7b2c\u4e09\u6761\u8f68\u9053\u4e2d\uff0c\u6211\u4eec\u5728\u6bcf\u4e2a\u5355\u5143\u683c\u4e2d\u968f\u673a\u9009\u62e910\u4e2a\u6570\u636e\u70b9\uff0c\u6309x\u503c\u5bf9\u5b83\u4eec\u8fdb\u884c\u6392\u5e8f\uff0c\u5e76\u5c06\u5b83\u4eec\u4e0e\u7ebf\u8fde\u63a5\u8d77\u6765\u3002\u5728\u4e0b\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u5f53(\u7b2c\u4e00\u4e2a\u672a\u547d\u540d\u7684\u53c2\u6570)\u548c\u53c2\u6570\u88ab\u8bbe\u7f6e\u65f6\uff0cx\u503c\u548cy\u503c\u88ab\u5206\u5272\uff0cx\u548cy\u503c\u7684\u76f8\u5e94\u5b50\u96c6\u901a\u8fc7s\u548c\u53c2\u6570\u88ab\u53d1\u9001\u3002\u56e0\u6b64\uff0c\u4e00\u4e2ain\u6070\u597d\u662f\u201c\u5f53\u524d\u201d\u5355\u5143\u683c\u4e2d\u7684\u503c\u3002<\/p>\n\n\n\n<p>circos.track(df$sectors, x = df$x, y = df$y,<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;panel.fun = function(x, y) {<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ind = sample(length(x), 10)<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;x2 = x[ind]<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;y2 = y[ind]<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;od = order(x2)<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;circos.lines(x2[od], y2[od])<\/p>\n\n\n\n<p>})<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"457\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72475-3.png?resize=640%2C457\" alt=\"\" class=\"wp-image-60864\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72475-3.png?resize=1024%2C731 1024w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72475-3.png?resize=300%2C214 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72475-3.png?resize=768%2C549 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72475-3.png?resize=600%2C429 600w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72475-3.png?w=1344 1344w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72475-3.png?w=1280 1280w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>\u73b0\u5728\u6211\u4eec\u56de\u5230\u7b2c\u4e8c\u6761\u8f68\u9053\uff0c\u66f4\u65b0\u6247\u533ad\u4e2d\u7684\u5355\u5143\u683c\u8fd9\u662f\u7531or\u7684\u7b80\u77ed\u7248\u672c\u5b8c\u6210\u7684\u3002\u8be5\u529f\u80fd\u53ef\u4ee5\u64e6\u9664\u5df2\u6dfb\u52a0\u7684\u56fe\u5f62\u3002\u4e0d\u80fd\u4fee\u6539\u5355\u5143\u683c\u7684\u4f4d\u7f6e\u4ee5\u53ca\u4e0e\u5355\u5143\u683c\u4f4d\u7f6e\u76f8\u5173\u7684\u5176\u4ed6\u8bbe\u7f6e\u3002\u9700\u8981\u663e\u5f0f\u6307\u5b9a\u6247\u533a\u7d22\u5f15\u548c\u8ddf\u8e2a\u7d22\u5f15\uff0c\u9664\u975e\u201c\u5f53\u524d\u201d\u5355\u5143\u683c\u662f\u60a8\u60f3\u8981\u66f4\u65b0\u7684\u3002\u8c03\u7528\u540e\uff0c\u201c\u5f53\u524d\u201d\u5355\u5143\u88ab\u91cd\u5b9a\u5411\u5230\u60a8\u521a\u521a\u6307\u5b9a\u7684\u5355\u5143\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4f4e\u7ea7\u56fe\u5f62\u51fd\u6570\u76f4\u63a5\u5411\u5176\u4e2d\u6dfb\u52a0\u56fe\u5f62\u3002<\/p>\n\n\n\n<p>circos.update(sector.index = &#8220;d&#8221;, track.index = 2,<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;bg.col = &#8220;#FF8080&#8221;, bg.border = &#8220;black&#8221;)<\/p>\n\n\n\n<p>circos.points(x = -2:2, y = rep(0.5, 5), col = &#8220;white&#8221;)<\/p>\n\n\n\n<p>circos.text(CELL_META$xcenter, CELL_META$ycenter, &#8220;updated&#8221;, col = &#8220;white&#8221;)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"457\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72476-3.png?resize=640%2C457\" alt=\"\" class=\"wp-image-60865\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72476-3.png?resize=1024%2C731 1024w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72476-3.png?resize=300%2C214 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72476-3.png?resize=768%2C549 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72476-3.png?resize=600%2C429 600w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72476-3.png?w=1344 1344w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72476-3.png?w=1280 1280w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>\u63a5\u4e0b\u6765\u6211\u4eec\u7ee7\u7eed\u521b\u5efa\u65b0\u7684\u8f68\u9053\u3002\u867d\u7136\u6211\u4eec\u5df2\u7ecf\u56de\u5230\u4e86\u7b2c\u4e8c\u4e2a\u8f68\u9053\uff0c\u5f53\u521b\u5efa\u4e00\u4e2a\u65b0\u8f68\u9053\u65f6\uff0c\u65b0\u8f68\u9053\u4ecd\u7136\u662f\u5728\u6700\u91cc\u9762\u7684\u8f68\u9053\u4e4b\u540e\u521b\u5efa\u7684\u3002\u5728\u8fd9\u4e2a\u65b0\u8f68\u9053\u4e2d\uff0c\u6211\u4eec\u6dfb\u52a0\u4e86\u70ed\u56fe\u3002\u6ce8\u610f\uff0c\u8fd9\u91cc\u6211\u4eec\u6ca1\u6709\u8bbe\u7f6e\u8f93\u5165\u6570\u636e\uff0c\u800c\u53ea\u662f\u8bbe\u7f6e\u53c2\u6570\uff0c\u56e0\u4e3a\u70ed\u56fe\u53ea\u662f\u4ece\u6700\u5de6\u5230\u53f3\uff0c\u4ece\u4e0b\u5230\u4e0a\u586b\u5145\u6574\u4e2a\u5355\u5143\u683c\u3002\u6b64\u5916\uff0c\u7684\u786e\u5207\u503c\u4e5f\u4e0d\u91cd\u8981\uff0c\u5e76\u4e14\u4e0d\u4f7f\u7528(\u5b9e\u9645\u4e0a\u5b83\u4eec\u90fd\u662f)\u3002<\/p>\n\n\n\n<p>circos.track(ylim = c(0, 1), panel.fun = function(x, y) {<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;xlim = CELL_META$xlim<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;ylim = CELL_META$ylim<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;breaks = seq(xlim[1], xlim[2], by = 0.1)<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;n_breaks = length(breaks)<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;circos.rect(breaks[-n_breaks], rep(ylim[1], n_breaks &#8211; 1),<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;breaks[-1], rep(ylim[2], n_breaks &#8211; 1),<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;col = rand_color(n_breaks), border = NA)<\/p>\n\n\n\n<p>})<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"457\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72477-2.png?resize=640%2C457\" alt=\"\" class=\"wp-image-60866\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72477-2.png?resize=1024%2C731 1024w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72477-2.png?resize=300%2C214 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72477-2.png?resize=768%2C549 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72477-2.png?resize=600%2C429 600w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72477-2.png?w=1344 1344w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72477-2.png?w=1280 1280w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p>\u5728\u5706\u5708\u7684\u6700\u91cc\u9762\uff0c\u6dfb\u52a0\u4e86\u94fe\u63a5\u6216\u4e1d\u5e26\u3002\u53ef\u4ee5\u6709\u4ece\u5355\u70b9\u5230\u70b9\u3001\u70b9\u5230\u533a\u95f4\u6216\u533a\u95f4\u5230\u533a\u95f4\u7684\u94fe\u63a5\u3002<\/p>\n\n\n\n<p>circos.link(&#8220;a&#8221;, 0, &#8220;b&#8221;, 0, h = 0.4)<\/p>\n\n\n\n<p>circos.link(&#8220;c&#8221;, c(-0.5, 0.5), &#8220;d&#8221;, c(-0.5,0.5), col = &#8220;red&#8221;,<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;border = &#8220;blue&#8221;, h = 0.2)<\/p>\n\n\n\n<p>circos.link(&#8220;e&#8221;, 0, &#8220;g&#8221;, c(-1,1), col = &#8220;green&#8221;, border = &#8220;black&#8221;, lwd = 2, lty = 2)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"640\" height=\"457\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72478-2.png?resize=640%2C457\" alt=\"\" class=\"wp-image-60867\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72478-2.png?resize=1024%2C731 1024w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72478-2.png?resize=300%2C214 300w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72478-2.png?resize=768%2C549 768w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72478-2.png?resize=600%2C429 600w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72478-2.png?w=1344 1344w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/\u56fe\u72478-2.png?w=1280 1280w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p><strong>\u5c0f\u7ed3<\/strong><strong><\/strong><\/p>\n\n\n\n<p>\u5728\u8fd9\u91cc\uff0ccirclize \u5305\u63d0\u4f9b\u4e86\u5728 R \u4e2d\u751f\u6210\u5faa\u73af\u5e03\u5c40\u7684\u5b9e\u73b0\u4ee5\u53ca\u53ef\u7528\u8f6f\u4ef6\u7684\u589e\u5f3a\u3002\u8be5\u8f6f\u4ef6\u5305\u7684\u7075\u6d3b\u6027\u57fa\u4e8e\u4f4e\u7ea7\u56fe\u5f62\u51fd\u6570\u7684\u4f7f\u7528\uff0c\u56e0\u6b64\u7528\u6237\u53ef\u4ee5\u8f7b\u677e\u5730\u5b9e\u73b0\u81ea\u5b9a\u4e49\u7684\u9ad8\u7ea7\u56fe\u5f62\u4ee5\u7528\u4e8e\u7279\u5b9a\u76ee\u7684\u3002\u7ed3\u5408 R \u4e2d\u5f3a\u5927\u7684\u8ba1\u7b97\u548c\u89c6\u89c9\u73af\u5883\u4e4b\u95f4\u7684\u65e0\u7f1d\u8fde\u63a5\uff0ccircize \u4e3a\u7528\u6237\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u4fbf\u5229\u548c\u81ea\u7531\u6765\u8bbe\u8ba1\u56fe\u5f62\uff0c\u4ee5\u66f4\u597d\u5730\u7406\u89e3\u591a\u7ef4\u6570\u636e\u80cc\u540e\u7684\u590d\u6742\u6a21\u5f0f\u3002\u6700\u540e\u5927\u6d77\u54e5\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u4e00\u4e2a\u4e91\u5de5\u5177\uff01\u540c\u5b66\u4eec\u5982\u679c\u89c9\u5f97\u81ea\u5df1\u7684\u4ee3\u7801\u6c34\u5e73\u4e00\u822c\uff0c\u5bf9\u4e8e\u5f88\u591a\u7684\u53c2\u6570\u4e0d\u77e5\u9053\u600e\u4e48\u6539\uff0c\u53ef\u4ee5\u4f53\u9a8c\u4e00\u4e0b\u6211\u4eec\u7684\u4e91\u751f\u4fe1\u5c0f\u5de5\u5177\uff0c\u53ea\u9700\u8f93\u5165\u6570\u636e\uff0c\u5373\u53ef\u8f7b\u677e\u751f\u6210\u6240\u9700\u56fe\u8868\uff0c\u5b57\u4f53\u5927\u5c0f\u3001\u6807\u9898\u7b49\u4e5f\u53ef\u4e00\u952e\u66f4\u6539\u3002\u611f\u5174\u8da3\u7684\u5c0f\u4f19\u4f34\u53bb\u4e91\u751f\u4fe1\uff08http:\/\/www.biocloudservice.com\/home.html\uff09\u4f53\u9a8c\u4e00\u4e0b\u5427\uff01<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/b83a70e861b85da4e5d054d57384bcfc-4.png?resize=640%2C285\" alt=\"\" class=\"wp-image-60868\" width=\"640\" height=\"285\" srcset=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/b83a70e861b85da4e5d054d57384bcfc-4.png?w=553 553w, https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/09\/b83a70e861b85da4e5d054d57384bcfc-4.png?resize=300%2C133 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" data-recalc-dims=\"1\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u5927\u6d77\u54e5\u5df2\u7ecf\u7ed9\u5927\u5bb6\u5206\u4eab\u4e86\u5341\u51e0\u671f\u7684R\u5305\u6559\u7a0b\u4e86\uff0c\u4eca\u5929\u7ed9\u5927\u5bb6\u6362\u6362\u53e3\u5473\u3002\u6563\u70b9\u53ef\u8c13\u662f\u751f\u4fe1\u5206\u6790\u4e2d\u53ef\u89c6\u5316\u7684\u5e38\u5ba2\uff0c\u5f88\u591a\u6570\u636e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","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\/60861"}],"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=60861"}],"version-history":[{"count":1,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/60861\/revisions"}],"predecessor-version":[{"id":60869,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/60861\/revisions\/60869"}],"wp:attachment":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=60861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=60861"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=60861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}