{"id":69901,"date":"2026-11-21T14:15:00","date_gmt":"2026-11-21T06:15:00","guid":{"rendered":"https:\/\/www.biocloudservice.com\/wordpress\/?p=69901"},"modified":"2026-11-15T14:01:13","modified_gmt":"2026-11-15T06:01:13","slug":"rental-q161","status":"publish","type":"post","link":"https:\/\/www.biocloudservice.com\/wordpress\/rental-q161\/","title":{"rendered":"\u4ece\u6837\u672c\u6e05\u5355\u5230\u5408\u5e76\u9a8c\u6536\uff1abcftools\u961f\u5217VCF\u5904\u7406\u6559\u7a0b"},"content":{"rendered":"<p><!-- ysx-rental-campaign:rental-tutorials-400-20261114 article:rental_q161 --><\/p>\n<div class=\"ysx-rental-tutorial\">\n<figure class=\"ysx-tutorial-figure\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/rental_q161-poster.png?resize=1200%2C720&#038;ssl=1\" alt=\"VCF\u5408\u5e76\u5148\u6838\u5bf9\u8eab\u4efd\uff1a\u533a\u5206merge\u4e0econcat\uff1b\u68c0\u67e5\u552f\u4e00\u6837\u672c\u540d\uff1b\u5728\u65b0\u76ee\u5f55\u5408\u5e76\uff1b\u6838\u5bf9\u6837\u672c\u548c\u4ee3\u8868\u4f4d\u70b9\" width=\"1200\" height=\"720\" loading=\"lazy\"><figcaption>\u672c\u6587\u64cd\u4f5c\u4e0e\u68c0\u67e5\u8def\u5f84\u793a\u610f\u3002<\/figcaption><\/figure>\n<p>bcftools merge\u7528\u4e8e\u5408\u5e76\u4e0d\u91cd\u53e0\u6837\u672c\u96c6\u5408\uff0cconcat\u7528\u4e8e\u62fc\u63a5\u540c\u4e00\u6837\u672c\u96c6\u5408\u7684\u6709\u5e8f\u533a\u95f4\u3002\u51e0\u767e\u4efdVCF\u5148\u5224\u65ad\u5c5e\u4e8e\u54ea\u4e00\u79cd\uff0c\u4e0d\u80fd\u53ea\u9009\u80fd\u8dd1\u901a\u7684\u547d\u4ee4\u3002\u672c\u7bc7\u9650\u5b9a\u540c\u4e00\u53c2\u8003\u3001\u5df2\u89c4\u8303\u5316\u4e14\u9002\u7528\u4e8e\u5408\u5e76\u7684\u666e\u901aVCF\uff0c\u6309\u6837\u672c\u96c6\u5408\u5408\u5e76\uff1bgVCF\u8054\u5408\u5206\u578b\u548c\u4e0d\u540ccaller\u7684\u7ed3\u679c\u6574\u5408\u9700\u8981\u53e6\u5916\u7684\u65b9\u6cd5\u3002<\/p>\n<h2>\u5148\u7edf\u4e00\u53d8\u5f02\u8868\u793a\u548c\u6837\u672c\u8eab\u4efd<\/h2>\n<p>\u8f93\u5165\u5fc5\u987b\u91c7\u7528\u540c\u4e00\u7ec4\u88c5\u4e0e\u4e00\u81f4\u7684REF\/ALT\u8868\u793a\uff0c\u5df2\u5b8c\u6210\u9002\u7528\u7684\u5de6\u5bf9\u9f50\u3001\u89c4\u8303\u5316\u53ca\u8d28\u63a7\uff1b\u4e0d\u80fd\u901a\u8fc7\u6539chr\u5b57\u7b26\u4e32\u66ff\u4ee3\u53c2\u8003\u6838\u5bf9\u3002\u5404VCF\u7684FORMAT\/INFO\u5b9a\u4e49\u4e5f\u5e94\u76f8\u5bb9\uff0c\u542b\u4e49\u4e0d\u540c\u7684\u5b57\u6bb5\u4e0d\u80fd\u4ec5\u51ed\u540c\u540d\u5c31\u89e3\u91ca\u4e3a\u540c\u4e00\u6307\u6807\u3002\u4e0b\u9762\u7684\u6837\u672c\u552f\u4e00\u6027\u68c0\u67e5\u662f\u5408\u5e76\u524d\u95e8\u69db\uff0c\u4e0d\u662f\u5b8c\u6574VCF\u8d28\u91cf\u9a8c\u6536\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u60c5\u51b5<\/th>\n<th>\u64cd\u4f5c\u65b9\u5411<\/th>\n<th>\u91cd\u70b9\u9a8c\u6536<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u4e0d\u540c\u6837\u672c\u3001\u76f8\u540c\u5750\u6807\u4f53\u7cfb<\/td>\n<td>merge<\/td>\n<td>\u6837\u672c\u4e0d\u91cd\u540d\uff0c\u7b49\u4f4d\u57fa\u56e0\u8868\u793a\u4e00\u81f4<\/td>\n<\/tr>\n<tr>\n<td>\u540c\u6837\u672c\u3001\u4e0d\u540c\u6709\u5e8f\u533a\u95f4<\/td>\n<td>concat<\/td>\n<td>\u6837\u672c\u53ca\u987a\u5e8f\u4e00\u81f4\uff0c\u533a\u95f4\u65e0\u9057\u6f0f<\/td>\n<\/tr>\n<tr>\n<td>\u540c\u6837\u672c\u91cd\u590d\u6d4b\u5e8f\/\u591a\u4e2acaller<\/td>\n<td>\u5148\u786e\u5b9a\u6574\u5408\u65b9\u6848<\/td>\n<td>\u4e0d\u80fd\u5f3a\u5236\u6539\u540d\u5f53\u6210\u65b0\u6837\u672c<\/td>\n<\/tr>\n<tr>\n<td>gVCF<\/td>\n<td>\u9002\u7528\u8054\u5408\u5206\u578b\u6d41\u7a0b<\/td>\n<td>\u4e0d\u4ee5\u666e\u901amerge\u4ee3\u66ff\u8054\u5408\u8c03\u7528<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u751f\u6210\u53ef\u5ba1\u67e5\u7684\u8f93\u5165\u6e05\u5355<\/h2>\n<p>inputs.txt\u6bcf\u884c\u4e00\u4e2a\u5df2BGZF\u538b\u7f29\u3001\u6392\u5e8f\u4e14\u6709\u53ef\u7528\u7d22\u5f15\u7684VCF\u7edd\u5bf9\u8def\u5f84\uff0c\u65e0\u8868\u5934\u3002\u4fdd\u5b58\u4e3acheck_samples.py\u6267\u884c\uff1b\u7a0b\u5e8f\u62d2\u7edd\u7a7a\u6e05\u5355\u3001\u91cd\u590d\u6587\u4ef6\u548c\u8de8\u6587\u4ef6\u91cd\u590d\u6837\u672c\uff0c\u5e76\u4fdd\u5b58\u6309\u8f93\u5165\u987a\u5e8f\u5c55\u5f00\u7684\u671f\u671b\u6837\u672c\u540d\u3002\u6e05\u5355\u548c\u671f\u671b\u6587\u4ef6\u90fd\u4f5c\u4e3a\u672c\u8f6e\u56fa\u5b9a\u8f93\u5165\uff0c\u4e0d\u8fb9\u8fd0\u884c\u8fb9\u4fee\u6539\u3002<\/p>\n<pre><code class=\"language-python\">from pathlib import Path\nimport subprocess\npaths=[Path(v) for v in Path(&quot;inputs.txt&quot;).read_text().splitlines() if v]\nassert paths and all(p.is_absolute() and p.is_file() for p in paths)\nassert len({p.resolve() for p in paths})==len(paths)\nseen=set();expected=[]\nfor path in paths:\n    names=subprocess.check_output([&quot;bcftools&quot;,&quot;query&quot;,&quot;-l&quot;,str(path)],text=True).splitlines()\n    assert names and len(set(names))==len(names)\n    for name in names:\n        assert name not in seen,(name,&quot;\u91cd\u590d\u6837\u672c\uff0c\u5148\u89e3\u51b3\u6765\u6e90&quot;)\n        seen.add(name);expected.append(name)\nwith Path(&quot;expected.samples.txt&quot;).open(&quot;x&quot;) as out:\n    out.write(&quot;\\n&quot;.join(expected)+&quot;\\n&quot;)\nprint(&quot;\u6587\u4ef6&quot;,len(paths),&quot;\u6837\u672c&quot;,len(expected))\n<\/code><\/pre>\n<h2>\u5728\u65b0\u76ee\u5f55\u5408\u5e76\u5e76\u6838\u5bf9\u6837\u672c<\/h2>\n<p>\u9700\u8981\u517c\u5bb9bcftools\u4e0eGNU time\u3002\u793a\u4f8b\u4e24\u538b\u7f29\u7ebf\u7a0b\u4ec5\u7528\u4e8e\u5c55\u793a\u53c2\u6570\uff1b&#8211;threads\u4e3b\u8981\u5f71\u54cd\u8f93\u51fa\u538b\u7f29\uff0c\u4e0d\u4ee3\u8868\u5408\u5e76\u6240\u6709\u8ba1\u7b97\u90fd\u80fd\u540c\u6bd4\u52a0\u901f\u3002\u5408\u5e76\u540e\u7f3a\u5c11\u67d0\u6837\u672c\u7684\u4f4d\u70b9\u4ecd\u662f\u7f3a\u5931\uff0c\u4e0d\u80fd\u52a0&#8211;missing-to-ref\u5c06\u5176\u76f4\u63a5\u5f53\u4f5c\u53c2\u8003\u578b\u3002<\/p>\n<pre><code class=\"language-bash\">set -euo pipefail\npython3 check_samples.py\nmkdir vcf-merge-001\nbcftools --version &gt; vcf-merge-001\/version.txt\n\/usr\/bin\/time -v -o vcf-merge-001\/resource.txt bcftools merge \\\n  --file-list inputs.txt --threads 2 -Oz -o vcf-merge-001\/merged.vcf.gz \\\n  &gt; vcf-merge-001\/run.log 2&gt;&amp;1\nbcftools index -c vcf-merge-001\/merged.vcf.gz\nbcftools query -l vcf-merge-001\/merged.vcf.gz &gt; vcf-merge-001\/actual.samples.txt\ncmp expected.samples.txt vcf-merge-001\/actual.samples.txt\nbcftools stats vcf-merge-001\/merged.vcf.gz &gt; vcf-merge-001\/stats.txt\n<\/code><\/pre>\n<h2>\u68c0\u67e5\u5408\u5e76\u6539\u53d8\u4e86\u4ec0\u4e48<\/h2>\n<p>\u5148\u770b\u6837\u672c\u540d\u548c\u987a\u5e8f\uff0c\u518d\u62bd\u67e5\u5171\u4eab\u4f4d\u70b9\u3001\u53ea\u5728\u5355\u4e2a\u6587\u4ef6\u51fa\u73b0\u7684\u4f4d\u70b9\u53ca\u591a\u7b49\u4f4d\u4f4d\u70b9\u3002\u8bb0\u5f55\u8f93\u51fa\u4f4d\u70b9\u6570\u3001\u7b49\u4f4d\u57fa\u56e0\u548c\u5173\u952eFORMAT\uff0c\u4e0d\u80fd\u8981\u6c42merge\u524d\u540e\u8bb0\u5f55\u6570\u7b80\u5355\u76f8\u52a0\uff1b\u4e0d\u540c\u6587\u4ef6\u7684\u540c\u4e00\u4f4d\u70b9\u53ef\u4ee5\u5408\u6210\u4e00\u6761\u8bb0\u5f55\u3002\u6837\u672c\u8ba1\u6570\u901a\u8fc7\u4e5f\u4e0d\u4ee3\u8868\u57fa\u56e0\u578b\u5185\u5bb9\u4e00\u5b9a\u6b63\u786e\uff0c\u9700\u6309\u9879\u76ee\u68c0\u67e5\u4ee3\u8868\u4f4d\u70b9\u3002<\/p>\n<p>\u91cd\u590d\u6837\u672c\u9519\u8bef\u5148\u67e5\u662f\u5426\u540c\u4e00\u60a3\u8005\u591a\u6587\u4ef6\u3001\u547d\u540d\u51b2\u7a81\u6216\u6e05\u5355\u91cd\u590d\uff0c\u4e0d\u7528&#8211;force-samples\u81ea\u52a8\u52a0\u524d\u7f00\u7ed5\u8fc7\u3002REF\u51b2\u7a81\u6216\u5b57\u6bb5\u5b9a\u4e49\u9519\u8bef\u56de\u5230\u89c4\u8303\u5316\u548c\u6765\u6e90\u6838\u5bf9\uff0c\u907f\u514d\u4e3a\u8ba9\u5408\u5e76\u7ed3\u675f\u5220\u6389\u62a5\u9519\u4f4d\u70b9\u3002\u8f93\u5165\u53ea\u6709\u4e00\u4efd\u7684\u7edf\u8ba1\u4e5f\u8981\u8bb0\u5f55\uff0c\u4ee5\u4fbf\u53d1\u73b0\u67d0\u6279\u6587\u4ef6\u5f02\u5e38\u3002<\/p>\n<p>\u7279\u522b\u68c0\u67e5\u7f3a\u5931GT\u4e0e0\/0\u7684\u533a\u522b\uff1a\u67d0\u6587\u4ef6\u6ca1\u6709\u67d0\u6761\u53d8\u5f02\u8bb0\u5f55\uff0c\u53ef\u80fd\u6e90\u4e8e\u8986\u76d6\u3001\u8c03\u7528\u4e0e\u8fc7\u6ee4\u7b56\u7565\uff0c\u4e0d\u81ea\u52a8\u8bc1\u660e\u8be5\u6837\u672c\u53c2\u8003\u7eaf\u5408\u3002\u4e0b\u6e38\u9700\u8981\u5b8c\u6574\u53ef\u8c03\u7528\u533a\u57df\u65f6\uff0c\u5e94\u56de\u5230\u76f8\u5e94\u7684\u8c03\u7528\u548c\u8054\u5408\u5206\u6790\u8bc1\u636e\uff0c\u666e\u901a\u6587\u4ef6\u5408\u5e76\u4e0d\u80fd\u751f\u6210\u7f3a\u5931\u7684\u6d4b\u5e8f\u4fe1\u606f\u3002<\/p>\n<p>\u7528\u5b8c\u6574\u4ee3\u8868\u4efb\u52a1\u6d4bRSS\u3001\u8f93\u51fa\u4e0e\u4e34\u65f6\u76d8\uff0c\u518d\u51b3\u5b9a\u662f\u5426\u6309\u67d3\u8272\u4f53\u5206\u533a\u7ec4\u7ec7\uff1b\u5206\u533a\u540e\u4ecd\u9700\u9a8c\u8bc1\u6837\u672c\u4e0e\u62fc\u63a5\u987a\u5e8f\u3002\u6587\u4ef6\u6570\u591a\u8fd8\u5e94\u68c0\u67e5\u6253\u5f00\u6587\u4ef6\u989d\u5ea6\uff0c\u4f46\u4e0d\u8981\u672a\u7ecf\u8bca\u65ad\u5c31\u4fee\u6539\u5168\u5c40\u9650\u5236\u3002\u4fdd\u5b58\u6e05\u5355\u3001\u53c2\u8003\u6821\u9a8c\u3001\u8f6f\u4ef6\u7248\u672c\u548c\u65e5\u5fd7\uff0c\u8ba9\u540e\u7eed\u8d44\u6e90\u8c03\u6574\u4fdd\u6301\u76f8\u540c\u65b9\u6cd5\u548c\u76f8\u540c\u8f93\u5165\u3002<\/p>\n<h2>\u53c2\u8003\u8d44\u6599<\/h2>\n<ul>\n<li><a href=\"https:\/\/samtools.github.io\/bcftools\/bcftools.html\">bcftools\u5b98\u65b9merge\u3001concat\u4e0e\u901a\u7528\u53c2\u6570<\/a><\/li>\n<li><a href=\"https:\/\/samtools.github.io\/hts-specs\/VCFv4.5.pdf\">VCF\u89c4\u8303<\/a><\/li>\n<\/ul>\n<section class=\"ysx-rental-recommendation\">\n<h2>\u9700\u8981\u989d\u5916\u7b97\u529b\u65f6<\/h2>\n<p>\u9002\u7528\u524d\u63d0\uff1a\u6837\u672c\u4e0e\u53d8\u5f02\u8868\u793a\u6838\u5bf9\u901a\u8fc7\uff0c\u6279\u91cf\u5408\u5e76\u7684\u8fd0\u884c\u65f6\u95f4\u6216\u8d44\u6e90\u8d85\u8fc7\u73b0\u6709\u80fd\u529b\u3002\u5982\u9700\u989d\u5916\u8d44\u6e90\uff0c\u53ef\u8bc4\u4f30\u6309\u4efb\u52a1\u6d4b\u7b97\u7684CPU\u670d\u52a1\u5668\u79df\u8d41\u3002\u54a8\u8be2\u65f6\u8bf4\u660e\u8f6f\u4ef6\u7248\u672c\u3001\u4efb\u52a1\u89c4\u6a21\u548c\u4f7f\u7528\u671f\u9650\uff0c\u914d\u7f6e\u4e0e\u652f\u6301\u8303\u56f4\u53e6\u884c\u786e\u8ba4\u3002<\/p>\n<details>\n<summary>\u54a8\u8be2\u672c\u4efb\u52a1\u7684\u670d\u52a1\u5668\u914d\u7f6e<\/summary>\n<p>    <section class=\"brtc-section\" id=\"rental-consultation\" aria-labelledby=\"brtc-title-69901\">\n    <h2 id=\"brtc-title-69901\">\u54a8\u8be2\u672c\u4efb\u52a1\u7684\u670d\u52a1\u5668\u914d\u7f6e<\/h2>\n    <p>\u7559\u4e0b\u624b\u673a\u53f7\uff0c\u6211\u4eec\u4f1a\u7ed3\u5408\u672c\u6587\u4efb\u52a1\u4e0e\u60a8\u6c9f\u901a\u670d\u52a1\u5668\u914d\u7f6e\u548c\u62a5\u4ef7\u3002<\/p>\n    <form class=\"brtc-form\" method=\"post\" action=\"https:\/\/www.biocloudservice.com\/wordpress\/wp-admin\/admin-ajax.php\" data-article-key=\"rental_q161\">\n    <input type=\"hidden\" name=\"action\" value=\"brtc_submit\"><input type=\"hidden\" name=\"post_id\" value=\"69901\">\n    <input type=\"hidden\" name=\"article_key\" value=\"rental_q161\"><input type=\"hidden\" name=\"nonce\" value=\"70cdfcdaea\">\n    <input type=\"hidden\" name=\"request_id\" value=\"1265363bc43ed30c90a52ce52e31e0ff\"><input type=\"hidden\" name=\"first_key\" value=\"rental_q161\">\n    <label>\u624b\u673a\u53f7<input name=\"phone\" type=\"tel\" inputmode=\"numeric\" autocomplete=\"tel-national\" minlength=\"11\" maxlength=\"11\" pattern=\"1[3-9][0-9]{9}\" required placeholder=\"\u8bf7\u8f93\u516511\u4f4d\u624b\u673a\u53f7\" title=\"\u8bf7\u8f93\u5165\u6709\u6548\u768411\u4f4d\u624b\u673a\u53f7\"><\/label>\n    <div class=\"brtc-honeypot\" aria-hidden=\"true\"><label>\u7f51\u7ad9<input name=\"website\" tabindex=\"-1\" autocomplete=\"off\"><\/label><\/div>\n    <label class=\"brtc-consent\"><input type=\"checkbox\" name=\"consent\" value=\"1\" required>\u6211\u540c\u610f\u901a\u8fc7\u6b64\u624b\u673a\u53f7\u8054\u7cfb\u6211\uff0c\u6c9f\u901a\u672c\u6b21\u670d\u52a1\u5668\u914d\u7f6e\u4e0e\u79df\u8d41\u9700\u6c42\u3002<\/label>\n    <button type=\"submit\">\u63d0\u4ea4\u54a8\u8be2<\/button><p class=\"brtc-status\" role=\"status\" aria-live=\"polite\"><\/p>\n    <\/form>\n    <p class=\"brtc-alternative\">\u4e5f\u53ef<a href=\"https:\/\/work.weixin.qq.com\/kfid\/kfcb05492f29d4d6064\" data-ysx-event=\"contact_click\">\u8054\u7cfb\u4e91\u751f\u4fe1\u4f01\u4e1a\u5fae\u4fe1\u5ba2\u670d<\/a>\uff0c\u8bf4\u660e\u672c\u6587\u4efb\u52a1\u3002<\/p>\n    <\/section>\n    <\/details>\n<\/section>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u62d2\u7edd\u91cd\u590d\u6837\u672c\u540d\uff0c\u518d\u533a\u5206\u6837\u672c\u5408\u5e76\u4e0e\u533a\u95f4\u62fc\u63a5\uff0c\u68c0\u67e5\u5408\u5e76\u540e\u7684\u6837\u672c\u5217\u8868\u3002<\/p>\n","protected":false},"author":1,"featured_media":69900,"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":[1,75],"tags":[932,156],"class_list":["post-69901","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-part","category-compute-environment","tag-932","tag-156"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2026\/11\/rental_q161-poster.png?fit=1200%2C720&ssl=1","_links":{"self":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/69901","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=69901"}],"version-history":[{"count":1,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/69901\/revisions"}],"predecessor-version":[{"id":69950,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/posts\/69901\/revisions\/69950"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media\/69900"}],"wp:attachment":[{"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/media?parent=69901"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/categories?post=69901"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.biocloudservice.com\/wordpress\/wp-json\/wp\/v2\/tags?post=69901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}