{"id":68737,"date":"2026-12-05T09:10:34","date_gmt":"2026-12-05T01:10:34","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=68737"},"modified":"2026-12-05T09:10:34","modified_gmt":"2026-12-05T01:10:34","slug":"r-guide-purecn-practice","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/r-guide-purecn-practice\/","title":{"rendered":"PureCN \u7684\u7eaf\u5ea6\u548c\u500d\u4f53\u6570\u51fa\u73b0\u591a\u4e2a\u89e3\uff0c\u600e\u6837\u8bfb\u6df1\u5ea6\u4e0e\u7b49\u4f4d\u57fa\u56e0\u8bc1\u636e\uff1f"},"content":{"rendered":"<div class=\"ysx-r-practice\" id=\"ysx-r-purecn\" style=\"max-width:820px;margin:0 auto;color:#203449;font-size:17px;line-height:1.88;overflow-wrap:break-word;\">\n<p style=\"margin:.5em 0 1em\">\u4e00\u6bb5\u80bf\u7624\u7ec4\u7ec7\u5728\u6df1\u5ea6\u4e0a\u53ea\u7565\u9ad8\u4e8e\u6b63\u5e38\uff0c\u65e2\u53ef\u80fd\u662f\u8f83\u5f31\u7684\u62f7\u8d1d\u6570\u53d8\u5316\uff0c\u4e5f\u53ef\u80fd\u662f\u8f83\u5f3a\u53d8\u5316\u88ab\u6b63\u5e38\u7ec6\u80de\u7a00\u91ca\u3002PureCN \u7ed9\u51fa\u591a\u4e2a\u7eaf\u5ea6\u4e0e\u500d\u4f53\u5019\u9009\u65f6\uff0c\u9700\u8981\u67e5\u770b\u80fd\u533a\u5206\u8fd9\u4e9b\u89e3\u91ca\u7684\u7b49\u4f4d\u4fe1\u606f\u548c\u8986\u76d6\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">PureCN \u7684\u8f93\u5165\u548c\u5206\u6790\u5bf9\u8c61<\/h2>\n<p style=\"margin:.5em 0 1em\">cfg \u662f\u547d\u540d\u53c2\u6570\u5217\u8868\uff0c\u6309\u5b89\u88c5\u7248 runAbsoluteCN \u624b\u518c\u586b\u5165\u672c\u9879\u76ee\u533a\u95f4\u3001\u80bf\u7624\u8986\u76d6\u3001VCF \u4e0e\u5339\u914d\u6b63\u5e38\u5e93\u7b49\u6709\u6548\u8def\u5f84\u3002\u5148\u6838\u5bf9\u53c2\u6570\u540d\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">PureCN \u65b9\u6cd5\u5728\u4f30\u7b97\u80bf\u7624\u7eaf\u5ea6\u548c\u500d\u4f53\u6570\u65f6\uff0c\u5e38\u51fa\u73b0\u591a\u4e2a\u5019\u9009\u89e3\uff0c\u8fd9\u5728\u5b9e\u9645\u5206\u6790\u4e2d\u4f1a\u5e26\u6765\u7ed3\u679c\u89e3\u91ca\u7684\u56f0\u96be\u3002\u4e3b\u8981\u95ee\u9898\u6e90\u4e8e\u80bf\u7624\u6837\u672c\u4e0e\u6b63\u5e38\u6837\u672c\u7684\u8986\u76d6\u6df1\u5ea6\u3001\u6742\u5408\u4f4d\u70b9\u5206\u5e03\u4ee5\u53ca\u7b49\u4f4d\u57fa\u56e0\u9891\u7387\u7684\u590d\u6742\u5173\u7cfb\u3002\u5f53\u8f93\u5165\u6570\u636e\u4e2d\u5b58\u5728\u591a\u4e2a\u53ef\u80fd\u7684\u7eaf\u5ea6\u548c\u500d\u4f53\u6570\u7ec4\u5408\u65f6\uff0c\u7b97\u6cd5\u4f1a\u751f\u6210\u591a\u4e2a\u5019\u9009\u89e3\uff0c\u4f46\u8fd9\u4e9b\u89e3\u5728\u6570\u503c\u4e0a\u53ef\u80fd\u975e\u5e38\u63a5\u8fd1\uff0c\u96be\u4ee5\u76f4\u63a5\u5224\u65ad\u54ea\u4e2a\u66f4\u7b26\u5408\u771f\u5b9e\u60c5\u51b5\u3002\u8fd9\u79cd\u73b0\u8c61\u5728\u6ca1\u6709\u914d\u5bf9\u6b63\u5e38\u6837\u672c\u65f6\u5c24\u4e3a\u5e38\u89c1\uff0c\u6b64\u65f6\u9700\u8981\u4f9d\u8d56\u6355\u83b7\u9762\u677f\u548c\u6b63\u5e38\u5e93\u7684\u5339\u914d\u5ea6\u6765\u8f85\u52a9\u5224\u65ad\u3002\u56e0\u6b64\uff0c\u660e\u786e\u8f93\u5165\u6570\u636e\u7684\u6784\u6210\u548c\u8d28\u91cf\uff0c\u662f\u7406\u89e3\u5019\u9009\u89e3\u751f\u6210\u673a\u5236\u7684\u524d\u63d0\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5b9e\u9a8c\u4e2d\u4f7f\u7528\u7684\u8f93\u5165\u5305\u62ec\u80bf\u7624\u6837\u672c\u7684\u8986\u76d6\u6df1\u5ea6\u6587\u4ef6\u3001\u6b63\u5e38\u6837\u672c\u5e93\u7684\u8986\u76d6\u6570\u636e\u3001\u53d8\u5f02\u4f4d\u70b9\u7684 VCF \u6587\u4ef6\u4ee5\u53ca\u6355\u83b7\u533a\u95f4\u6587\u4ef6\u3002\u8fd9\u4e9b\u6587\u4ef6\u5171\u540c\u6784\u6210\u5206\u6790\u7684\u57fa\u7840\uff0c\u5176\u4e2d\u8986\u76d6\u6df1\u5ea6\u548c\u7b49\u4f4d\u57fa\u56e0\u9891\u7387\u7684\u51c6\u786e\u6027\u76f4\u63a5\u5f71\u54cd\u5019\u9009\u89e3\u7684\u751f\u6210\u3002\u6b63\u5e38\u6837\u672c\u5e93\u7684\u6784\u5efa\u9700\u786e\u4fdd\u4e0e\u80bf\u7624\u6837\u672c\u5728\u6355\u83b7\u8bd5\u5242\u548c\u5904\u7406\u6d41\u7a0b\u4e0a\u4e00\u81f4\uff0c\u5426\u5219\u4f1a\u5f15\u5165\u7cfb\u7edf\u8bef\u5dee\u3002\u6b64\u5916\uff0c\u6355\u83b7\u533a\u95f4\u7684\u8986\u76d6\u566a\u58f0\u548c\u6709\u6548\u6742\u5408\u4f4d\u70b9\u7684\u6570\u91cf\u4e5f\u4f1a\u5f71\u54cd\u7b97\u6cd5\u5bf9\u5019\u9009\u89e3\u7684\u533a\u5206\u80fd\u529b\u3002\u8fd9\u4e9b\u56e0\u7d20\u53e0\u52a0\uff0c\u4f7f\u5f97\u7ed3\u679c\u89e3\u91ca\u53d8\u5f97\u590d\u6742\uff0c\u9700\u8981\u7ed3\u5408\u591a\u4e2a\u6307\u6807\u8fdb\u884c\u7efc\u5408\u5224\u65ad\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u6574\u7406\u80bf\u7624\u8986\u76d6\u3001\u53d8\u5f02 VCF\u3001\u6355\u83b7\u533a\u95f4\u53ca\u5339\u914d\u6d41\u7a0b\u7684\u6b63\u5e38\u6837\u672c\u5e93\uff0c\u5411 <code>runAbsoluteCN()<\/code> \u63d0\u4ea4\u8f93\u5165\uff0c\u6bd4\u8f83\u5019\u9009\u7eaf\u5ea6\u3001\u500d\u4f53\u6570\u548c\u7b49\u4f4d\u57fa\u56e0\u62df\u5408\u3002 <a href=\"https:\/\/bioconductor.org\/packages\/release\/bioc\/vignettes\/PureCN\/inst\/doc\/Quick.html\" style=\"color:#185CB7;text-decoration:underline;\">PureCN \u5b98\u65b9\u6559\u7a0b<\/a><\/p>\n<pre style=\"white-space:pre;overflow:auto;max-width:100%;padding:14px;background:#F0F7FF;border:1px solid #D1E7FF;border-radius:8px;color:#183551;font-size:14px;line-height:1.6;box-sizing:border-box;\"><code class=\"language-r\" style=\"font-family:Consolas,monospace;white-space:pre;overflow-wrap:normal;word-break:normal;\">fn &lt;- PureCN::runAbsoluteCN\nstopifnot(all(names(cfg) %in% names(formals(fn))))\nfit &lt;- do.call(fn,cfg)\nstr(fit,max.level=1)\n<\/code><\/pre>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u5355\u62f7\u8d1d\u589e\u76ca\u88ab\u6b63\u5e38\u7ec6\u80de\u7a00\u91ca<\/h2>\n<p style=\"margin:.5em 0 1em\">\u5047\u8bbe\u80bf\u7624\u533a\u6bb5\u4e09\u4efd\u3001\u6b63\u5e38\u7ec6\u80de\u4e8c\u4efd\uff0c\u7ebf\u6027\u6df7\u5408\u671f\u671b\u4e09\u3001\u4e8c\u70b9\u4e94\u3001\u4e8c\u70b9\u4e8c\u3002\u8be5\u7b80\u5316\u503c\u4e0d\u662f\u5f52\u4e00\u5316\u6d4b\u5e8f\u6df1\u5ea6\u6216 PureCN \u62df\u5408\u3002\u7b49\u4f4d\u5931\u8861\u548c\u5176\u4ed6\u533a\u6bb5\u662f\u533a\u5206\u5019\u9009\u89e3\u7684\u91cd\u8981\u8bc1\u636e\u3002<\/p>\n<pre style=\"white-space:pre;overflow:auto;max-width:100%;padding:14px;background:#F0F7FF;border:1px solid #D1E7FF;border-radius:8px;color:#183551;font-size:14px;line-height:1.6;box-sizing:border-box;\"><code class=\"language-r\" style=\"font-family:Consolas,monospace;white-space:pre;overflow-wrap:normal;word-break:normal;\">v &lt;- c(3,.5*3+.5*2,.2*3+.8*2)\nnames(v) &lt;- c(\"\u7eaf\u80bf\u7624\", \"\u7eaf\u5ea6\u4e94\u6210\", \"\u7eaf\u5ea6\u4e24\u6210\")\nprint(v)\n<\/code><\/pre>\n<table style=\"width:100%;border-collapse:collapse;margin:1em 0;font-size:15px\">\n<thead>\n<tr>\n<th style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#ECF6FF;\">\u8f93\u5165\u6216\u6bd4\u8f83\u9879<\/th>\n<th style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#ECF6FF;\">R \u8ba1\u7b97\u7ed3\u679c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">\u7eaf\u80bf\u7624<\/td>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">3<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">\u7eaf\u5ea6\u4e94\u6210<\/td>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">2.5<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">\u7eaf\u5ea6\u4e24\u6210<\/td>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">2.2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<figure style=\"margin:1.5em 0;\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/r-guide-purecn-practice-980d17f1.png?resize=1120%2C690&#038;ssl=1\" alt=\"\u5355\u62f7\u8d1d\u589e\u76ca\u88ab\u6b63\u5e38\u7ec6\u80de\u7a00\u91ca\u3002\u7eaf\u80bf\u7624 3\uff0c\u7eaf\u5ea6\u4e94\u6210 2.5\uff0c\u7eaf\u5ea6\u4e24\u6210 2.2\u3002\" width=\"1120\" height=\"690\" style=\"max-width:100%;width:100%;height:auto;display:block\"><figcaption style=\"font-size:14px;color:#455970;line-height:1.6;\">\u6559\u5b66\u7b97\u4f8b\uff0c\u6570\u636e\u4e0e\u8ba1\u7b97\u5f0f\u89c1\u56fe\u4e0a\u65b9\u3002<\/figcaption><\/figure>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u603b\u62f7\u8d1d\u7c7b\u4f3c\u65f6\uff0c\u7b49\u4f4d\u6bd4\u4f8b\u8fd8\u53ef\u63d0\u4f9b\u4ec0\u4e48\u4fe1\u606f\uff1f<\/h2>\n<p style=\"margin:.5em 0 1em\">\u603b\u6570\u90fd\u4e3a\u56db\u4efd\u7684\u4e24\u4e2a\u6a21\u578b\uff0c\u4e00\u79cd\u66ff\u4ee3\u7b49\u4f4d\u5360\u4e00\u534a\uff0c\u4e00\u79cd\u53ea\u5360\u56db\u5206\u4e4b\u4e00\u3002\u5b9e\u9645\u7b49\u4f4d\u6bd4\u4f8b\u4f1a\u88ab\u6b63\u5e38\u6210\u5206\u7a00\u91ca\uff0c\u9700\u770b\u8bb8\u591a\u6709\u8986\u76d6\u7684\u4f4d\u70b9\u3002\u5982\u679c\u6355\u83b7\u533a\u57df\u5185\u51e0\u4e4e\u6ca1\u6709\u6709\u4fe1\u606f\u7684\u6742\u5408\u4f4d\u70b9\uff0c\u5c31\u5e94\u540c\u65f6\u5217\u51fa\u7ade\u4e89\u89e3\u3002<\/p>\n<pre style=\"white-space:pre;overflow:auto;max-width:100%;padding:14px;background:#F0F7FF;border:1px solid #D1E7FF;border-radius:8px;color:#183551;font-size:14px;line-height:1.6;box-sizing:border-box;\"><code class=\"language-r\" style=\"font-family:Consolas,monospace;white-space:pre;overflow-wrap:normal;word-break:normal;\">c(balanced=2\/(2+2),unbalanced=1\/(3+1))\n<\/code><\/pre>\n<p style=\"margin:.5em 0 1em\">\u4ee5\u4e00\u4e2a\u7b80\u5316\u7684\u7ebf\u6027\u6df7\u5408\u6a21\u578b\u4e3a\u4f8b\uff0c\u5047\u8bbe\u80bf\u7624\u533a\u6bb5\u6709\u4e09\u4efd\u62f7\u8d1d\uff0c\u6b63\u5e38\u7ec6\u80de\u6709\u4e24\u4efd\u62f7\u8d1d\u3002\u6839\u636e\u7ebf\u6027\u6df7\u5408\u539f\u7406\uff0c\u6df7\u5408\u540e\u7684\u671f\u671b\u503c\u5e94\u4e3a\u4e09\u4e0e\u4e8c\u7684\u52a0\u6743\u5e73\u5747\uff0c\u5373 3 \u00d7 0.5 + 2 \u00d7 0.5 = 2.5\u3002\u5982\u679c\u7eaf\u5ea6\u4e3a 0.5\uff0c\u90a3\u4e48\u7eaf\u80bf\u7624\u90e8\u5206\u7684\u62f7\u8d1d\u6570\u5e94\u4e3a 3\uff0c\u6b63\u5e38\u90e8\u5206\u4e3a 2\uff0c\u6df7\u5408\u540e\u4e3a 2.5\u3002\u5982\u679c\u7eaf\u5ea6\u4e3a 0.2\uff0c\u5219\u7eaf\u80bf\u7624\u90e8\u5206\u4e3a 3\uff0c\u6b63\u5e38\u90e8\u5206\u4e3a 2\uff0c\u6df7\u5408\u540e\u4e3a 0.2 \u00d7 3 + 0.8 \u00d7 2 = 2.2\u3002\u8be5\u8ba1\u7b97\u8fc7\u7a0b\u4e0d\u8003\u8651\u5f52\u4e00\u5316\u6df1\u5ea6\u6216 PureCN \u62df\u5408\u7ed3\u679c\uff0c\u4ec5\u7528\u4e8e\u8bf4\u660e\u5019\u9009\u89e3\u7684\u751f\u6210\u903b\u8f91\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5728\u5b9e\u9645\u5206\u6790\u4e2d\uff0c\u7eaf\u5ea6\u548c\u500d\u4f53\u6570\u7684\u4f30\u8ba1\u4e0d\u80fd\u4ec5\u4f9d\u8d56\u4e8e\u7b80\u5355\u7684\u7ebf\u6027\u6df7\u5408\u6a21\u578b\u3002\u4f46\u82e5\u5b58\u5728\u62f7\u8d1d\u6570\u6269\u589e\u6216\u7f3a\u5931\uff0c\u5b9e\u9645\u89c2\u6d4b\u503c\u4f1a\u504f\u79bb\u8be5\u7ebf\u6027\u6a21\u578b\u3002\u56e0\u6b64\uff0c\u5019\u9009\u89e3\u7684\u751f\u6210\u9700\u7ed3\u5408\u7b49\u4f4d\u57fa\u56e0\u9891\u7387\u7684\u5206\u5e03\uff0c\u4ee5\u5224\u65ad\u662f\u5426\u5b58\u5728\u62f7\u8d1d\u6570\u5f02\u5e38\u3002\u8fd9\u79cd\u5206\u6790\u65b9\u6cd5\u53ef\u4ee5\u8bc6\u522b\u51fa\u54ea\u4e9b\u5019\u9009\u89e3\u66f4\u7b26\u5408\u5b9e\u9645\u7684\u62f7\u8d1d\u6570\u53d8\u5316\u6a21\u5f0f\u3002\u901a\u8fc7\u5bf9\u6bd4\u4e0d\u540c\u5019\u9009\u89e3\u7684\u7b49\u4f4d\u57fa\u56e0\u9891\u7387\u5206\u5e03\uff0c\u53ef\u4ee5\u66f4\u51c6\u786e\u5730\u5224\u65ad\u54ea\u4e2a\u89e3\u66f4\u7b26\u5408\u5b9e\u9645\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u8be5\u7b80\u5316\u6a21\u578b\u8fd8\u8bf4\u660e\u4e86\u5019\u9009\u89e3\u4e4b\u95f4\u7684\u5dee\u5f02\u3002\u5f53\u7eaf\u5ea6\u4e3a 0.2 \u65f6\uff0c\u7eaf\u80bf\u7624\u90e8\u5206\u4e3a 3\uff0c\u6b63\u5e38\u90e8\u5206\u4e3a 2\uff0c\u6df7\u5408\u540e\u4e3a 2.2\u3002\u5982\u679c\u8be5\u5019\u9009\u89e3\u5728\u591a\u4e2a\u7247\u6bb5\u4e0a\u90fd\u8868\u73b0\u51fa\u8f83\u597d\u7684\u62df\u5408\u6548\u679c\uff0c\u90a3\u4e48\u5b83\u66f4\u53ef\u80fd\u662f\u771f\u5b9e\u60c5\u51b5\u7684\u53cd\u6620\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5728\u8fd0\u884c PureCN \u65f6\uff0c\u5e38\u89c1\u7684\u6545\u969c\u5305\u62ec\u5019\u9009\u89e3\u6570\u91cf\u8fc7\u591a\u3001\u7b49\u4f4d\u57fa\u56e0\u9891\u7387\u5206\u5e03\u5f02\u5e38\u4ee5\u53ca\u8986\u76d6\u6df1\u5ea6\u4f30\u8ba1\u4e0d\u51c6\u786e\u3002\u5f53\u5019\u9009\u89e3\u6570\u91cf\u8fc7\u591a\u65f6\uff0c\u5e94\u9996\u5148\u68c0\u67e5\u6b63\u5e38\u5e93\u4e0e\u80bf\u7624\u6837\u672c\u7684\u6355\u83b7\u6d41\u7a0b\u662f\u5426\u4e00\u81f4\u3002\u5982\u679c\u6355\u83b7\u6d41\u7a0b\u4e0d\u4e00\u81f4\uff0c\u4f1a\u5bfc\u81f4\u8986\u76d6\u6df1\u5ea6\u4f30\u8ba1\u504f\u5dee\uff0c\u4ece\u800c\u5f71\u54cd\u5019\u9009\u89e3\u7684\u751f\u6210\u3002\u6b64\u65f6\u5e94\u91cd\u65b0\u8bc4\u4f30\u6b63\u5e38\u5e93\u7684\u5339\u914d\u5ea6\uff0c\u786e\u8ba4\u662f\u5426\u9700\u8981\u66f4\u6362\u5339\u914d\u7684\u6b63\u5e38\u6837\u672c\u3002\u5982\u679c\u7b49\u4f4d\u57fa\u56e0\u9891\u7387\u5206\u5e03\u5f02\u5e38\uff0c\u5e94\u68c0\u67e5 VCF \u6587\u4ef6\u4e2d\u7684\u53d8\u5f02\u4f4d\u70b9\u662f\u5426\u51c6\u786e\uff0c\u4ee5\u53ca\u662f\u5426\u5305\u542b\u8db3\u591f\u7684\u6742\u5408\u4f4d\u70b9\u3002\u8986\u76d6\u6df1\u5ea6\u4f30\u8ba1\u4e0d\u51c6\u786e\u5219\u53ef\u80fd\u6e90\u4e8e\u8986\u76d6\u6587\u4ef6\u7684\u751f\u6210\u8fc7\u7a0b\u5b58\u5728\u9519\u8bef\uff0c\u5e94\u68c0\u67e5\u8986\u76d6\u6df1\u5ea6\u7684\u8ba1\u7b97\u662f\u5426\u5408\u7406\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u4ece PureCN \u968f\u5305\u7684\u5019\u9009\u89e3\u4e2d\u5b9e\u9645\u63d0\u53d6\u7eaf\u5ea6\u548c\u500d\u4f53<\/h2>\n<pre style=\"white-space:pre;overflow:auto;max-width:100%;padding:14px;background:#F0F7FF;border:1px solid #D1E7FF;border-radius:8px;color:#183551;font-size:14px;line-height:1.6;box-sizing:border-box;\"><code class=\"language-r\" style=\"font-family:Consolas,monospace;white-space:pre;overflow-wrap:normal;word-break:normal;\">data(\"purecn.example.output\",package=\"PureCN\")\nsol&lt;-purecn.example.output$results\nstopifnot(length(sol)&gt;0)\nc(length(sol),sol[[1]]$purity,sol[[1]]$ploidy)\n<\/code><\/pre>\n<p style=\"margin:.5em 0 1em\">\u5728 R 4.5.2\u3001PureCN 2.16.1 \u4e2d\u8fd0\u884c\uff0c\u8f93\u51fa\u4f9d\u6b21\u4e3a\u5019\u9009\u89e3 10\uff0c\u9996\u89e3\u7eaf\u5ea6 0.65\uff0c\u9996\u89e3\u500d\u4f53 1.73\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u9047\u5230\u5f02\u5e38\uff0c\u5148\u6838\u5bf9\u54ea\u4e00\u9879<\/h2>\n<p style=\"margin:.5em 0 1em\">\u5148\u68c0\u67e5\u6b63\u5e38\u5e93\u4e0e\u80bf\u7624\u7684\u6355\u83b7\u8bd5\u5242\u548c\u5904\u7406\u6d41\u7a0b\u662f\u5426\u4e00\u81f4\uff0c\u518d\u770b\u6709\u6548\u6742\u5408\u4f4d\u70b9\u6570\u91cf\u3001\u8986\u76d6\u566a\u58f0\u4e0e\u5019\u9009\u89e3\u7684\u533a\u5206\u5ea6\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u8bca\u65ad\u6d41\u7a0b\u9996\u5148\u5e94\u68c0\u67e5\u8f93\u5165\u53c2\u6570\u662f\u5426\u6b63\u786e\uff0c\u7279\u522b\u662f <code>normal.coverage.file<\/code> \u548c <code>tumor.coverage.file<\/code> \u662f\u5426\u6307\u5411\u6b63\u786e\u7684\u6587\u4ef6\u3002\u63a5\u7740\u5e94\u68c0\u67e5 <code>vcf.file<\/code> \u4e2d\u7684\u6742\u5408\u4f4d\u70b9\u6570\u91cf\u662f\u5426\u8db3\u591f\uff0c\u4ee5\u53ca\u662f\u5426\u5305\u542b\u8db3\u591f\u7684\u8986\u76d6\u566a\u58f0\u3002\u5982\u679c\u5019\u9009\u89e3\u6570\u91cf\u8fc7\u591a\uff0c\u5e94\u5c1d\u8bd5\u8c03\u6574 <code>test.purity<\/code> \u548c <code>max.ploidy<\/code> \u7684\u8303\u56f4\uff0c\u4ee5\u51cf\u5c11\u5019\u9009\u89e3\u7684\u6570\u91cf\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5728\u8fdb\u884c\u654f\u611f\u6027\u5206\u6790\u65f6\uff0c\u9700\u8981\u8003\u8651\u5019\u9009\u89e3\u5728\u4e0d\u540c\u7eaf\u5ea6\u548c\u500d\u4f53\u6570\u8303\u56f4\u5185\u7684\u8868\u73b0\u3002\u4f8b\u5982\uff0c\u5f53\u7eaf\u5ea6\u4e3a 0.3 \u65f6\uff0c\u5019\u9009\u89e3\u53ef\u80fd\u5728\u591a\u4e2a\u500d\u4f53\u6570\u4e0b\u90fd\u8868\u73b0\u51fa\u8f83\u597d\u7684\u62df\u5408\u6548\u679c\u3002\u6b64\u65f6\u5e94\u7ed3\u5408\u7b49\u4f4d\u57fa\u56e0\u9891\u7387\u5206\u5e03\u548c\u8986\u76d6\u6df1\u5ea6\u7684\u7a33\u5b9a\u6027\u6765\u5224\u65ad\u54ea\u4e2a\u89e3\u66f4\u5408\u7406\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u8fb9\u754c\u6761\u4ef6\u7684\u5206\u6790\u8fd8\u5e94\u8003\u8651\u8986\u76d6\u6df1\u5ea6\u548c\u7b49\u4f4d\u57fa\u56e0\u9891\u7387\u7684\u5206\u5e03\u53d8\u5316\u3002\u5f53\u8986\u76d6\u6df1\u5ea6\u8f83\u4f4e\u65f6\uff0c\u5019\u9009\u89e3\u7684\u4f30\u8ba1\u8bef\u5dee\u53ef\u80fd\u8f83\u5927\uff0c\u6b64\u65f6\u5e94\u7ed3\u5408\u7b49\u4f4d\u57fa\u56e0\u9891\u7387\u7684\u5206\u5e03\u6765\u5224\u65ad\u5019\u9009\u89e3\u7684\u5408\u7406\u6027\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u5e26\u56de\u539f\u59cb\u89c2\u6d4b\u518d\u68c0\u67e5\u4e00\u6b21<\/h2>\n<p style=\"margin:.5em 0 1em\">\u5982\u679c\u4e24\u4e2a\u7eaf\u5ea6\u4e0e\u500d\u4f53\u5019\u9009\u90fd\u80fd\u89e3\u91ca\u603b\u6df1\u5ea6\uff0c\u53d6\u4e00\u6bb5\u542b\u8db3\u591f\u6742\u5408\u4f4d\u70b9\u7684\u67d3\u8272\u4f53\uff0c\u540c\u65f6\u753b\u6df1\u5ea6\u53d8\u5316\u4e0e\u6b21\u8981\u7b49\u4f4d\u57fa\u56e0\u6bd4\u4f8b\u3002\u603b\u62f7\u8d1d\u76f8\u8fd1\u65f6\uff0c\u7b49\u4f4d\u5931\u8861\u6a21\u5f0f\u53ef\u80fd\u5e2e\u52a9\u6392\u9664\u4e00\u4e2a\u89e3\u3002\u68c0\u67e5\u6b63\u5e38\u5bf9\u7167\u3001\u4f53\u7ec6\u80de\u53d8\u5f02\u9891\u7387\u53ca\u7ec4\u7ec7\u5b66\u4f30\u8ba1\u80fd\u63d0\u4f9b\u76f8\u5bf9\u72ec\u7acb\u7684\u7ea6\u675f\u3002\u82e5\u4e24\u79cd\u5019\u9009\u5728\u73b0\u6709\u6570\u636e\u4e2d\u4ecd\u76f8\u5bb9\uff0c\u5e94\u5206\u522b\u7ed9\u51fa\u91cd\u8981\u533a\u6bb5\u7684\u62f7\u8d1d\u6570\u89e3\u91ca\u53ca\u5f85\u8865\u8bc1\u636e\uff0c\u5e76\u4fdd\u5b58\u6a21\u578b\u7684\u591a\u4e2a\u5019\u9009\u7ed3\u679c\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u6311\u4e00\u4e2a\u6709\u8db3\u591f\u8986\u76d6\u3001\u6807\u8bc6\u660e\u786e\u7684\u4f4d\u7f6e\uff0c\u628a\u8be5\u4f4d\u7f6e\u7684\u4e24\u4e2a\u7b49\u4f4d\u3001\u4f7f\u7528\u7684\u53c2\u8003\u7248\u672c\u548c\u6837\u672c\u987a\u5e8f\u9010\u9879\u6838\u5bf9\u3002\u82e5\u8d44\u6599\u53ea\u6709\u6c47\u603b\u7edf\u8ba1\uff0c\u4e5f\u8981\u628a\u6548\u5e94\u65b9\u5411\u8ffd\u5230\u5177\u4f53\u7684\u7b49\u4f4d\u5b9a\u4e49\u3002\u4e00\u4e2a\u7b49\u4f4d\u540d\u79f0\u5199\u53cd\uff0c\u5e38\u4f1a\u7559\u4e0b\u770b\u4f3c\u5408\u7406\u7684\u7edd\u5bf9\u503c\uff0c\u5374\u628a\u65b9\u5411\u98a0\u5012\u3002\u5bf9\u6765\u81ea\u4e0d\u540c\u53c2\u8003\u9762\u677f\u7684\u8d44\u6599\uff0c\u9891\u7387\u76f8\u8fd1\u662f\u4e00\u79cd\u652f\u6301\uff0c\u9891\u7387\u4e0d\u76f8\u8fd1\u8fd8\u53ef\u80fd\u6d89\u53ca\u7956\u6e90\u3001\u6d4b\u5e8f\u8303\u56f4\u548c\u6837\u672c\u9009\u62e9\uff0c\u4e0d\u80fd\u5355\u51ed\u4e00\u5217\u9891\u7387\u81ea\u52a8\u7ffb\u8f6c\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u518d\u628a\u8be5\u4f4d\u70b9\u653e\u56de\u5468\u56f4\u7684\u8bc1\u636e\u4e2d\u3002\u82e5\u4f9d\u8d56\u90bb\u8fd1\u6807\u8bb0\u6216\u6210\u7247\u4fe1\u53f7\uff0c\u8bb0\u5f55\u90bb\u8fd1\u6807\u8bb0\u7684\u5bc6\u5ea6\u3001\u53ef\u7528\u89c2\u6d4b\u6570\u53ca\u79bb\u6700\u8fd1\u4e00\u4e2a\u6709\u6548\u4f4d\u7f6e\u591a\u8fdc\u3002\u82e5\u4f9d\u8d56\u4e2a\u4f53\u5c42\u91cd\u590d\u6216\u8868\u578b\u5173\u8054\uff0c\u5219\u6309\u4eba\u7edf\u8ba1\u5b9e\u9645\u53c2\u4e0e\u4f30\u8ba1\u7684\u6837\u672c\u6570\u3002\u8fd9\u6837\u80fd\u8bc6\u522b\u4e00\u79cd\u5f88\u5e38\u89c1\u7684\u843d\u5dee\uff0c\u6587\u4ef6\u6709\u8bb8\u591a\u884c\u6216\u6a21\u578b\u7ed9\u51fa\u5f88\u7a84\u7684\u5019\u9009\u5217\u8868\uff0c\u4f46\u652f\u6491\u8fd9\u4e2a\u5c40\u90e8\u7ed3\u8bba\u7684\u72ec\u7acb\u89c2\u6d4b\u5e76\u6ca1\u6709\u770b\u8d77\u6765\u90a3\u4e48\u591a\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u4e0b\u8f7d\u4ee3\u7801\u548c\u793a\u4f8b\u6570\u636e\uff0c\u5728 Linux \u4e0a\u590d\u73b0<\/h2>\n<p style=\"margin:.5em 0 1em\"><a style=\"color:#1458a5;text-decoration:underline;\" href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/r-practice-labs\/067-purecn-code-81898142c549e3c6.zip\">\u4e0b\u8f7d\u672c\u7bc7 R \u4ee3\u7801\uff08ZIP\uff0c3.7 KiB\uff09<\/a> \u00b7 <a style=\"color:#1458a5;text-decoration:underline;\" href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/r-practice-labs\/067-purecn-data-c5d0f883d6109722.zip\">\u4e0b\u8f7d\u914d\u5957\u793a\u4f8b\u6570\u636e\uff08ZIP\uff0c2.6 KiB\uff09<\/a><\/p>\n<p style=\"margin:.5em 0 1em\">\u5c06\u4e24\u4e2a ZIP \u89e3\u538b\u5230\u540c\u4e00\u4f4d\u7f6e\uff0c\u8fdb\u5165 <code style=\"background:#edf5fc;padding:.05em .25em;border-radius:3px;\">067-purecn<\/code> \u76ee\u5f55\uff0c\u8fd0\u884c <code style=\"background:#edf5fc;padding:.05em .25em;border-radius:3px;\">Rscript --vanilla run.R<\/code>\u3002\u6253\u5f00 <code style=\"background:#edf5fc;padding:.05em .25em;border-radius:3px;\">results\/metrics.tsv<\/code> \u67e5\u770b\u7ed3\u679c\uff0c\u4ee3\u7801\u5305\u4e2d\u7684 <code style=\"background:#edf5fc;padding:.05em .25em;border-radius:3px;\">expected\/metrics.tsv<\/code> \u53ef\u4f9b\u9010\u884c\u6838\u5bf9\u3002\u8981\u91cd\u505a\u6587\u4e2d\u7684\u4e24\u4e2a\u6570\u503c\u7ec3\u4e60\uff0c\u53ef\u7ee7\u7eed\u8fd0\u884c <code style=\"background:#edf5fc;padding:.05em .25em;border-radius:3px;\">Rscript --vanilla checks.R<\/code>\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u672c\u6b21\u4ece\u4e0b\u8f7d\u5305\u590d\u73b0\u7684\u6b65\u9aa4\u662f\u201c\u4ece PureCN \u968f\u5305\u7684\u5019\u9009\u89e3\u4e2d\u5b9e\u9645\u63d0\u53d6\u7eaf\u5ea6\u548c\u500d\u4f53\u201d\u3002Linux x86_64\u3001R 4.3.3 \u7684\u8f93\u51fa\u4e3a\u5019\u9009\u89e3 10\uff0c\u9996\u89e3\u7eaf\u5ea6 0.65\uff0c\u9996\u89e3\u500d\u4f53 1.7290736\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u4ece\u5019\u9009\u89e3\u9010\u4e00\u53d6\u51fa purity \u548c ploidy\uff0c\u5c06\u5b83\u4eec\u753b\u6210\u6210\u5bf9\u7684\u6563\u70b9\u3002\u7b2c\u4e00\u9879\u53ea\u5c55\u793a\u6587\u4ef6\u4e2d\u7684\u7b2c\u4e00\u6761\u5019\u9009\u3002\u8981\u9009\u5b9a\u6700\u7ec8\u89e3\u91ca\uff0c\u8fd8\u9700\u6bd4\u8f83\u5404\u89e3\u7684\u62df\u5408\u8bc1\u636e\u3001\u7b49\u4f4d\u9891\u7387\u4ee5\u53ca\u53ef\u7528\u7684\u75c5\u7406\u7eaf\u5ea6\u4fe1\u606f\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u5b9e\u8dd1\u540e\u7684\u7ecf\u9a8c\u603b\u7ed3<\/h2>\n<p style=\"margin:.5em 0 1em\">PureCN \u968f\u5305\u793a\u4f8b\u4fdd\u5b58\u4e86\u591a\u4e2a\u5019\u9009\u89e3\uff0c\u53ef\u4ee5\u4ece\u6bcf\u4e2a\u89e3\u5206\u522b\u8bfb\u5230\u7eaf\u5ea6\u4e0e\u500d\u4f53\u6570\u3002\u6392\u5728\u524d\u9762\u7684\u89e3\u9002\u5408\u4f18\u5148\u6838\u5bf9\uff0c\u5374\u4e0d\u80fd\u4ec5\u51ed\u6392\u5e8f\u786e\u5b9a\u771f\u5b9e\u80bf\u7624\u7ec4\u6210\u3002\u5e94\u68c0\u67e5\u5176\u4ed6\u5019\u9009\u80fd\u5426\u540c\u6837\u89e3\u91ca\u4e3b\u8981\u7247\u6bb5\uff0c\u518d\u4ea4\u4ee3\u662f\u54ea\u4e9b\u8986\u76d6\u4e0e\u6742\u5408\u4f4d\u70b9\u80fd\u591f\u533a\u5206\u5b83\u4eec\u3002<\/p>\n<p style=\"border-top:1px solid #DAE6F2;margin-top:2em;padding-top:1em;\">\u5f53\u6570\u636e\u4e0e\u4ee3\u7801\u5df2\u7ecf\u5728\u5c0f\u89c4\u6a21\u8f93\u5165\u4e0a\u5bf9\u9f50\uff0c\u540e\u9762\u9700\u8981\u6309\u540c\u4e00\u53e3\u5f84\u5206\u6790\u6574\u6279\u9879\u76ee\u65f6\uff0c\u53ef\u4ee5\u6309\u5b9e\u9645\u4efb\u52a1\u4f7f\u7528<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/compute-services\/\" style=\"color:#185CB7;text-decoration:underline;\" data-ysx-event=\"contact_click\">\u4e91\u751f\u4fe1\u751f\u7269\u4fe1\u606f\u5b66\u5206\u6790\u670d\u52a1\u5668<\/a>\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5047\u8bbe\u80bf\u7624\u533a\u6bb5\u4e09\u4efd\u3001\u6b63\u5e38\u7ec6\u80de\u4e8c\u4efd\uff0c\u7ebf\u6027\u6df7\u5408\u671f\u671b\u4e09\u3001\u4e8c\u70b9\u4e94\u3001\u4e8c\u70b9\u4e8c\u3002<\/p>\n","protected":false},"author":1,"featured_media":68736,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[47,1],"tags":[791,728,785],"class_list":["post-68737","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-r","category-part","tag-purecn","tag-r","tag-785"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/r-guide-purecn-practice-980d17f1.png?fit=1120%2C690&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/comments?post=68737"}],"version-history":[{"count":3,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68737\/revisions"}],"predecessor-version":[{"id":70852,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68737\/revisions\/70852"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/68736"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=68737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=68737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=68737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}