{"id":68769,"date":"2026-12-06T09:01:31","date_gmt":"2026-12-06T01:01:31","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=68769"},"modified":"2026-12-06T09:01:31","modified_gmt":"2026-12-06T01:01:31","slug":"r-guide-decipher-practice","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/r-guide-decipher-practice\/","title":{"rendered":"DECIPHER \u591a\u5e8f\u5217\u6bd4\u5bf9\u7f3a\u53e3\u6210\u7247\uff0c\u600e\u6837\u8fa8\u8ba4\u65b9\u5411\u9519\u4e86\u8fd8\u662f\u6269\u589e\u533a\u4e0d\u540c\uff1f"},"content":{"rendered":"<div class=\"ysx-r-practice\" id=\"ysx-r-decipher\" 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\u7ec4 ASV \u6bd4\u5bf9\u540e\u4e24\u7aef\u51fa\u73b0\u5927\u91cf\u7f3a\u53e3\uff0c\u53ef\u80fd\u6e90\u81ea\u5e8f\u5217\u957f\u77ed\u3001\u65b9\u5411\u6216\u5f15\u7269\u533a\u57df\u4e0d\u4e00\u81f4\u3002\u7c97\u66b4\u88c1\u5230\u6700\u77ed\u5e8f\u5217\u7684\u957f\u5ea6\uff0c\u4f1a\u628a\u7edd\u5927\u591a\u6570\u6837\u672c\u6709\u4fe1\u606f\u7684\u533a\u6bb5\u4e00\u5e76\u5220\u9664\u3002\u5148\u4ece\u5c11\u91cf\u4ee3\u8868\u5e8f\u5217\u770b\u7f3a\u53e3\u4f4d\u7f6e\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">DECIPHER \u7684\u8f93\u5165\u548c\u5206\u6790\u5bf9\u8c61<\/h2>\n<p style=\"margin:.5em 0 1em\">seqs \u4e3a\u540c\u4e00\u533a\u57df\u3001\u65b9\u5411\u5df2\u6838\u9a8c\u7684 Biostrings DNAStringSet\uff0c\u540d\u79f0\u4e0e\u7279\u5f81\u8868\u4e00\u81f4\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5728\u8fdb\u884c\u591a\u5e8f\u5217\u6bd4\u5bf9\u5206\u6790\u65f6\uff0c\u9488\u5bf9DECIPHER\u5305\u4e2dAlignSeqs\u51fd\u6570\u7684\u4f7f\u7528\uff0c\u9700\u8981\u9996\u5148\u660e\u786e\u8f93\u5165\u5e8f\u5217\u7684\u7ed3\u6784\u4e0e\u7279\u6027\u3002\u8f93\u5165\u5bf9\u8c61seqs\u662f\u7ecf\u8fc7\u9884\u5904\u7406\u7684DNAStringSet\u7c7b\u578b\uff0c\u5176\u4e2d\u6240\u6709\u5e8f\u5217\u5747\u6765\u81ea\u540c\u4e00\u6269\u589e\u533a\u57df\u4e14\u65b9\u5411\u4e00\u81f4\u3002\u8be5\u5bf9\u8c61\u5305\u542b\u591a\u4e2a\u5e8f\u5217\u6761\u76ee\uff0c\u6bcf\u4e2a\u6761\u76ee\u5bf9\u5e94\u4e00\u4e2a\u7279\u5b9a\u7684\u6837\u672c\uff0c\u5176\u540d\u79f0\u4e0e\u7279\u5f81\u8868\u4e2d\u7684\u6807\u8bc6\u7b26\u4fdd\u6301\u4e00\u81f4\u3002\u5e8f\u5217\u957f\u5ea6\u5206\u5e03\u9700\u6ee1\u8db3\u6bd4\u5bf9\u8981\u6c42\uff0c\u8fc7\u77ed\u6216\u8fc7\u957f\u7684\u5e8f\u5217\u53ef\u80fd\u5f71\u54cd\u6bd4\u5bf9\u7ed3\u679c\u7684\u51c6\u786e\u6027\u3002\u5728\u6bd4\u5bf9\u524d\uff0c\u5e94\u68c0\u67e5\u5e8f\u5217\u662f\u5426\u5305\u542b\u5f15\u7269\u533a\u57df\u3001\u662f\u5426\u5b58\u5728\u53cd\u5411\u4e92\u8865\u5e8f\u5217\u4ee5\u53ca\u662f\u5426\u6709\u91cd\u53e0\u533a\u3002\u8fd9\u4e9b\u56e0\u7d20\u76f4\u63a5\u5f71\u54cd\u6bd4\u5bf9\u7ed3\u679c\u7684\u89e3\u91ca\uff0c\u5c24\u5176\u662f\u7f3a\u53e3\u7684\u5206\u5e03\u6a21\u5f0f\u3002\u82e5\u5e8f\u5217\u4e2d\u5b58\u5728\u4e0d\u540c\u5f15\u7269\u533a\u57df\u6216\u65b9\u5411\u4e0d\u4e00\u81f4\u7684\u5e8f\u5217\uff0c\u5c06\u5bfc\u81f4\u6bd4\u5bf9\u7ed3\u679c\u51fa\u73b0\u5f02\u5e38\u7f3a\u53e3\uff0c\u4ece\u800c\u5f71\u54cd\u540e\u7eed\u5206\u6790\u7684\u53ef\u9760\u6027\u3002\u56e0\u6b64\uff0c\u786e\u4fdd\u8f93\u5165\u5e8f\u5217\u5177\u6709\u7edf\u4e00\u7279\u5f81\u662f\u83b7\u5f97\u51c6\u786e\u6bd4\u5bf9\u7ed3\u679c\u7684\u524d\u63d0\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u6bd4\u5bf9\u8fc7\u7a0b\u7684\u6838\u5fc3\u662fAlignSeqs\u51fd\u6570\u7684\u8c03\u7528\uff0c\u8be5\u51fd\u6570\u901a\u8fc7\u591a\u8fdb\u7a0b\u5e76\u884c\u5904\u7406\u63d0\u9ad8\u6548\u7387\u3002\u5728\u8c03\u7528\u65f6\uff0c\u8bbe\u5b9aprocessors=1\u4ee5\u786e\u4fdd\u8f93\u51fa\u7684\u53ef\u91cd\u590d\u6027\uff0cverbose=FALSE\u907f\u514d\u5197\u4f59\u4fe1\u606f\u5e72\u6270\u3002\u8c03\u7528\u540e\u8fd4\u56de\u7684\u6bd4\u5bf9\u7ed3\u679c\u5bf9\u8c61aln\u662fDECIPHER\u5305\u4e2d\u5b9a\u4e49\u7684\u591a\u91cd\u5e8f\u5217\u6bd4\u5bf9\u5bf9\u8c61\u3002\u8be5\u5bf9\u8c61\u5305\u542b\u6240\u6709\u8f93\u5165\u5e8f\u5217\u7684\u6bd4\u5bf9\u4fe1\u606f\uff0c\u5176\u7ed3\u6784\u4e3a\u77e9\u9635\u5f62\u5f0f\uff0c\u6bcf\u4e00\u884c\u4ee3\u8868\u4e00\u4e2a\u5e8f\u5217\uff0c\u6bcf\u4e00\u5217\u4ee3\u8868\u6bd4\u5bf9\u4f4d\u7f6e\u3002\u901a\u8fc7as.matrix()\u51fd\u6570\u5c06\u6bd4\u5bf9\u5bf9\u8c61\u8f6c\u6362\u4e3a\u6807\u51c6\u77e9\u9635\uff0c\u4fbf\u4e8e\u540e\u7eed\u7684\u5217\u5206\u6790\u3002\u77e9\u9635\u4e2d\u6bcf\u4e2a\u4f4d\u7f6e\u7684\u5b57\u7b26\u4ee3\u8868\u8be5\u4f4d\u70b9\u7684\u78b1\u57fa\u6216\u7f3a\u53e3\u3002\u7f3a\u53e3\u5728\u77e9\u9635\u4e2d\u4ee5\u201c-\u201d\u8868\u793a\uff0c\u5176\u4ed6\u5b57\u7b26\u5219\u4ee3\u8868\u76f8\u5e94\u78b1\u57fa\u3002\u901a\u8fc7colMeans()\u51fd\u6570\u8ba1\u7b97\u6bcf\u5217\u4e2d\u7f3a\u53e3\u51fa\u73b0\u7684\u6bd4\u4f8b\uff0c\u53ef\u4ee5\u5feb\u901f\u8bc6\u522b\u6bd4\u5bf9\u4e2d\u7f3a\u53e3\u5bc6\u96c6\u7684\u533a\u57df\u3002\u5bf9\u7f3a\u53e3\u5206\u5e03\u7684\u89c2\u5bdf\u662f\u5224\u65ad\u6bd4\u5bf9\u8d28\u91cf\u7684\u5173\u952e\u6b65\u9aa4\uff0c\u5c24\u5176\u5728\u5904\u7406\u5f15\u7269\u533a\u57df\u6216\u6269\u589e\u533a\u65f6\uff0c\u7f3a\u53e3\u7684\u5206\u5e03\u6a21\u5f0f\u5bf9\u7ed3\u679c\u89e3\u91ca\u5177\u6709\u51b3\u5b9a\u6027\u5f71\u54cd\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u7528 <code>DNAStringSet<\/code> \u8bfb\u5165\u5e8f\u5217\uff0c\u5148\u68c0\u67e5\u65b9\u5411\u3001\u957f\u5ea6\u548c\u6269\u589e\u533a\u57df\uff0c\u518d\u7528 <code>AlignSeqs()<\/code> \u591a\u5e8f\u5217\u6bd4\u5bf9\uff0c\u62bd\u67e5\u7f3a\u53e3\u5bc6\u96c6\u5217\u3002 <a href=\"https:\/\/bioconductor.org\/packages\/release\/bioc\/manuals\/DECIPHER\/man\/DECIPHER.pdf\" style=\"color:#185CB7;text-decoration:underline;\">DECIPHER \u5b98\u65b9\u51fd\u6570\u624b\u518c<\/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;\">aln &lt;- DECIPHER::AlignSeqs(seqs,processors=1,verbose=FALSE)\nmat &lt;- as.matrix(aln)\nhead(colMeans(mat==\"-\"))\n<\/code><\/pre>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u4e09\u6761\u5e8f\u5217\u5728\u540c\u4e00\u5217\u7684\u7f3a\u53e3\u6bd4\u4f8b<\/h2>\n<p style=\"margin:.5em 0 1em\">\u4e09\u6761\u77ed\u5e8f\u5217\u67d0\u5217\u6709\u96f6\u3001\u4e00\u3001\u4e8c\u4e2a\u7f3a\u53e3\uff0c\u6bd4\u4f8b\u5206\u522b\u96f6\u3001\u4e09\u5206\u4e4b\u4e00\u3001\u4e09\u5206\u4e4b\u4e8c\u3002\u7aef\u90e8\u7f3a\u6d4b\u548c\u771f\u5b9e\u5185\u90e8\u63d2\u5165\u7f3a\u5931\u7684\u610f\u4e49\u4e0d\u540c\uff0c\u4e0d\u80fd\u4ec5\u6309\u4e00\u4e2a\u5168\u5c40\u6bd4\u4f8b\u88c1\u53bb\u6709\u8bc1\u636e\u7684\u533a\u57df\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;- 100*c(0\/3,1\/3,2\/3)\nnames(v) &lt;- c(\"\u5168\u6709\u78b1\u57fa\", \"\u7f3a\u4e00\u6761\", \"\u7f3a\u4e24\u6761\")\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;\">\u5168\u6709\u78b1\u57fa<\/td>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">0%<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">\u7f3a\u4e00\u6761<\/td>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">33.33%<\/td>\n<\/tr>\n<tr>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">\u7f3a\u4e24\u6761<\/td>\n<td style=\"border-bottom:1px solid #CBDEEB;text-align:left;padding:8px;background:#FFF;\">66.67%<\/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-decipher-practice-a659ca14.png?resize=1120%2C690&#038;ssl=1\" alt=\"\u4e09\u6761\u5e8f\u5217\u5728\u540c\u4e00\u5217\u7684\u7f3a\u53e3\u6bd4\u4f8b\u3002\u5168\u6709\u78b1\u57fa 0%\uff0c\u7f3a\u4e00\u6761 33.33%\uff0c\u7f3a\u4e24\u6761 66.67%\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;\">\u4e24\u7aef\u7f3a\u53e3\u548c\u4e2d\u95f4\u7f3a\u53e3\u5982\u4f55\u533a\u522b\uff1f<\/h2>\n<p style=\"margin:.5em 0 1em\">\u8fd9\u6761\u6559\u5b66\u5e8f\u5217\u5de6\u7aef\u4e24\u4e2a\u7f3a\u53e3\u3001\u53f3\u7aef\u4e00\u4e2a\uff0c\u975e\u7f3a\u53e3\u533a\u95f4\u5185\u8fd8\u6709\u4e00\u4e2a\u7f3a\u53e3\u3002\u4ec5\u62a5\u544a\u603b\u7f3a\u53e3\u6570\u4f1a\u63a9\u76d6\u4e24\u79cd\u4e0d\u540c\u60c5\u51b5\u3002\u5148\u6838\u5b9e\u5f15\u7269\u65b9\u5411\u548c\u5171\u540c\u6269\u589e\u533a\uff0c\u518d\u5bf9\u5185\u90e8\u7f3a\u53e3\u548c\u53ef\u80fd\u7684\u540c\u6e90\u63d2\u5165\u5355\u72ec\u5206\u6790\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;\">x &lt;- strsplit(\"--AC-GT-\",\"\")[[1]]\nused &lt;- which(x!=\"-\")\nc(left=min(used)-1,right=length(x)-max(used),internal=sum(x[min(used):max(used)]==\"-\"))\n<\/code><\/pre>\n<p style=\"margin:.5em 0 1em\">\u5728\u6bd4\u5bf9\u5206\u6790\u4e2d\uff0c\u82e5\u8f93\u5165\u5e8f\u5217\u4e2d\u5b58\u5728\u65b9\u5411\u4e0d\u4e00\u81f4\u7684\u5e8f\u5217\uff0c\u4f1a\u5bfc\u81f4\u6bd4\u5bf9\u7ed3\u679c\u51fa\u73b0\u5f02\u5e38\u7f3a\u53e3\u5206\u5e03\u3002\u4f8b\u5982\uff0c\u67d0\u4e9b\u5e8f\u5217\u53ef\u80fd\u56e0\u53cd\u5411\u4e92\u8865\u800c\u5448\u73b0\u955c\u50cf\u7f3a\u53e3\u6a21\u5f0f\uff0c\u4f7f\u6bd4\u5bf9\u7ed3\u679c\u5728\u89c6\u89c9\u4e0a\u4ea7\u751f\u8bef\u5bfc\u3002\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u7f3a\u53e3\u5e76\u975e\u6765\u6e90\u4e8e\u771f\u5b9e\u53d8\u5f02\uff0c\u800c\u662f\u7531\u4e8e\u5e8f\u5217\u65b9\u5411\u9519\u8bef\u9020\u6210\u7684\u6bd4\u5bf9\u504f\u5dee\u3002\u89c2\u5bdf\u6bd4\u5bf9\u77e9\u9635\u65f6\uff0c\u82e5\u53d1\u73b0\u67d0\u5217\u7f3a\u53e3\u5448\u73b0\u5bf9\u79f0\u5206\u5e03\uff0c\u5e94\u6000\u7591\u662f\u5426\u5f15\u5165\u4e86\u53cd\u5411\u5e8f\u5217\u3002\u6b64\u65f6\u5e94\u91cd\u65b0\u6838\u5bf9\u8f93\u5165\u5e8f\u5217\u7684\u65b9\u5411\u4fe1\u606f\uff0c\u786e\u4fdd\u6240\u6709\u5e8f\u5217\u5747\u5904\u4e8e\u540c\u4e00\u4f4d\u70b9\u3002\u901a\u8fc7\u6bd4\u5bf9\u524d\u7684\u9884\u5904\u7406\u68c0\u67e5\uff0c\u53ef\u4ee5\u6709\u6548\u907f\u514d\u56e0\u65b9\u5411\u4e0d\u4e00\u81f4\u5bfc\u81f4\u7684\u9519\u8bef\u5224\u65ad\u3002\u82e5\u672a\u8fdb\u884c\u65b9\u5411\u6838\u67e5\uff0c\u6bd4\u5bf9\u7ed3\u679c\u5c06\u96be\u4ee5\u89e3\u91ca\uff0c\u751a\u81f3\u53ef\u80fd\u5f97\u51fa\u9519\u8bef\u7684\u751f\u7269\u5b66\u7ed3\u8bba\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u6bd4\u5bf9\u7ed3\u679c\u4e2d\u82e5\u51fa\u73b0\u7f3a\u53e3\u5206\u5e03\u4e0d\u5747\u7684\u6a21\u5f0f\uff0c\u5e94\u68c0\u67e5\u662f\u5426\u56e0\u6837\u672c\u4e2d\u5b58\u5728\u6781\u77ed\u5e8f\u5217\u6240\u81f4\u3002\u8fd9\u4e9b\u5e8f\u5217\u53ef\u80fd\u56e0\u957f\u5ea6\u8fc7\u77ed\uff0c\u5bfc\u81f4\u6bd4\u5bf9\u65f6\u65e0\u6cd5\u51c6\u786e\u5bf9\u9f50\uff0c\u4ece\u800c\u5728\u6bd4\u5bf9\u77e9\u9635\u4e2d\u51fa\u73b0\u5f02\u5e38\u7f3a\u53e3\u3002\u82e5\u67d0\u5217\u4e2d\u7f3a\u53e3\u6bd4\u4f8b\u6781\u9ad8\uff0c\u4f46\u8be5\u5217\u5728\u540c\u6e90\u533a\u4e2d\u7f3a\u4e4f\u4fdd\u5b88\u6027\uff0c\u5219\u5e94\u8003\u8651\u662f\u5426\u56e0\u77ed\u5e8f\u5217\u5e72\u6270\u6240\u81f4\u3002\u6b64\u65f6\u5e94\u901a\u8fc7\u6bd4\u5bf9\u524d\u7684\u5e8f\u5217\u957f\u5ea6\u7b5b\u9009\uff0c\u53bb\u9664\u957f\u5ea6\u5f02\u5e38\u7684\u5e8f\u5217\u3002\u82e5\u4fdd\u7559\u8fd9\u4e9b\u5e8f\u5217\uff0c\u6bd4\u5bf9\u7ed3\u679c\u5c06\u53d7\u5176\u5f71\u54cd\uff0c\u5bfc\u81f4\u6574\u4f53\u8fb9\u754c\u5224\u65ad\u5931\u51c6\u3002\u901a\u8fc7\u89c2\u5bdf\u6bd4\u5bf9\u77e9\u9635\u4e2d\u7f3a\u53e3\u5206\u5e03\u7684\u96c6\u4e2d\u533a\u57df\uff0c\u53ef\u8bc6\u522b\u51fa\u6b64\u7c7b\u5e72\u6270\u5e8f\u5217\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u5bf9\u4e09\u6761\u5df2\u77e5\u76f8\u4f3c\u7684\u77ed DNA \u8fd0\u884c AlignSeqs<\/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;\">s&lt;-Biostrings::DNAStringSet(c(a=\"ACGATCGTACGTATGCA\",b=\"ACGATCGTTCGTATGCA\",c=\"ACGATCGTACGTGCA\"))\nal&lt;-DECIPHER::AlignSeqs(s,processors=1,verbose=FALSE)\nm&lt;-as.matrix(al)\nc(nrow(m),ncol(m),sum(m==\"-\"))\n<\/code><\/pre>\n<p style=\"margin:.5em 0 1em\">\u5728 R 4.5.2\u3001DECIPHER 3.6.0 \u4e2d\u8fd0\u884c\uff0c\u8f93\u51fa\u4f9d\u6b21\u4e3a\u5e8f\u5217\u6570 3\uff0c\u6bd4\u5bf9\u5bbd\u5ea6 17\uff0c\u7f3a\u53e3\u6570 2\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\">\u4e0d\u540c\u5f15\u7269\u533a\u57df\u3001\u53cd\u5411\u5e8f\u5217\u548c\u6781\u77ed\u7247\u6bb5\u4f1a\u4ea7\u751f\u96be\u89e3\u91ca\u7684\u6bd4\u5bf9\u3002\u5148\u53d6\u4ee3\u8868\u5e8f\u5217\u6838\u67e5\u540c\u6e90\u533a\uff0c\u518d\u51b3\u5b9a\u4fdd\u7559\u54ea\u4e9b\u8f93\u5165\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u82e5\u6bd4\u5bf9\u7ed3\u679c\u4e2d\u5b58\u5728\u7aef\u90e8\u7f3a\u53e3\u5bc6\u96c6\u533a\u57df\uff0c\u53ef\u5c1d\u8bd5\u8c03\u6574\u6bd4\u5bf9\u53c2\u6570\uff0c\u5982\u8bbe\u7f6egapOpening\u4e0egapExtension\u503c\uff0c\u89c2\u5bdf\u7f3a\u53e3\u5206\u5e03\u662f\u5426\u53d1\u751f\u53d8\u5316\u3002\u82e5\u7f3a\u53e3\u6bd4\u4f8b\u4e0b\u964d\uff0c\u8bf4\u660e\u539f\u53c2\u6570\u8bbe\u7f6e\u5bfc\u81f4\u7f3a\u53e3\u8fc7\u5ea6\u6269\u5c55\u3002\u901a\u8fc7\u5bf9\u6bd4\u4e0d\u540cgap\u53c2\u6570\u4e0b\u7684\u6bd4\u5bf9\u7ed3\u679c\uff0c\u53ef\u5224\u65ad\u6bd4\u5bf9\u662f\u5426\u53d7\u53c2\u6570\u5f71\u54cd\u3002\u82e5\u7f3a\u53e3\u5206\u5e03\u4fdd\u6301\u4e00\u81f4\uff0c\u5219\u8bf4\u660e\u6bd4\u5bf9\u7ed3\u679c\u5177\u6709\u7a33\u5b9a\u6027\u3002\u5728\u8c03\u6574\u53c2\u6570\u540e\uff0c\u5e94\u91cd\u65b0\u8ba1\u7b97\u7f3a\u53e3\u6bd4\u4f8b\uff0c\u786e\u4fdd\u6bd4\u5bf9\u8fb9\u754c\u5408\u7406\u3002\u82e5\u7f3a\u53e3\u6bd4\u4f8b\u672a\u53d1\u751f\u663e\u8457\u53d8\u5316\uff0c\u5219\u8bf4\u660e\u6bd4\u5bf9\u7ed3\u679c\u4e0d\u53d7\u53c2\u6570\u5f71\u54cd\uff0c\u4e3b\u7ed3\u8bba\u6210\u7acb\u3002\u901a\u8fc7\u53c2\u6570\u654f\u611f\u6027\u5206\u6790\uff0c\u53ef\u589e\u5f3a\u6bd4\u5bf9\u7ed3\u679c\u7684\u53ef\u4fe1\u5ea6\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u5728\u6bd4\u5bf9\u7ed3\u679c\u4e2d\u82e5\u53d1\u73b0\u5185\u90e8\u7f3a\u53e3\u5206\u5e03\u4e0d\u5747\uff0c\u5e94\u5c1d\u8bd5\u4f7f\u7528\u4e0d\u540c\u5e8f\u5217\u957f\u5ea6\u7684\u5b50\u96c6\u8fdb\u884c\u6bd4\u5bf9\uff0c\u4ee5\u9a8c\u8bc1\u4e3b\u7ed3\u8bba\u662f\u5426\u6210\u7acb\u3002\u82e5\u5728\u8f83\u5c0f\u5b50\u96c6\u4e2d\u7f3a\u53e3\u5206\u5e03\u6a21\u5f0f\u4e00\u81f4\uff0c\u5219\u8bf4\u660e\u4e3b\u7ed3\u8bba\u5177\u6709\u4ee3\u8868\u6027\u3002\u82e5\u4e0d\u540c\u5b50\u96c6\u6bd4\u5bf9\u7ed3\u679c\u5dee\u5f02\u8f83\u5927\uff0c\u5219\u8bf4\u660e\u4e3b\u7ed3\u8bba\u53ef\u80fd\u53d7\u4e2a\u522b\u5e8f\u5217\u5f71\u54cd\u3002\u901a\u8fc7\u5b50\u96c6\u5206\u6790\uff0c\u53ef\u8bc6\u522b\u51fa\u5bf9\u6574\u4f53\u6bd4\u5bf9\u7ed3\u679c\u5f71\u54cd\u8f83\u5927\u7684\u5e8f\u5217\u3002\u82e5\u67d0\u5e8f\u5217\u5bfc\u81f4\u6bd4\u5bf9\u7ed3\u679c\u663e\u8457\u53d8\u5316\uff0c\u5e94\u8003\u8651\u5176\u662f\u5426\u4e3a\u5f02\u5e38\u5e8f\u5217\uff0c\u6216\u662f\u5426\u5e94\u8c03\u6574\u6bd4\u5bf9\u53c2\u6570\u3002\u901a\u8fc7\u5bf9\u6bd4\u4e0d\u540c\u5b50\u96c6\u7684\u6bd4\u5bf9\u7ed3\u679c\uff0c\u53ef\u5224\u65ad\u6bd4\u5bf9\u662f\u5426\u7a33\u5b9a\u3002\u82e5\u6bd4\u5bf9\u7ed3\u679c\u5728\u4e0d\u540c\u5b50\u96c6\u4e2d\u4fdd\u6301\u4e00\u81f4\uff0c\u5219\u8bf4\u660e\u4e3b\u7ed3\u8bba\u5177\u6709\u666e\u904d\u6027\u3002<\/p>\n<h2 style=\"margin:2em 0 .6em;color:#205CAC;font-size:1.38em;line-height:1.5;\">\u6362\u5230\u771f\u5b9e\u6837\u672c\u65f6\u600e\u4e48\u9a8c\u8bc1<\/h2>\n<p style=\"margin:.5em 0 1em\">\u6311\u51fa\u6bd4\u5bf9\u91cc\u542b\u5927\u6bb5\u7f3a\u53e3\u7684\u4e24\u6761\u5e8f\u5217\uff0c\u5148\u786e\u5b9a\u5b83\u4eec\u662f\u5426\u8986\u76d6\u540c\u4e00\u6269\u589e\u533a\u57df\u3001\u662f\u5426\u9700\u8981\u53cd\u5411\u4e92\u8865\uff0c\u518d\u56de\u67e5\u672a\u7ecf\u6bd4\u5bf9\u7684\u771f\u5b9e\u957f\u5ea6\u3002\u4ec5\u4e00\u6761\u5728\u672b\u7aef\u7f3a\u5931\u4e0e\u6574\u4e2a\u7c7b\u7fa4\u5171\u4eab\u5185\u90e8\u63d2\u7f3a\uff0c\u53cd\u6620\u7684\u7ed3\u6784\u4e0d\u540c\u3002\u53ef\u5728\u79fb\u9664\u5f15\u7269\u3001\u7edf\u4e00\u65b9\u5411\u540e\u91cd\u505a\u5c0f\u96c6\u5408\uff0c\u68c0\u67e5\u540c\u4e00\u4f4d\u7f6e\u7684\u4fdd\u5b88\u78b1\u57fa\u548c\u7f3a\u53e3\u662f\u5426\u4ecd\u51fa\u73b0\u3002\u4fdd\u5b58\u4fee\u526a\u524d\u540e\u5750\u6807\u6620\u5c04\uff0c\u540e\u7eed\u624d\u77e5\u9053\u67d0\u4e2a\u53ef\u7591\u53d8\u5f02\u5728\u539f\u5e8f\u5217\u4e0a\u7684\u4f4d\u7f6e\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u4ece\u5904\u7406\u524d\u7684\u8f93\u5165\u7ed9\u6bcf\u6761\u5e8f\u5217\u3001\u7279\u5f81\u6216\u6837\u672c\u4e00\u4e2a\u7a33\u5b9a\u540d\u5b57\u3002\u5728\u5904\u7406\u540e\u9010\u9879\u6807\u6ce8\u4fdd\u7559\u3001\u4e22\u5f03\u548c\u6682\u65f6\u65e0\u6cd5\u6bd4\u8f83\u7684\u539f\u56e0\u3002\u9700\u8981\u628a ID \u5e26\u5230\u53e6\u4e00\u5f20\u8868\u65f6\uff0c\u7528\u540d\u5b57\u505a\u663e\u5f0f\u8fde\u63a5\uff0c\u968f\u540e\u6838\u5bf9\u5339\u914d\u524d\u540e\u6bcf\u4e2a\u6837\u672c\u7684\u603b\u91cf\u3002\u4e00\u4e2a\u5168\u5c40\u4fdd\u7559\u7387\u53ef\u80fd\u5f88\u9ad8\uff0c\u5374\u521a\u597d\u628a\u4e00\u4e2a\u5c0f\u6837\u672c\u4e2d\u6700\u5e38\u89c1\u7684\u7279\u5f81\u5168\u90e8\u4e22\u6389\u3002\u8fd9\u65f6\u4e0b\u6e38\u8ddd\u79bb\u3001\u76f8\u5bf9\u4e30\u5ea6\u6216\u6811\u4e0a\u7684\u4f4d\u7f6e\u90fd\u4f1a\u53d7\u5230\u5f71\u54cd\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u6362\u4e00\u4e2a\u5408\u7406\u7684\u8fc7\u6ee4\u89c4\u5219\u65f6\uff0c\u4fdd\u7559\u4e24\u6b21\u90fd\u51fa\u73b0\u7684\u5bf9\u8c61\u4f5c\u5bf9\u7167\u3002\u82e5\u89c6\u89c9\u4e0a\u53d8\u5316\u5f88\u5927\uff0c\u5148\u770b\u6539\u53d8\u7684\u662f\u7279\u5f81\u96c6\u5408\u3001\u6bcf\u6761\u5e8f\u5217\u7684\u6709\u6548\u8986\u76d6\uff0c\u8fd8\u662f\u540c\u4e00\u5bf9\u8c61\u5728\u4e24\u79cd\u8bbe\u7f6e\u4e2d\u7684\u4f30\u8ba1\u503c\u3002\u62a5\u544a\u65f6\u8bf4\u660e\u54ea\u4e00\u9879\u7ed3\u8bba\u5728\u4e24\u6b21\u90fd\u6210\u7acb\uff0c\u54ea\u4e00\u9879\u53ea\u5728\u7279\u5b9a\u95e8\u69db\u51fa\u73b0\u3002\u989d\u5916\u7684\u5b9e\u9a8c\u91cd\u590d\u6216\u72ec\u7acb\u6d4b\u91cf\u5e94\u8be5\u9488\u5bf9\u540e\u8005\uff0c\u8fd9\u6bd4\u6cdb\u6cdb\u5730\u8bf4\u201c\u9700\u8981\u8fdb\u4e00\u6b65\u9a8c\u8bc1\u201d\u66f4\u80fd\u6307\u660e\u4e0b\u4e00\u6b65\u91c7\u4ec0\u4e48\u6837\u672c\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\/083-decipher-code-a4e645feb663698d.zip\">\u4e0b\u8f7d\u672c\u7bc7 R \u4ee3\u7801\uff08ZIP\uff0c4.1 KiB\uff09<\/a> \u00b7 <a style=\"color:#1458a5;text-decoration:underline;\" href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/r-practice-labs\/083-decipher-data-a3fd2787d7acbff1.zip\">\u4e0b\u8f7d\u914d\u5957\u793a\u4f8b\u6570\u636e\uff08ZIP\uff0c1.1 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;\">083-decipher<\/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\u5bf9\u4e09\u6761\u5df2\u77e5\u76f8\u4f3c\u7684\u77ed DNA \u8fd0\u884c AlignSeqs\u201d\u3002Linux x86_64\u3001R 4.5.2\u3001DECIPHER 3.6.0 \u7684\u8f93\u51fa\u4e3a\u5e8f\u5217\u6570 3\uff0c\u6bd4\u5bf9\u5bbd\u5ea6 17\uff0c\u7f3a\u53e3\u6570 2\u3002<\/p>\n<p style=\"margin:.5em 0 1em\">\u4efb\u9009\u4e00\u4e2a\u6bd4\u5bf9\u4e2d\u6709\u7f3a\u53e3\u7684\u5217\uff0c\u68c0\u67e5\u5176\u4e24\u4fa7\u662f\u5426\u4e3a\u4f4e\u590d\u6742\u5ea6\u6216\u91cd\u590d\u5e8f\u5217\uff0c\u5e76\u8bb0\u4e0b\u63d2\u5165\u7f3a\u53e3\u7684\u662f\u54ea\u4e9b\u5e8f\u5217\u3002\u66f4\u6362\u6bd4\u5bf9\u8bbe\u7f6e\u540e\u6309\u539f\u59cb\u5e8f\u5217\u5750\u6807\u6838\u5bf9\u5bf9\u5e94\u5173\u7cfb\uff0c\u4e0d\u5b9c\u53ea\u6bd4\u8f83\u8f93\u51fa\u7684\u603b\u5bbd\u5ea6\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\">\u4e09\u6761\u77ed\u5e8f\u5217\u7ecf\u8fc7\u6bd4\u5bf9\u540e\u5728\u5341\u4e03\u5217\u4e2d\u51fa\u73b0\u4e24\u4e2a\u7f3a\u53e3\u3002\u6570\u76ee\u53ef\u4ee5\u6838\u5bf9\uff0c\u7f3a\u53e3\u5230\u5e95\u4ee3\u8868\u672b\u7aef\u8986\u76d6\u4e0d\u8db3\u8fd8\u662f\u5171\u540c\u533a\u57df\u5185\u7684\u63d2\u5165\u7f3a\u5931\uff0c\u5219\u9700\u8981\u56de\u770b\u4f4d\u7f6e\u3002\u628a\u8fd9\u4e24\u7c7b\u60c5\u5f62\u5206\u522b\u7edf\u8ba1\u540e\uff0c\u518d\u51b3\u5b9a\u54ea\u4e9b\u533a\u6bb5\u9002\u5408\u8fdb\u5165\u540e\u7eed\u7cfb\u7edf\u6811\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>\u4e09\u6761\u77ed\u5e8f\u5217\u67d0\u5217\u6709\u96f6\u3001\u4e00\u3001\u4e8c\u4e2a\u7f3a\u53e3\uff0c\u6bd4\u4f8b\u5206\u522b\u96f6\u3001\u4e09\u5206\u4e4b\u4e00\u3001\u4e09\u5206\u4e4b\u4e8c\u3002<\/p>\n","protected":false},"author":1,"featured_media":68768,"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":[809,728,807],"class_list":["post-68769","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-r","category-part","tag-decipher","tag-r","tag-807"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/r-guide-decipher-practice-a659ca14.png?fit=1120%2C690&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68769","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=68769"}],"version-history":[{"count":2,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68769\/revisions"}],"predecessor-version":[{"id":70878,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/68769\/revisions\/70878"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/68768"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=68769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=68769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=68769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}