{"id":72399,"date":"2026-11-17T13:34:39","date_gmt":"2026-11-17T05:34:39","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=72399"},"modified":"2026-11-17T13:34:39","modified_gmt":"2026-11-17T05:34:39","slug":"ysx-sc-practice-098-downsample-paired-fastq","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/ysx-sc-practice-098-downsample-paired-fastq\/","title":{"rendered":"\u628a\u540c\u4e00\u4efd\u6587\u5e93\u7684 reads \u51cf\u534a\uff0c\u54ea\u4e9b\u7ec6\u80de\u7c7b\u578b\u548c\u6807\u8bb0\u57fa\u56e0\u6700\u5148\u6d88\u5931\uff1f"},"content":{"rendered":"<div style=\"max-width:820px;margin:0 auto;color:#263a47;font-size:17px;line-height:1.85;overflow-wrap:break-word\">\n<p>\u628a\u4e00\u5f20 UMI \u77e9\u9635\u91cc\u7684\u6bcf\u4e2a\u6570\u5b57\u9664\u4ee5\u4e8c\uff0c\u5e76\u4e0d\u80fd\u56de\u7b54\u201c\u5f53\u521d\u5c11\u6d4b\u4e00\u534a reads\uff0c\u4f1a\u635f\u5931\u4ec0\u4e48\u201d\u3002\u56e0\u4e3a\u539f\u77e9\u9635\u5df2\u7ecf\u628a\u591a\u4e2a\u6d4b\u5230\u540c\u4e00\u5206\u5b50\u7684\u8bfb\u6bb5\u5408\u5e76\u8fc7\u4e86\uff0c\u4e5f\u5df2\u7ecf\u7b5b\u6389\u4e86\u4e00\u4e9b\u6761\u7801\u3002\u6211\u4eec\u51c6\u5907\u4e86\u4e00\u4efd\u5f88\u5c0f\u4f46\u5b8c\u6574\u7684\u53cc\u7aef FASTQ\u3002\u56db\u5343\u4e8c\u767e\u516b\u5341\u516d\u5bf9\u8bfb\u6bb5\u4ece\u5934\u5904\u7406\u540e\u5f97\u5230\u4e24\u5343\u4e94\u767e\u4e94\u5341\u4e00\u4e2a\u4e0d\u540c\u5206\u5b50\u3002\u7b2c\u4e00\u6b21\u4ee5\u4e00\u534a\u6982\u7387\u62bd\u8bfb\u5bf9\uff0c\u7559\u4e0b\u4e24\u5343\u4e00\u767e\u4e03\u5341\u516b\u5bf9\uff0c\u5f97\u5230\u4e00\u5343\u516d\u767e\u516b\u5341\u4e09\u4e2a\u5206\u5b50\u3002\u539f\u5148\u4e94\u4e2a\u901a\u8fc7\u95e8\u69db\u7684\u7a00\u6709\u7ec6\u80de\u6761\u7801\u5168\u90fd\u6389\u51fa\uff0c\u53e6\u6709\u4e00\u9897\u4ecd\u901a\u8fc7\u95e8\u69db\u7684 T \u7ec6\u80de\u6761\u7801\u4e22\u5931\u4e86\u6807\u8bb0\u3002\u4e24\u7c7b\u635f\u5931\u503c\u5f97\u5206\u522b\u6570\u3002<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"1240\" height=\"800\" style=\"width:100%;height:auto;display:block;border-radius:12px\" alt=\"\u628a\u540c\u4e00\u6587\u5e93\u7684 reads \u51cf\u534a\uff0c\u5148\u5206\u6e05\u4e22\u7684\u662f\u6761\u7801\uff0c\u8fd8\u662f\u6807\u8bb0\u30024,286 \u5bf9 FASTQ\uff0c\u5b8c\u6574\u6570\u636e\u5f97\u5230 2,551 \u4e2a\u5206\u5b50\uff1b\u4fdd\u7559 2,178 \u5bf9\uff0c\u5f97\u5230 1,683 \u4e2a\u4e0d\u540c\u5206\u5b50\uff1b\u539f\u5148\u8fc7\u7ebf 5 \u9897\uff0c\u4e09\u6b21\u51cf\u534a\u540e\u5747\u65e0\u6761\u7801\u8fc7\u7ebf\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-098-downsample-paired-fastq.png?resize=1240%2C800&#038;ssl=1\" \/><\/p>\n<p><a download style=\"display:inline-block;margin:3px;padding:4px 10px;border:1px solid #bad0dd;border-radius:5px\" href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-098-downsample-paired-fastq.zip\">\u4e0b\u8f7d\u5b8c\u6574\u4ee3\u7801\u3001\u793a\u4f8b\u6570\u636e\u4e0e\u53c2\u8003\u8f93\u51fa\uff08ZIP\uff09<\/a> \u00b7 <a download style=\"display:inline-block;margin:3px;padding:4px 10px;border:1px solid #bad0dd;border-radius:5px\" href=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-098-downsample-paired-fastq.pdf\">\u4e0b\u8f7d\u56fe\u6587\u64cd\u4f5c\u624b\u518c\uff08PDF\uff09<\/a><\/p>\n<h2>\u4e3a\u4ec0\u4e48\u8981\u4ece\u4e00\u5bf9\u8bfb\u6bb5\u5f00\u59cb<\/h2>\n<p>\u5728\u8fd9\u4e2a\u900f\u660e\u7684\u6559\u5b66\u5316\u5b66\u8bbe\u8ba1\u91cc\uff0c\u7b2c\u4e00\u7aef\u7684\u524d\u5341\u4e2a\u78b1\u57fa\u8868\u793a\u7ec6\u80de\u6761\u7801\uff0c\u63a5\u4e0b\u6765\u7684\u516b\u4e2a\u78b1\u57fa\u8868\u793a\u5206\u5b50\u6807\u8bc6\uff0c\u7b2c\u4e8c\u7aef\u5728\u4e00\u6761\u865a\u62df\u8f6c\u5f55\u672c\u4e0a\u7ed9\u51fa\u4e09\u5341\u4e2a\u78b1\u57fa\u3002\u771f\u5b9e\u5e73\u53f0\u7684\u8bfb\u53d6\u957f\u5ea6\u3001\u6761\u7801\u4f4d\u7f6e\u548c\u6587\u5e93\u7ed3\u6784\u56e0\u7248\u672c\u800c\u5f02\uff0c\u4e0d\u80fd\u7167\u6284\u793a\u4f8b\u5750\u6807\u3002\u6211\u4eec\u8fd8\u63d0\u4f9b\u5fae\u578b\u53c2\u8003\u5e8f\u5217\u4e0e\u56db\u79cd\u4eba\u5de5\u57fa\u56e0\uff0c\u4f7f\u8bfb\u8005\u53ef\u4ee5\u7528\u8089\u773c\u68c0\u67e5\u82e5\u5e72\u8bfb\u6bb5\u3002\u5b83\u4eec\u6ca1\u6709\u6a21\u62df\u6d4b\u5e8f\u9519\u8bef\u3001\u526a\u63a5\u3001\u591a\u91cd\u6bd4\u5bf9\u6216\u771f\u5b9e\u57fa\u56e0\u7ec4\u80cc\u666f\u3002\u8fd9\u91cc\u6709\u610f\u628a\u5b9a\u4f4d\u95ee\u9898\u505a\u5f97\u7b80\u5355\uff0c\u8ba9\u7edf\u8ba1\u5dee\u522b\u53ef\u4ee5\u5f52\u56e0\u5230\u62bd\u6837\u548c\u53bb\u91cd\uff0c\u800c\u4e0d\u4f1a\u88ab\u590d\u6742\u53c2\u8003\u6df7\u6dc6\u3002<a href=\"https:\/\/www.10xgenomics.com\/support\/software\/cell-ranger\/latest\/analysis\/cr-specifying-fastqs\">10x \u7684 FASTQ \u8f93\u5165\u8bf4\u660e<\/a><\/p>\n<p>\u8bfb\u53d6\u65f6\u4e24\u4efd FASTQ \u540c\u6b65\u5411\u524d\u8d70\uff0c\u5148\u6838\u5bf9\u8bfb\u540d\u3001\u5e8f\u5217\u4e0e\u8d28\u91cf\u957f\u5ea6\uff0c\u518d\u51b3\u5b9a\u6574\u5bf9\u4fdd\u7559\u8fd8\u662f\u6574\u5bf9\u7565\u8fc7\u3002\u82e5\u4e24\u7aef\u5404\u81ea\u968f\u673a\u62bd\u4e00\u534a\uff0c\u5373\u4f7f\u6700\u540e\u6587\u4ef6\u884c\u6570\u521a\u597d\u76f8\u7b49\uff0c\u4e5f\u5f88\u5bb9\u6613\u8ba9\u4e00\u9897\u7ec6\u80de\u7684\u6761\u7801\u914d\u5230\u53e6\u4e00\u5206\u5b50\u7684\u8f6c\u5f55\u672c\u4e0a\u3002\u5bf9\u4e8e\u5206 lane\u3001\u5206\u6587\u5e93\u7684\u6b63\u5f0f\u9879\u76ee\uff0c\u5e94\u5148\u786e\u8ba4 lane \u914d\u5bf9\u987a\u5e8f\u548c\u8bfb\u540d\uff0c\u6309\u9884\u5148\u58f0\u660e\u7684\u6bd4\u4f8b\u5206\u522b\u5904\u7406\u597d\u540c\u4e00\u7ec4 mates\u3002\u67d0\u4e9b\u73b0\u6210\u5de5\u5177\u652f\u6301\u7528\u76f8\u540c\u79cd\u5b50\u5bf9\u4e25\u683c\u540c\u6b65\u7684\u4e24\u4efd\u6587\u4ef6\u62bd\u6837\uff0c\u524d\u63d0\u4ecd\u7136\u662f\u4e24\u4e2a\u8f93\u5165\u5f00\u59cb\u5c31\u5904\u4e8e\u76f8\u540c\u987a\u5e8f\u3002\u7ec3\u4e60\u76f4\u63a5\u7528\u4e00\u6b21\u968f\u673a\u51b3\u5b9a\u5904\u7406\u540c\u4e00\u5bf9\uff0c\u4fbf\u4e8e\u770b\u6e05\u8fd9\u6761\u524d\u63d0\u3002<a href=\"https:\/\/github.com\/lh3\/seqtk\">seqtk \u4f5c\u8005\u7ed9\u51fa\u7684\u53cc\u7aef\u62bd\u6837\u793a\u4f8b<\/a><\/p>\n<pre style=\"max-width:100%;overflow:auto;padding:14px;box-sizing:border-box;background:#f1f6fa;line-height:1.6;font-size:0.9em\"><code class=\"language-python\">def fastq(path):\n    with gzip.open(path,&quot;rt&quot;) as f:\n        while True:\n            name=f.readline().rstrip()\n            if not name:break\n            seq=f.readline().strip();plus=f.readline().strip();quality=f.readline().strip()\n            if not name.startswith(&quot;@&quot;) or not plus.startswith(&quot;+&quot;) or len(seq)!=len(quality):raise ValueError(&quot;Truncated\/malformed FASTQ&quot;)\n            yield name.split()[0].removesuffix(&quot;\/1&quot;).removesuffix(&quot;\/2&quot;),seq\n<\/code><\/pre>\n<h2>\u8bfb\u6bb5\u51cf\u534a\uff0c\u4e3a\u4ec0\u4e48\u5206\u5b50\u6570\u6ca1\u6709\u8ddf\u7740\u51cf\u534a<\/h2>\n<p>\u5bf9\u4fdd\u7559\u7684\u7b2c\u4e8c\u7aef\u5728\u56db\u6761\u4eba\u5de5\u8f6c\u5f55\u672c\u4e2d\u505a\u552f\u4e00\u7cbe\u786e\u5339\u914d\uff0c\u627e\u5230\u5f52\u5c5e\u540e\uff0c\u5c06\u7ec6\u80de\u6761\u7801\u3001\u57fa\u56e0\u548c UMI \u4f5c\u4e3a\u4e00\u4e2a\u5206\u5b50\u7684\u952e\u3002\u540c\u4e00\u5206\u5b50\u82e5\u88ab\u91cd\u590d\u6d4b\u5230\u4e09\u6b21\uff0c\u4e09\u5bf9\u8bfb\u6bb5\u53ea\u4ea7\u751f\u4e00\u4e2a\u5206\u5b50\u8ba1\u6570\u3002\u4ee5\u4e00\u534a\u6982\u7387\u62bd\u6837\u65f6\uff0c\u81f3\u5c11\u4fdd\u7559\u5176\u4e2d\u4e00\u4e2a\u8bfb\u5bf9\u7684\u6982\u7387\u4e3a\u516b\u5206\u4e4b\u4e03\uff1b\u82e5\u4e00\u4e2a\u5206\u5b50\u539f\u6765\u672c\u5c31\u53ea\u6709\u4e00\u4e2a\u8bfb\u5bf9\uff0c\u90a3\u5b83\u88ab\u4fdd\u7559\u4e0b\u6765\u7684\u6982\u7387\u5c31\u662f\u4e8c\u5206\u4e4b\u4e00\u3002\u6b63\u56e0\u4e3a\u4e0d\u540c\u5206\u5b50\u7684\u539f\u59cb\u652f\u6301\u6570\u4e0d\u540c\uff0c\u4ece\u8bfb\u6bb5\u62bd\u6837\u540e\u53bb\u91cd\u7684\u7ed3\u679c\u4e0d\u80fd\u6309\u6bd4\u4f8b\u4ece\u73b0\u6210\u77e9\u9635\u63a8\u51fa\u3002\u771f\u5b9e\u6570\u636e\u8fd8\u6d89\u53ca UMI \u7ea0\u9519\u3001\u6bd4\u5bf9\u8fc7\u6ee4\u7b49\u6b65\u9aa4\uff0c\u8bfb\u6bb5\u51cf\u5c11\u4e5f\u53ef\u80fd\u6539\u53d8\u8fd9\u4e9b\u51b3\u5b9a\u3002<\/p>\n<p>\u6211\u4eec\u4f7f\u7528\u4e09\u4e2a\u56fa\u5b9a\u79cd\u5b50\uff0c\u6309\u72ec\u7acb\u4f2f\u52aa\u5229\u51b3\u7b56\u5b9e\u73b0\u201c\u671f\u671b\u4fdd\u7559\u4e00\u534a\u201d\u3002\u56e0\u6b64\u6bcf\u6b21\u5b9e\u9645\u4fdd\u7559\u7684\u5bf9\u6570\u4e0d\u5fc5\u521a\u597d\u662f\u603b\u6570\u7684\u4e00\u534a\u3002\u539f\u59cb\u6587\u5e93\u91cc\u6709\u56db\u5343\u4e8c\u767e\u516b\u5341\u516d\u5bf9\uff0c\u4e09\u6b21\u5206\u522b\u4fdd\u7559\u4e24\u5343\u4e00\u767e\u4e03\u5341\u516b\u3001\u4e24\u5343\u96f6\u516b\u5341\u516d\u548c\u4e24\u5343\u4e00\u767e\u4e8c\u5341\u4e09\u5bf9\uff0c\u6700\u540e\u5f97\u5230\u4e00\u5343\u516d\u767e\u516b\u5341\u4e09\u3001\u4e00\u5343\u4e94\u767e\u4e5d\u5341\u56db\u548c\u4e00\u5343\u516d\u767e\u4e00\u5341\u4e03\u4e2a\u4e0d\u540c\u5206\u5b50\u3002\u5982\u679c\u7814\u7a76\u534f\u8bae\u8981\u6c42\u56fa\u5b9a\u62bd\u53d6\u6070\u597d\u67d0\u4e2a\u8bfb\u5bf9\u6570\uff0c\u5e94\u6539\u7528\u4e0d\u653e\u56de\u5b9a\u91cf\u62bd\u53d6\uff0c\u5e76\u8bb0\u5f55\u76ee\u6807\u548c\u5b9e\u9645\u8bfb\u5bf9\u6570\u3002\u4e09\u6b21\u8f93\u51fa\u5171\u540c\u8bf4\u660e\u7684\u662f\u8fd9\u4efd\u6587\u5e93\u5728\u540c\u4e00\u6df1\u5ea6\u8bbe\u5b9a\u4e0b\u7684\u91c7\u6837\u6ce2\u52a8\uff0c\u4e0d\u80fd\u5f53\u6210\u4e09\u6b21\u72ec\u7acb\u4e0a\u673a\u7684\u91cd\u590d\u5b9e\u9a8c\u3002<\/p>\n<div style=\"overflow:auto\">\n<table style=\"width:100%;border-collapse:collapse\">\n<thead>\n<tr>\n<th style=\"padding:9px;text-align:left;background:#ffebc5\">\u8fd0\u884c<\/th>\n<th style=\"padding:9px;text-align:left;background:#ffebc5\">\u4fdd\u7559\u8bfb\u5bf9<\/th>\n<th style=\"padding:9px;text-align:left;background:#ffebc5\">\u53bb\u91cd\u5206\u5b50<\/th>\n<th style=\"padding:9px;text-align:left;background:#ffebc5\">T \u5165\u9009<\/th>\n<th style=\"padding:9px;text-align:left;background:#ffebc5\">B \u5165\u9009<\/th>\n<th style=\"padding:9px;text-align:left;background:#ffebc5\">\u7a00\u6709\u7ec4\u5165\u9009<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u5168\u91cf<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">4,286<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">2,551<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">30<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">24<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">5<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u534a\u6df1\u5ea6\uff0c\u79cd\u5b50 98<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">2,178<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">1,683<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">26<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">23<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">0<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u534a\u6df1\u5ea6\uff0c\u79cd\u5b50 99<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">2,086<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">1,594<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">24<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">22<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">0<\/td>\n<\/tr>\n<tr>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">\u534a\u6df1\u5ea6\uff0c\u79cd\u5b50 100<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">2,123<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">1,617<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">25<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">22<\/td>\n<td style=\"padding:9px;vertical-align:top;border-bottom:1px solid #d6e0e7\">0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>\u6761\u7801\u6709\u6ca1\u6709\u5165\u9009\uff0c\u662f\u7b2c\u4e00\u4e2a\u7ec8\u70b9<\/h2>\n<p>\u516d\u5341\u4e2a\u9884\u671f\u6761\u7801\u4e2d\u6709\u4e09\u5341\u9897 T \u6837\u3001\u4e8c\u5341\u56db\u9897 B \u6837\u3001\u516d\u9897\u7a00\u6709\u7c7b\u578b\u3002\u793a\u4f8b\u4e8b\u5148\u77e5\u9053\u771f\u503c\u6807\u7b7e\uff0c\u5b9e\u9645\u5206\u6790\u4e0d\u5fc5\u4f9d\u8d56\u964d\u6df1\u540e\u53ef\u80fd\u5df2\u8bfb\u4e0d\u5230\u7684 marker \u6765\u5012\u63a8\u4e22\u6389\u7684\u7c7b\u578b\u3002\u6211\u4eec\u5148\u5728\u6574\u5e93\u4e0a\u4ee5\u5341\u516b\u4e2a\u4e0d\u540c\u5206\u5b50\u4f5c\u6559\u5b66\u8c03\u7528\u7ebf\uff0c\u516d\u9897\u7a00\u6709\u7c7b\u578b\u4e2d\u6709\u4e94\u9897\u8fc7\u7ebf\uff0c\u4e00\u9897\u5728\u5168\u6df1\u5ea6\u5c31\u6ca1\u6709\u8fdb\u5165\u3002\u4e8e\u662f\u540e\u9762\u63cf\u8ff0\u7a00\u6709\u7ec4\u7684\u635f\u5931\uff0c\u5206\u6bcd\u5e94\u5199\u4e94\u4e2a\u539f\u6765\u786e\u5b9e\u5165\u9009\u7684\u6761\u7801\uff0c\u800c\u4e0d\u662f\u8bf4\u201c\u6709\u516d\u9897\u4ece\u56fe\u4e2d\u6d88\u5931\u201d\u3002\u4e09\u6b21\u51cf\u534a\uff0c\u539f\u6765\u4e94\u9897\u5747\u672a\u8fc7\u7ebf\u3002\u5b83\u4eec\u662f\u8fd9\u6b21\u56fa\u5b9a\u7684\u4f4e\u5206\u5b50\u6570\u6784\u9020\u6700\u5148\u53d7\u5f71\u54cd\u7684\u7fa4\uff0c\u4e0d\u80fd\u628a\u6a21\u62df\u7ed3\u679c\u5f53\u6210\u6240\u6709\u7ec4\u7ec7\u7684\u7a00\u6709\u7ec6\u80de\u90fd\u5fc5\u7136\u9700\u8981\u540c\u4e00\u6df1\u5ea6\u3002<\/p>\n<pre style=\"max-width:100%;overflow:auto;padding:14px;box-sizing:border-box;background:#f1f6fa;line-height:1.6;font-size:0.9em\"><code class=\"language-sh\">python -m pip install -r requirements.txt\npython run.py --input example --out results\npython run.py --input example --out results_025 --fraction 0.25 --minimum-umi 18\n<\/code><\/pre>\n<p>\u7b2c\u4e8c\u4e2a\u7ec8\u70b9\u53ea\u770b\u5168\u6df1\u5ea6\u4e0e\u964d\u6df1\u540e\u90fd\u5165\u9009\u7684\u5171\u540c\u6761\u7801\u3002\u5148\u786e\u8ba4\u8be5\u6761\u7801\u5728\u6574\u5e93\u786e\u5b9e\u6d4b\u5230\u8fc7\u81ea\u5df1\u7684\u6807\u8bb0\uff0c\u518d\u67e5\u51cf\u534a\u540e\u662f\u5426\u53d8\u4e3a\u96f6\u3002\u5728\u79cd\u5b50\u4e5d\u5341\u516b\u7684\u7ed3\u679c\u4e2d\uff0c\u6709\u4e00\u9897\u8fd9\u6837\u7684 T \u6837\u7ec6\u80de\uff0c\u6761\u7801\u4ecd\u7136\u4fdd\u7559\uff0c\u539f\u6807\u8bb0\u5374\u65e0\u4ece\u68c0\u51fa\u3002\u53e6\u4e24\u7ec4\u79cd\u5b50\u5206\u522b\u51fa\u73b0\u4e00\u9897 B \u6837\u548c\u4e00\u9897 T \u6837\u7684\u540c\u7c7b\u635f\u5931\u3002\u5355\u770b\u964d\u6df1\u540e\u5b58\u6d3b\u7684\u6761\u7801\u6570\u4f1a\u6f0f\u6389\u8fd9\u4e2a\u95ee\u9898\uff0c\u5355\u5728\u5171\u540c\u6761\u7801\u4e0a\u753b\u76f8\u5173\u7cfb\u6570\u53c8\u4f1a\u9519\u8fc7\u6574\u6279\u672a\u5165\u9009\u7684\u7a00\u6709\u6761\u7801\u3002\u4e24\u7c7b\u53d8\u5316\u5e94\u5206\u5f00\u5199\u5728\u540c\u4e00\u5f20\u8d28\u91cf\u62a5\u544a\u91cc\uff0c\u540c\u65f6\u8865\u4e0a\u5168\u90e8\u9884\u671f\u6761\u7801\u7684\u5206\u5e03\uff0c\u907f\u514d\u53ea\u5c55\u793a\u7ed3\u679c\u6700\u7a33\u5b9a\u7684\u90e8\u5206\u3002<\/p>\n<pre style=\"max-width:100%;overflow:auto;padding:14px;box-sizing:border-box;background:#f1f6fa;line-height:1.6;font-size:0.9em\"><code class=\"language-python\">import pandas as pd\nt = pd.read_csv(&quot;results\/barcode_audit.tsv&quot;, sep=&quot;\\t&quot;)\nfocus = t[t.arm.eq(&quot;down_98&quot;)]\nprint(focus.loc[focus.lost_barcode, [&quot;barcode&quot;,&quot;type&quot;,&quot;umi&quot;]])\nprint(focus.loc[focus.kept_but_lost_marker, [&quot;barcode&quot;,&quot;type&quot;,&quot;umi&quot;,&quot;full_marker&quot;,&quot;marker_umi&quot;]])\n<\/code><\/pre>\n<h2>\u6362\u6210\u771f\u5b9e\u6587\u5e93\uff0c\u8981\u56fa\u5b9a\u54ea\u4e9b\u4e1c\u897f<\/h2>\n<p>\u5148\u4fdd\u7559\u5b8c\u6574\u6df1\u5ea6\u4e0b\u7684\u7ec6\u80de\u8c03\u7528\u548c\u7ec6\u80de\u7c7b\u578b\u53c2\u8003\uff1b\u6bcf\u6b21\u964d\u6df1\u540e\uff0c\u4f7f\u7528\u540c\u7248\u53c2\u8003\u3001\u540c\u4e00\u6bd4\u5bf9\u4e0e\u8ba1\u6570\u6d41\u7a0b\u751f\u6210\u539f\u59cb\u548c\u8fc7\u6ee4\u77e9\u9635\u3002\u4e24\u5957\u5206\u6790\u90fd\u5e94\u4fdd\u5b58\u672a\u8fc7\u6ee4\u7684\u6761\u7801\u4fe1\u606f\uff0c\u5426\u5219\u201c\u5728\u65b0\u8fc7\u6ee4\u77e9\u9635\u91cc\u627e\u4e0d\u5230\u201d\u4f1a\u6df7\u5408\u5b8c\u5168\u6ca1\u6709\u4efb\u4f55\u8bfb\u6bb5\u548c\u6709\u5c11\u91cf\u8bfb\u6bb5\u5374\u6ca1\u8fbe\u5230\u8c03\u7528\u7ebf\u4e24\u79cd\u60c5\u51b5\u3002\u771f\u5b9e\u7ba1\u7ebf\u8fd8\u53ef\u80fd\u6839\u636e\u80cc\u666f\u52a8\u6001\u8bc6\u522b\u7ec6\u80de\uff0c\u4e0e\u6559\u5b66\u56fa\u5b9a\u5341\u516b\u5206\u5b50\u95e8\u69db\u4e0d\u540c\u3002\u82e5\u5de5\u7a0b\u4e0a\u53ea\u662f\u8f93\u5165\u5df2\u7ecf\u6bd4\u5bf9\u7684\u6587\u4ef6\u53bb\u91cd\u590d\u62bd\u6837\uff0c\u4e5f\u8981\u8bf4\u660e\u662f\u4ece\u54ea\u4e00\u5c42\u6a21\u62df\uff0c\u54ea\u4e9b\u4e0a\u6e38\u6b65\u9aa4\u6ca1\u6709\u91cd\u8dd1\u3002\u6bcf\u4e00\u5c42\u6240\u80fd\u56de\u7b54\u7684\u95ee\u9898\u4e0d\u540c\uff0c\u4e0d\u80fd\u4e00\u6982\u79f0\u4f5c\u6d4b\u5e8f\u51cf\u534a\u3002<\/p>\n<p>\u6b63\u5f0f\u8bbe\u8ba1\u53ef\u4ee5\u6bd4\u8f83\u591a\u4e2a\u6df1\u5ea6\u70b9\u3002\u5728\u76f8\u540c\u603b\u4f53\u6837\u672c\u4e2d\u4fdd\u7559\u660e\u786e\u7684\u79cd\u5b50\u548c\u62bd\u6837\u65b9\u5f0f\uff0c\u9010\u4f4d\u4f9b\u8005\u770b\u5e38\u89c1\u7c7b\u578b\u3001\u4f4e\u4e30\u5ea6\u7c7b\u578b\u3001\u76ee\u6807\u6807\u8bb0\u68c0\u51fa\u548c\u60a3\u8005\u7ea7\u7ed3\u8bba\u7684\u7a33\u5b9a\u6027\u3002\u82e5\u7a00\u6709\u7fa4\u51cf\u5c11\uff0c\u5148\u9010\u4e2a\u67e5\u5b83\u5728\u6574\u5e93\u7684\u5206\u5b50\u91cf\u3001\u76ee\u6807\u57fa\u56e0\u652f\u6301\u5f3a\u5ea6\u53ca\u4e0d\u540c\u6837\u672c\u7684\u5206\u5e03\u3002\u4e00\u4e2a\u4f4e\u4e30\u5ea6\u7fa4\u53ea\u6765\u81ea\u5355\u4e2a\u4f9b\u8005\uff0c\u4e0e\u6bcf\u4f4d\u4f9b\u8005\u90fd\u6709\u5c11\u91cf\u7a33\u5b9a\u6210\u5458\uff0c\u662f\u4e24\u79cd\u5b8c\u5168\u4e0d\u540c\u7684\u5b9e\u9a8c\u53d6\u820d\u3002\u53ef\u4ee5\u53e6\u505a\u56fa\u5b9a\u7ec6\u80de\u6570\u7684\u5206\u6790\uff0c\u628a\u201c\u7ec6\u80de\u53d8\u5c11\u201d\u4e0e\u201c\u6bcf\u4e2a\u7ec6\u80de\u6d4b\u5f97\u66f4\u6d45\u201d\u5c3d\u91cf\u533a\u5206\uff0c\u4f46\u4e0d\u8981\u628a\u5b83\u5f53\u6210\u4ece\u539f\u59cb\u8bfb\u5bf9\u964d\u91c7\u6837\u7684\u66ff\u4ee3\u7ed3\u679c\u3002<\/p>\n<p>\u8bfb\u5b8c\u8868\u4ee5\u540e\uff0c\u53ef\u4ee5\u53e6\u5916\u6570\u51fa\u201c\u539f\u672c\u5c31\u6ca1\u6709\u68c0\u51fa\u6807\u8bb0\u201d\u7684\u4fdd\u7559\u6761\u7801\u3002\u8fd9\u4e9b\u7ec6\u80de\u5728\u964d\u6df1\u540e\u4ecd\u4e3a\u96f6\uff0c\u4e0d\u5c5e\u4e8e\u65b0\u589e\u7684\u6807\u8bb0\u635f\u5931\u3002\u540c\u7406\uff0c\u6574\u5e93\u5df2\u7ecf\u6ca1\u8fc7\u7ebf\u7684\u7a00\u6709\u6761\u7801\u4e5f\u4e0d\u5e94\u8bb0\u4f5c\u51cf\u534a\u9020\u6210\u7684\u635f\u5931\u3002\u628a\u539f\u672c\u662f\u5426\u8fbe\u7ebf\u3001\u73b0\u5728\u662f\u5426\u8fbe\u7ebf\u3001\u539f\u5148\u6807\u8bb0\u548c\u73b0\u6709\u6807\u8bb0\u6392\u6210\u56db\u5217\uff0c\u51e0\u4e4e\u6240\u6709\u5e38\u89c1\u7684\u5206\u6bcd\u6df7\u6dc6\u90fd\u80fd\u76f4\u63a5\u7528\u5e03\u5c14\u6761\u4ef6\u8bc6\u522b\u3002\u5e0c\u671b\u590d\u67e5\u7684\u540c\u4e8b\u53ea\u8981\u5e26\u7740\u4e00\u4e2a\u6761\u7801\uff0c\u4ece\u539f FASTQ \u7684\u540c\u540d\u8bfb\u5bf9\u5f00\u59cb\u4e00\u8def\u6570\u5230\u8fd9\u56db\u5217\uff0c\u5373\u53ef\u72ec\u7acb\u6838\u5bf9\u7ed3\u8bba\u3002<\/p>\n<p>\u6700\u540e\uff0c\u9009\u62e9\u8ffd\u52a0\u6d4b\u5e8f\u8fd8\u662f\u589e\u52a0\u72ec\u7acb\u6837\u672c\uff0c\u4f9d\u8d56\u7814\u7a76\u771f\u6b63\u8981\u4fdd\u4f4f\u7684\u7ec8\u70b9\u3002\u82e5\u5173\u5fc3\u7684\u6807\u8bb0\u5728\u5171\u540c\u6761\u7801\u4e2d\u5df2\u7ecf\u7a33\u5b9a\uff0c\u800c\u989d\u5916\u8bfb\u6bb5\u4e3b\u8981\u91cd\u590d\u5df2\u6709\u5206\u5b50\uff0c\u8ffd\u52a0\u6df1\u5ea6\u53ef\u80fd\u5e26\u6765\u7684\u589e\u91cf\u4e0e\u62a2\u6551\u4e00\u6279\u4e34\u754c\u7a00\u6709\u7ec6\u80de\u5927\u4e0d\u4e00\u6837\u3002\u53ef\u4ee5\u5148\u7528\u8fd9\u5957\u5c0f\u6587\u5e93\u786e\u8ba4\u8bfb\u5bf9\u3001UMI \u548c\u6761\u7801\u4e09\u5c42\u7edf\u8ba1\uff0c\u518d\u5c06\u540c\u6837\u7684\u6e05\u5355\u7528\u4e8e\u771f\u5b9e FASTQ\u3002\u9700\u8981\u5728\u591a\u4efd\u539f\u59cb\u6587\u5e93\u4e0a\u53cd\u590d\u6bd4\u5bf9\u8ba1\u6570\u65f6\uff0c\u518d\u6309\u538b\u7f29\u8bfb\u6bb5\u5bb9\u91cf\u548c\u8ba1\u5212\u5e76\u884c\u7684\u6df1\u5ea6\u70b9\u9009\u62e9<a href=\"https:\/\/www.biocloudservice.com\/wordpress\/compute-services\/\">\u4e91\u751f\u4fe1\u79d1\u7814\u670d\u52a1\u5668\u79df\u8d41<\/a>\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4ece\u4e24\u4efd\u914d\u5bf9 FASTQ\u3001\u5fae\u578b\u53c2\u8003\u5e8f\u5217\u548c\u6761\u7801\u8868\u51fa\u53d1\uff0c\u6309\u5bf9\u62bd\u6837\u3001\u5b9a\u4f4d\u5e76\u53bb\u91cd\uff0c\u5206\u5f00\u7edf\u8ba1\u6d88\u5931\u7684\u6761\u7801\u4e0e\u4fdd\u7559\u4e0b\u6765\u5374\u8bfb\u4e0d\u5230\u7684\u6807\u8bb0\u3002<\/p>\n","protected":false},"author":1,"featured_media":72396,"comment_status":"closed","ping_status":"","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":[71],"tags":[],"class_list":["post-72399","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-single-cell"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/ysx-sc-practice-098-downsample-paired-fastq.png?fit=1240%2C800&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72399","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=72399"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72399\/revisions"}],"predecessor-version":[{"id":73736,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/72399\/revisions\/73736"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/72396"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=72399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=72399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=72399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}