{"id":56018,"date":"2024-06-16T17:24:05","date_gmt":"2024-06-16T09:24:05","guid":{"rendered":"http:\/\/www.biocloudservice.com\/wordpress\/?p=56018"},"modified":"2024-06-16T17:24:05","modified_gmt":"2024-06-16T09:24:05","slug":"%e6%90%ad%e5%bb%ba%e7%94%9f%e4%bf%a1%e5%88%86%e6%9e%90%e6%b5%81%e6%b0%b4%e7%ba%bf%ef%bc%8c%e5%a6%82%e5%b7%a5%e5%8e%82%e4%b8%80%e6%a0%b724%e5%b0%8f%e6%97%b6%e8%bf%90%e8%bd%acsnakemake-2","status":"publish","type":"post","link":"http:\/\/www.biocloudservice.com\/wordpress\/?p=56018","title":{"rendered":"\u642d\u5efa\u751f\u4fe1\u5206\u6790\u6d41\u6c34\u7ebf\uff0c\u5982\u5de5\u5382\u4e00\u683724\u5c0f\u65f6\u8fd0\u8f6cSnakemake\u2014\u2014\u8fdb\u9636\u547d\u4ee4"},"content":{"rendered":"<p><html><br \/>\n<head><br \/>\n<title><\/title><br \/>\n<meta charset=\"utf-8\"><br \/>\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover\"><\/p>\n<style>\n*{margin:0;padding:0}html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;line-height:1.6}img{z-index:999;position:relative;max-width:100%;margin:10px 0;}body{letter-spacing:.034em}h1,h2,h3,h4,h5,h6{font-weight:400;font-size:16px}a{color:#576b95;text-decoration:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}td,th{word-wrap:break-word;padding:5px 10px;border:1px solid #DDD;}table{margin-bottom:10px;border-collapse:collapse;display:table;width:100%!important;}.appmsg_skin_default .rich_media_area_primary{background-color:#fff}.appmsg_skin_default .rich_media_area_primary .weui-loadmore_line .weui-loadmore__tips{background-color:#fff}.rich_media_area_primary{padding:20px 16px 12px;background-color:#fafafa}@media (max-width:375px){.rich_media_area_primary{padding:20px 60px 15px 60px}.rich_media_area_extra{padding:0 60px 21px 60px}}@media (min-width:1024px){.rich_media_area_primary_inner,.rich_media_area_extra_inner,body{max-width:677px;margin-left:auto;margin-right:auto}.rich_media_area_primary{padding-top:32px}}.rich_media{padding:20px;overflow:hidden;}.appmsg_skin_default .rich_media_area_primary{background-color:#fff}.appmsg_skin_default .rich_media_area_primary .weui-loadmore_line .weui-loadmore__tips{background-color:#fff}@media screen and (min-width:1024px){.rich_media_area_primary_inner,.rich_media_area_extra_inner{max-width:677px;margin-left:auto;margin-right:auto}.rich_media_area_primary{padding-top:32px}}.rich_media_content{overflow:hidden;color:#333;font-size:17px;word-wrap:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;text-align:justify;position:relative;z-index:0}.rich_media_content *{max-width:100%!important;box-sizing:border-box!important;-webkit-box-sizing:border-box!important;word-wrap:break-word!important}.rich_media_content p{clear:both;min-height:1em}.rich_media_content em{font-style:italic}.rich_media_content fieldset{min-width:0}.rich_media_content .list-paddingleft-1,.rich_media_content .list-paddingleft-2,.rich_media_content .list-paddingleft-3{padding-left:2.2em}.rich_media_content .list-paddingleft-1 .list-paddingleft-2,.rich_media_content .list-paddingleft-2 .list-paddingleft-2,.rich_media_content .list-paddingleft-3 .list-paddingleft-2{padding-left:30px}.rich_media_content .list-paddingleft-1{padding-left:1.2em}.rich_media_content .list-paddingleft-3{padding-left:3.2em}.rich_media_content .code-snippet,.rich_media_content .code-snippet__fix{max-width:1000%!important}.rich_media_content .code-snippet *,.rich_media_content .code-snippet__fix *{max-width:1000%!important}.rich_media_title{font-size:22px;line-height:1.4;margin-bottom:13px;padding-bottom:13px;border-bottom:1px solid #e7e7eb;}@supports(-webkit-overflow-scrolling:touch){.rich_media_title{font-weight:700}}.rich_media_meta{display:inline-block;vertical-align:middle;padding:0 0 10px 0;font-size:15px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.rich_media_meta.icon_appmsg_tag{margin-right:0px}.rich_media_meta.meta_tag_text{margin-right:0}.rich_media_meta_list em{font-style:normal}.rich_media_meta_text{color:#a5a5a5;}p{margin:0;}.msgBox{margin-top:20px;padding-top:20px;padding-left:50px;overflow:hidden;border-top:2px dashed #09a2ff;}.msg{padding-top:7px;clear:both;}.msgBody{float:right;width:100%;margin-left:55px;padding-bottom:15px;border-bottom:1px dashed #e0e0e0;}.userHeadImg{float:left;margin-left:-50px;}.userHeadImg img{width:40px;height:40px;margin-right:10px;border-radius:3px;}.userName{color:#888888;line-height:24px;font-size:14px;margin:5px 0 5px 0;height:24px;}.replyBody,.autherBody{color:#565656;font-size:15px;}.replyIcon{border-left:4px solid #33ab01;margin-right:5px;}.ad{text-decoration:none;color:#d6d4d4;font-size:12px;}.msgBodyReply{padding-top:5px;}.userName span{float:right;color:#afafaf;font-size:14px;}code{text-align:left;font-size:14px;display:block;white-space:pre;display:-webkit-box;display:-webkit-flex;display:flex;position:relative;}.code-snippet__fix{font-size:14px;margin:10px 0;display:block;color:#333;position:relative;background-color:rgba(0,0,0,0.03);border:1px solid #f0f0f0;border-radius:2px;display:-webkit-box;display:-webkit-flex;display:flex;padding-left:25px;line-height:26px}.code-snippet__fix code{text-align:left;font-size:14px;display:block;white-space:pre;display:-webkit-box;display:-webkit-flex;display:flex;position:relative;font-family:Consolas,\"Liberation Mono\",Menlo,Courier,monospace}.code-snippet__comment,.code-snippet__quote{color:#afafaf;font-style:italic}.code-snippet__keyword,.code-snippet__selector-tag,.code-snippet__subst{color:#ca7d37}.code-snippet__number,.code-snippet__literal,.code-snippet__variable,.code-snippet__template-variable,.code-snippet__tag .code-snippet__attr{color:#0e9ce5}.code-snippet__string,.code-snippet__doctag{color:#d14}.code-snippet__title,.code-snippet__section,.code-snippet__selector-id{color:#d14}.code-snippet__subst{font-weight:normal}.code-snippet__type,.code-snippet__class .code-snippet__title{color:#0e9ce5}.code-snippet__tag,.code-snippet__name,.code-snippet__attribute{color:#0e9ce5;font-weight:normal}.code-snippet__regexp,.code-snippet__link{color:#ca7d37}.code-snippet__symbol,.code-snippet__bullet{color:#d14}.code-snippet__built_in,.code-snippet__builtin-name{color:#ca7d37}.code-snippet__meta{color:#afafaf}.code-snippet__deletion{background:#fdd}.code-snippet__addition{background:#dfd}.code-snippet__emphasis{font-style:italic}.code-snippet__strong{font-weight:bold}.account_avatar{width:40px;height:40px;padding:0;}.account_info{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;padding:20px 0;align-items:center}.flex_bd{padding-left:14px;}.account_nickname{display:inline-block;vertical-align:middle;line-height:1.2;color:#576b95;font-size:14px}.account_desc{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;color:rgba(0,0,0,0.3);font-size:14px;line-height:1.2;padding-top:.4em}.msg_source_url{text-align:left;word-break:break-all;margin-top:20px;}.msg_source_url a{padding-right:10px;}.msg_source_url .url_text{color:#a8a8a8;}.video-desc{font-size:14px;margin-top:15px;color:#6c6c6c;}.msg_source_url{text-align:left;}.original_primary_card_tips{color:rgba(0,0,0,0.3);line-height:1.4;font-size:15px;}.weui-flex__item{margin-bottom:20px;padding:20px 16px;margin-top:16px;line-height:1.4;align-items:center;background-color:#f7f7f7;border-radius:8px;position:relative;}.original_primary_desc{color:rgba(0,0,0,0.5);font-size:14px;padding-top:4px;width:auto;overflow:hidden;text-overflow:ellipsis;}.msgBodyReplyList{border-top:1px solid #e1e1e1;margin-top:10px;}.msgBodyReplyListTop{border-top:0;}.reply_like_num{float:right;font-size:14px;color:#c7c7c7;}.msgData{margin-top:20px;color:#626262;}.msgData span{font-size:14px;padding-right:15px;}.msgData .likes{float:right;padding-right:0;}.js_text_content p{font-size:18px;}.rich_media_meta_link{font-size:15px;}blockquote {padding-left: 10px;border-left: 3px solid #dbdbdb;color: rgba(0,0,0,0.5);font-size: 15px;padding-top: 4px;margin: 1em 0;}.video_iframe{width:500px;height:400px;}.blockquote_info{color:#b5b5b5;margin-top:10px;}#copyright_logo{color:#bdbdbd;}.rich_media_meta_list{margin-bottom:10px;}.reprint{background:#efefef;border-radius:5px;padding:8px;color:#1f1f1f;}.reprint a{word-break:break-all;}.topic{color:#8e8e8e;background:#f7f7f7;border-radius:5px;padding:10px 8px;}.topic a{padding-right:5px;}.topic p{margin-bottom:5px;}\n<\/style>\n<link href=\"https:\/\/www.juyifx.cn\/config\/css\/wxArticle.css\" rel=\"stylesheet\"\/>\n<\/head><script>\nvar data={\"mp\":\"\u751f\u4fe1\u679c\",\"title\":\"\u642d\u5efa\u751f\u4fe1\u5206\u6790\u6d41\u6c34\u7ebf\uff0c\u5982\u5de5\u5382\u4e00\u683724\u5c0f\u65f6\u8fd0\u8f6cSnakemake\u2014\u2014\u8fdb\u9636\u547d\u4ee4\",\"time\":\"2023-09-01 19:00:43\",\"timeStamp\":\"1693566043\"};\n<\/script><br \/>\n<body><\/p>\n<div class=\"rich_media\">\n<h1 class=\"rich_media_title\" id=\"activity-name\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=Mzg3OTg3MjQyNg==&#038;mid=2247491794&#038;idx=1&#038;sn=2b7a4de95169c79202e44813885a8250&#038;chksm=cf7f7017f808f9015689839fe4057fd418bf7b20eb1dfb5a28cd92e56a41b5605e62bfbc16fb#rd\" target=\"_blank\" rel=\"noopener\">\u642d\u5efa\u751f\u4fe1\u5206\u6790\u6d41\u6c34\u7ebf\uff0c\u5982\u5de5\u5382\u4e00\u683724\u5c0f\u65f6\u8fd0\u8f6cSnakemake\u2014\u2014\u8fdb\u9636\u547d\u4ee4<\/a><\/h1>\n<div id=\"meta_content\" class=\"rich_media_meta_list\"><span id=\"copyright_logo\" class=\"wx_tap_link js_wx_tap_highlight rich_media_meta icon_appmsg_tag appmsg_title_tag weui-wa-hotarea\">\u539f\u521b&nbsp;&nbsp;<\/span><span class=\"rich_media_meta rich_media_meta_text\">\u5c0f\u679c&nbsp;&nbsp;<\/span><span class=\"rich_media_meta rich_media_meta_nickname\" id=\"profileBt\"><a href=\"javascript:void(0);\" class=\"wx_tap_link js_wx_tap_highlight weui-wa-hotarea\" id=\"js_name\">\u751f\u4fe1\u679c&nbsp;&nbsp;<\/a><\/span><em id=\"publish_time\" class=\"rich_media_meta rich_media_meta_text\">2023-09-01 19:00:43<\/em><\/div>\n<p><content><\/p>\n<section style=\"font-size: 16px;\" data-mpa-powered-by=\"yiban.io\">\n<section style=\"\" powered-by=\"xiumi.us\">\n<section style=\"text-align: left;\">\n<section>\n<section powered-by=\"xiumi.us\">\n<section style=\"letter-spacing: 0.578px;\">\n<section>\n<section style=\"width: 100%;flex: 0 0 100%;\" powered-by=\"xiumi.us\">\n<section style=\"opacity: 1;width: 100%;\">\n<section powered-by=\"xiumi.us\">\n<section style=\"line-height: 1.8;\">\n<section style=\"margin-top: 10px;margin-bottom: 20px;width: 100%;\" powered-by=\"xiumi.us\">\n<section style=\"flex-flow: row nowrap;text-align: center;width: 100%;\">\n<section style=\"display: flex;justify-content: center;flex-direction: row;\">\n<section style=\"display: inline-block;width: 100%;flex: 0 0 auto;align-self: flex-start;vertical-align: top;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;border-style: solid;border-width: 1px;border-color: rgb(67, 67, 67);height: auto;box-shadow: rgb(255, 219, 118) 6px 6px 0px;background-color: rgb(255, 255, 255);width: 100%;\">\n<section style=\"\" powered-by=\"xiumi.us\">\n<section style=\"text-align: left;justify-content: flex-start;display: flex;flex-flow: row nowrap;\">\n<section style=\"display: inline-block;vertical-align: top;width: 70.0348%;align-self: flex-start;flex: 0 0 auto;height: auto;max-width: 70.0348% !important;\">\n<section style=\"margin-top: 10px;\" powered-by=\"xiumi.us\">\n<section style=\"\" powered-by=\"xiumi.us\">\n<section style=\"text-align: center;\">\n<p style=\"text-indent: 0em;line-height: 1.75em;\"><span style=\"letter-spacing: 0.5px;\"><strong><span style=\"font-size: 15px;\">\u751f\u4fe1\u4ebaR\u8bed\u8a00\u5b66\u4e60\u5fc5\u5907<\/span><\/strong><\/span><\/p>\n<p style=\"text-indent: 0em;line-height: 1.75em;\"><span style=\"letter-spacing: 0.5px;\"><strong><span style=\"font-size: 15px;\">\u7acb\u523b\u62e5\u6709\u4e00\u4e2aRstudio\u8d26\u53f7<\/span><\/strong><\/span><\/p>\n<p style=\"text-indent: 0em;line-height: 1.75em;\"><span style=\"letter-spacing: 0.5px;\"><strong><span style=\"font-size: 15px;\">\u5f00\u542f\u5347\u7ea7\u6a21\u5f0f\u5427<\/span><\/strong><\/span><\/p>\n<p style=\"text-indent: 0em;line-height: 1.75em;\"><span style=\"color: rgb(255, 129, 36);font-size: 12px;letter-spacing: 0.5px;\">\uff0856\u7ebf\u7a0b\uff0c256G\u5185\u5b58\uff0c\u4e2a\u4eba\u5b58\u50a81T\uff09<\/span><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block;vertical-align: top;width: 29.9652%;align-self: flex-start;flex: 0 0 auto;height: auto;max-width: 29.9652% !important;\">\n<section style=\"margin-top: 10px;margin-bottom: 10px;\" powered-by=\"xiumi.us\">\n<section style=\"text-align: center;line-height: 0;\">\n<section>\n<section style=\"display: inline-block;vertical-align: middle;\" powered-by=\"xiumi.us\">\n<section style=\"line-height: 0;\">\n<section style=\"width: 111px;\" powered-by=\"xiumi.us\">\n<section style=\"line-height: 1.75em;text-indent: 0em;\">\n<section style=\"vertical-align: middle;display: inline-block;line-height: 0;height: auto;width: 111px;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"1\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/1_GBhsibRAgNiaQsH4ichdP9ibEhHMFA-80.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/zcicibWZessAyL6u7wJswOp8vtpzGp6vYngnlT6jiavu08Bvp2iblzGf3IkoBD9NGBhsibRAgNiaQsH4ichdP9ibEhHMFA\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"400\" style=\"vertical-align: middle;width: 100%;\"  data-recalc-dims=\"1\" \/><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section powered-by=\"xiumi.us\">\n<section style=\"display: contents;\" powered-by=\"xiumi.us\">\n<section style=\"display: contents;\">\n<section style=\"display: contents;\">\n<section style=\"height: 0px;overflow: hidden;\"><span style=\"font-size: 14px;letter-spacing: 0.578px;caret-color: red;\">&nbsp;<\/span><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"margin: 10px 0% 8px;justify-content: flex-start;display: flex;flex-flow: row nowrap;\" powered-by=\"xiumi.us\">\n<section style=\"display: inline-block;width: 100%;vertical-align: top;border-left: 3px solid rgb(219, 219, 219);border-bottom-left-radius: 0px;padding-left: 8px;align-self: flex-start;flex: 0 0 auto;\">\n<section style=\"color: rgba(0, 0, 0, 0.5);text-align: justify;font-size: 14px;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><span style=\"letter-spacing: 0.034em;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 13px;\">\u5c0f\u679c\u4e0a\u6b21\u4ecb\u7ecd\u4e86\u5206\u6790\u6d41\u7a0b\u7ba1\u7406\u5de5\u5177<span style=\"letter-spacing: 0.034em;font-family: Calibri;\">snakemake<\/span>\uff0c\u4ee5\u53ca\u8bb2\u89e3\u4e86\u4ed6\u7684\u57fa\u7840\u7528\u6cd5\uff0c\u5e76\u642d\u5efa\u4e86\u4e00\u4e2a\u57fa\u7840\u7684\u5206\u6790\u6d41\u7a0b\u3002\u5728\u6b64\u57fa\u7840\u4e0a\uff0c\u5c0f\u679c\u7ee7\u7eed\u5e26\u5927\u5bb6\u5b66\u4e60\u4ed6\u5f3a\u5927\u7684\u8fdb\u9636\u547d\u4ee4\uff0c\u5b8c\u5584\u793a\u4f8b\u6d41\u7a0b\u3002<\/span><\/p>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-ratio=\"0.37965260545905705\" data-s=\"300,640\" src=\"https:\/\/i0.wp.com\/www.biocloudservice.com\/wordpress\/wp-content\/uploads\/2024\/06\/2_vzNsN1mJoGicDOOAwQ3VoXOQ3bppXw.png?w=640\" onerror=\"this.src='https:\/\/mmbiz.qpic.cn\/sz_mmbiz_png\/zcicibWZessAy5NdGBau0dvb9VxslSuTibib3T5m6Sic0cMaBH7tPysApuTxJXvzNsN1mJoGicDOOAwQ3VoXOQ3bppXw\/640?wx_fmt=png'\" data-type=\"png\" data-w=\"403\" style=\"\"  data-recalc-dims=\"1\" \/><\/p>\n<p><br  \/><\/p>\n<p><br  \/><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">\u8fd9\u4e9b\u547d\u4ee4\u5305\u62ec\uff1a<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">\u6307\u5b9a\u6d41\u7a0b\u7684\u7ebf\u7a0b\u6570\u53caCPU\u5185\u6838\u6570\u3002<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">\u4e3a\u6d41\u7a0b\u6dfb\u52a0\u914d\u7f6e\u6587\u4ef6\u3002<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">\u5f15\u5165\u8f93\u5165\u6587\u4ef6\u7684\u51fd\u6570\u3002<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">\u6dfb\u52a0\u89c4\u5219\u53c2\u6570\u3002<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">\u4e3a\u6d41\u7a0b\u6dfb\u52a0\u65e5\u5fd7\u3002<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">\u8bbe\u7f6e\u8f93\u51fa\u6587\u4ef6\u4e3a\u4e34\u65f6\u6587\u4ef6\u6216\u8005\u4fdd\u62a4\u6587\u4ef6<\/span><span style=\"\"><o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\"><br  \/><\/span><\/p>\n<h2 style=\"text-align: center;\"><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><em><span style=\"font-size: 20px;\"><strong style=\"text-align: justify;letter-spacing: 0.034em;\"><span style=\"color: rgb(51, 51, 51);\">1.&nbsp;\u6307\u5b9a\u6d41\u7a0b\u7ebf\u7a0b\u6570<\/span><\/strong><\/span><\/em><\/span><strong><span style=\"font-family: Calibri;font-size: 16pt;\"><o:p><\/o:p><\/span><\/strong><\/h2>\n<\/section>\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">\u5bf9\u4e8e\u751f\u4fe1\u7684\u67d0\u4e9b\u5de5\u5177\uff0c\u5c0f\u679c\u5efa\u8bae\u4f7f\u7528\u591a\u4e2a\u7ebf\u7a0b\u4ee5\u52a0\u5feb\u8ba1\u7b97\u901f\u5ea6\u3002\u8be5\u5982\u4f55\u5b9e\u73b0\u5462\uff1f\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7threads\u6307\u4ee4\u8ba9Snakemake\u77e5\u9053\u89c4\u5219\u9700\u8981\u7684\u7ebf\u7a0b\u3002\u4f8b\u5982\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">rule bwa_map:<\/span><\/code><code><span class=\"code-snippet_outer\">    input:<\/span><\/code><code><span class=\"code-snippet_outer\">        \"data\/genome.fa\",<\/span><\/code><code><span class=\"code-snippet_outer\">        \"data\/samples\/{sample}.fastq\"<\/span><\/code><code><span class=\"code-snippet_outer\">    output:<\/span><\/code><code><span class=\"code-snippet_outer\">        \"mapped_reads\/{sample}.bam\"<\/span><\/code><code><span class=\"code-snippet_outer\">    threads: 8<\/span><\/code><code><span class=\"code-snippet_outer\">    shell:<\/span><\/code><code><span class=\"code-snippet_outer\">        \"bwa mem -t {threads} {input} | samtools view -Sb - &gt; {output}\"<\/span><\/code><\/pre>\n<\/section>\n<p><span style=\"\"><o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">\u6dfb\u52a0\u4e00\u884c\u547d\u4ee4\uff0c\u5c31\u53ef\u4ee5\u6307\u5b9arule bwa_map\u4f7f\u75288\u4e2a\u7ebf\u7a0b\u3002<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">\u503c\u5f97\u4e00\u63d0\u7684\u662fsnakemake\u4f1a\u786e\u4fdd\u540c\u65f6\u8fd0\u884c\u7684\u6240\u6709\u4f5c\u4e1a\u7684\u7ebf\u7a0b\u603b\u6570\uff0c\u4e0d\u8d85\u8fc7\u7ed9\u5b9a\u6570\u91cf\u7684CPU\u5185\u6838\u3002<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">\u6211\u4eec\u5728\u6267\u884csnakemake\u5de5\u4f5c\u6d41\u7a0b\u65f6\uff0c\u4f7f\u7528&#8211;cores\u53c2\u6570\uff0c\u6307\u5b9a\u4f7f\u7528\u7684CPU\u5185\u6838\u6570\u91cf\u3002<o:p><\/o:p><\/span><\/p>\n<p><span style=\"color: rgb(51, 51, 51);font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\"><o:p><\/o:p><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\">snakemake --cores 10<\/span><\/code><\/pre>\n<\/section>\n<p><br  \/><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">\u6bd4\u5982\u8fd9\u6761\u547d\u4ee4\uff0c\u5c31\u4f1a\u752810\u4e2aCPU\u5185\u6838\u6267\u884c\u8be5\u5de5\u4f5c\u6d41\u3002<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">rule bwa_map\u6307\u5b9a\u4e868\u4e2a\u7ebf\u7a0b\uff0c\u90a3\u4e48snakemake\u5c31\u4f1a\u7528\u5269\u4e0b\u4e24\u4e2a\u5185\u6838\u53bb\u6267\u884c\u5176\u4ed6\u7684\u4efb\u52a1\uff0c\u4f8b\u5982samtools_sort\u3002<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">\u5f53\u63d0\u4f9b\u7684\u5185\u6838\u5c11\u4e8e\u7ebf\u7a0b\u65f6\uff0c\u89c4\u5219\u4f7f\u7528\u7684\u7ebf\u7a0b\u6570\u5c06\u51cf\u5c11\u5230\u7ed9\u5b9a\u5185\u6838\u6570\u3002<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">\u5982\u679c\u7ed9\u51fa\u7684&#8211;cores\u6ca1\u6709\u6570\u5b57\uff0c\u5219\u4f7f\u7528\u6240\u6709\u53ef\u7528\u7684cores\u3002<\/span><span style=\"\"><o:p><\/o:p><\/span><\/p>\n<p style=\"text-align: center;\"><br  \/><\/p>\n<h2 style=\"text-align: center;\"><strong><em><span style=\"font-size: 20px;\">2.&nbsp;\u8bbe\u7f6e\u914d\u7f6e\u6587\u4ef6<\/span><\/em><\/strong><strong><span style=\"font-family: \u5b8b\u4f53;font-size: 16pt;\"><o:p><\/o:p><\/span><\/strong><\/h2>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"makefile\"><code><span class=\"code-snippet_outer\">SAMPLES = [\"A\", \"B\"]<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">rule bcftools_call:<\/span><\/code><code><span class=\"code-snippet_outer\">    input:<\/span><\/code><code><span class=\"code-snippet_outer\">        fa=\"data\/genome.fa\",<\/span><\/code><code><span class=\"code-snippet_outer\">        bam=expand(\"sorted_reads\/{sample}.bam\", sample=SAMPLES),<\/span><\/code><code><span class=\"code-snippet_outer\">        bai=expand(\"sorted_reads\/{sample}.bam.bai\", sample=SAMPLES)<\/span><\/code><code><span class=\"code-snippet_outer\">    output:<\/span><\/code><code><span class=\"code-snippet_outer\">        \"calls\/all.vcf\"<\/span><\/code><code><span class=\"code-snippet_outer\">    shell:<\/span><\/code><code><span class=\"code-snippet_outer\">        \"bcftools mpileup -f {input.fa} {input.bam} | \"<\/span><\/code><code><span class=\"code-snippet_outer\">        \"bcftools call -mv - &gt; {output}\"<\/span><\/code><\/pre>\n<\/section>\n<p><br  \/><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">\u4e0a\u671f\u8bb2\u89e3\u4e2d\u6211\u4eec\u4f7f\u7528<span style=\"color: rgb(64, 64, 64);letter-spacing: 0pt;\">SAMPLES\u5217\u8868<\/span>\uff0c\u6765\u5339\u914d\u6240\u6709\u6211\u4eec\u9700\u8981\u5904\u7406\u7684\u6587\u4ef6\u3002A\uff0cB\u3002<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">\u4f46\u662f\uff0c\u5f53\u65b0\u7684\u6570\u636e\u6765\u4e86\u9700\u8981\u6211\u4eec\u7684\u6d41\u7a0b\u5206\u6790\u65f6\uff0c\u9700\u8981\u624b\u52a8\u5730\u66f4\u6539\uff0c\u96be\u4ee5\u9002\u5e94\u65b0\u7684\u6570\u636e\u3002<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">Snakemake\u8003\u8651\u5230\u4e86\u8fd9\u79cd\u60c5\u51b5\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u79cd\u914d\u7f6e\u6587\u4ef6\u673a\u5236\u3002\u914d\u7f6e\u6587\u4ef6\u53ef\u4ee5\u7528JSON\u6216YAML\u7f16\u5199\uff0c\u5e76\u4e0e\u6307\u4ee4\u4e00\u8d77\u4f7f\u7528\u3002<\/span><span style=\"\"><o:p><\/o:p><\/span><\/p>\n<p style=\"white-space: normal;\"><span style=\"font-size: 14px;\"><br  \/><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\">configfile: \"config.yaml\"<\/span><\/code><\/pre>\n<\/section>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">\u6211\u4eec\u53ea\u9700\u8981\u5728\u5de5\u4f5c\u6d41\u7684\u9876\u7aef\u6dfb\u52a0\u8fd9\u4e00\u884c\u547d\u4ee4\u3002Snakemake\u5c06\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\uff0c\u5e76\u5c06\u5176\u5185\u5bb9\u5b58\u50a8\u5230\u540d\u4e3a\u7684\u5168\u5c40\u53ef\u7528\u5b57\u5178\u4e2d\u3002<\/span><span style=\"\"><o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">\u6211\u4eec\u521b\u5efa\u4e00\u4e2aconfig.yaml\u6587\u4ef6\uff0c\u7f16\u5199samples\u7684\u6587\u4ef6\u8def\u5f84<\/span><span style=\"\"><o:p><\/o:p><\/span><\/p>\n<p style=\"white-space: normal;\"><span style=\"font-size: 14px;\"><br  \/><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"http\"><code><span class=\"code-snippet_outer\">samples:    <\/span><\/code><code><span class=\"code-snippet_outer\">  A: data\/samples\/A.fastq    <\/span><\/code><code><span class=\"code-snippet_outer\">&nbsp;&nbsp;B:&nbsp;data\/samples\/B.fastq<\/span><\/code><\/pre>\n<\/section>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">\u73b0\u5728\u6211\u4eec\u5c31\u53ef\u4ee5\u53bb\u6389<span style=\"color: rgb(64, 64, 64);letter-spacing: 0pt;\">SAMPLES\u5217\u8868\uff0c\u5e76\u5c06rule\u6539\u4e3a<\/span><\/span><span style=\"font-family: \u5b8b\u4f53;color: rgb(64, 64, 64);letter-spacing: 0pt;font-size: 9pt;\"><o:p><\/o:p><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"nginx\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attribute\">rule<\/span> bcftools_call:<\/span><\/code><code><span class=\"code-snippet_outer\">    input:<\/span><\/code><code><span class=\"code-snippet_outer\">        fa=<span class=\"code-snippet__string\">\"data\/genome.fa\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">        bam=expand(<span class=\"code-snippet__string\">\"sorted_reads\/{sample}.bam\"<\/span>, sample=config[<span class=\"code-snippet__string\">\"samples\"<\/span>]),<\/span><\/code><code><span class=\"code-snippet_outer\">        bai=expand(<span class=\"code-snippet__string\">\"sorted_reads\/{sample}.bam.bai\"<\/span>, sample=config[<span class=\"code-snippet__string\">\"samples\"<\/span>])<\/span><\/code><code><span class=\"code-snippet_outer\">    output:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"calls\/all.vcf\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    shell:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"bcftools mpileup -f {input.fa} {input.bam} | \"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"bcftools call -mv - &gt; {output}\"<\/span><\/span><\/code><\/pre>\n<\/section>\n<p style=\"text-align: center;white-space: normal;\"><br  \/><\/p>\n<h2 style=\"text-align: center;\"><strong><em><span style=\"font-size: 20px;\">3.&nbsp;\u5b9a\u4e49\u8f93\u5165\u51fd\u6570<\/span><\/em><\/strong><\/h2>\n<\/section>\n<p><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(51, 51, 51);letter-spacing: 0pt;\">\u6211\u4eec\u5df2\u7ecf\u5c06sample\u6587\u4ef6\u7684\u8def\u5f84\u5b58\u50a8\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u56e0\u6b64\u6211\u4eec\u8fd8\u53ef\u4ee5\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\u6765\u4e3a\u4f7f\u7528\u8fd9\u4e9b\u8def\u5f84\u3002<\/span><span style=\"color: rgb(51, 51, 51);letter-spacing: 0pt;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><o:p><\/o:p><\/span><\/span><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">Snakemake \u5de5\u4f5c\u6d41\u7684\u6267\u884c\u5206\u4e3a\u4e09\u4e2a\u9636\u6bb5\u3002\u5206\u522b\u662f<o:p><\/o:p><\/span><\/p>\n<p style=\"margin-right: 0pt;margin-left: 0pt;\"><span style=\"color: rgb(51, 51, 51);letter-spacing: 0pt;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">1.\u5728\u521d\u59cb\u5316\u9636\u6bb5\uff0c\u5c06\u89e3\u6790\u5b9a\u4e49\u5de5\u4f5c\u6d41\u7684\u6587\u4ef6\uff0c\u5e76\u5b9e\u4f8b\u5316\u6240\u6709\u89c4\u5219\u3002<o:p><\/o:p><\/span><\/p>\n<p style=\"margin-right: 0pt;margin-left: 0pt;\"><span style=\"color: rgb(51, 51, 51);letter-spacing: 0pt;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">2.\u5728DAG\u9636\u6bb5\uff0c\u901a\u8fc7\u586b\u5145\u901a\u914d\u7b26\u5e76\u5c06\u8f93\u5165\u6587\u4ef6\u4e0e\u8f93\u51fa\u6587\u4ef6\u5339\u914d\uff0c\u53ef\u4ee5\u6784\u5efa\u6240\u6709\u4f5c\u4e1a\u7684\u6709\u5411\u65e0\u5faa\u73af\u4f9d\u8d56\u56fe\u3002<o:p><\/o:p><\/span><\/p>\n<p style=\"margin-right: 0pt;margin-left: 0pt;\"><span style=\"color: rgb(51, 51, 51);letter-spacing: 0pt;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">3.\u5728\u8c03\u5ea6\u9636\u6bb5\uff0c\u6267\u884c\u4f5c\u4e1a\u7684DAG\uff0c\u6839\u636e\u53ef\u7528\u8d44\u6e90\u542f\u52a8\u4f5c\u4e1a\u3002<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">\u5728\u521d\u59cb\u5316\u9636\u6bb5\uff0c\u8f93\u5165\u6587\u4ef6\u7684\u51fd\u6570\u4f1a\u88ab\u6267\u884c\uff0c\u4f46\u662f\u5728\u8fd9\u4e2a\u9636\u6bb5<span style=\"color: rgb(51, 51, 51);letter-spacing: 0pt;\">\u4f5c\u4e1a\u3001\u901a\u914d\u7b26\u503c\u548c\u89c4\u5219\u4f9d\u8d56\u5173\u7cfb\u8fd8\u4e0d\u77e5\u9053\u3002<\/span><o:p><\/o:p><\/span><\/p>\n<p><span style=\"color: rgb(51, 51, 51);letter-spacing: 0pt;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">\u6211\u4eec\u9700\u8981\u5c06\u8f93\u5165\u6587\u4ef6\u7684\u786e\u5b9a\u63a8\u8fdf\u5230DAG\u9636\u6bb5\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u5728\u8f93\u5165\u6307\u4ee4\u4e2d\u6307\u5b9a\u8f93\u5165\u51fd\u6570\u800c\u4e0d\u662f\u5b57\u7b26\u4e32\u6765\u5b9e\u73b0\u3002\u5bf9\u4e8e\u89c4\u5219\uff0c\u5176\u5de5\u4f5c\u539f\u7406\u5982\u4e0b\uff1a<\/span><span style=\"font-family: Helvetica;color: rgb(51, 51, 51);letter-spacing: 0pt;font-size: 7.5pt;\"><o:p><\/o:p><\/span><\/p>\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"python\"><code><span class=\"code-snippet_outer\">def get_bwa_map_input_fastqs(wildcards):<\/span><\/code><code><span class=\"code-snippet_outer\">    return config[\"samples\"][wildcards.sample]<\/span><\/code><code><span class=\"code-snippet_outer\">\u5b9a\u4e49\u4e00\u4e2a\u83b7\u53d6\u8f93\u5165\u6587\u4ef6\u8def\u5f84\u7684\u51fd\u6570\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">rule bwa_map:<\/span><\/code><code><span class=\"code-snippet_outer\">    input:<\/span><\/code><code><span class=\"code-snippet_outer\">        \"data\/genome.fa\",<\/span><\/code><code><span class=\"code-snippet_outer\">        get_bwa_map_input_fastqs #\u8c03\u7528\u8f93\u5165\u51fd\u6570<\/span><\/code><code><span class=\"code-snippet_outer\">    output:<\/span><\/code><code><span class=\"code-snippet_outer\">        \"mapped_reads\/{sample}.bam\"<\/span><\/code><code><span class=\"code-snippet_outer\">    threads: 8<\/span><\/code><code><span class=\"code-snippet_outer\">    shell:<\/span><\/code><code><span class=\"code-snippet_outer\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"bwa&nbsp;mem&nbsp;-t&nbsp;{threads}&nbsp;{input}&nbsp;|&nbsp;samtools&nbsp;view&nbsp;-Sb&nbsp;-&nbsp;&gt;&nbsp;{output}\"<\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"color: rgb(51, 51, 51);letter-spacing: 0pt;\">\u8fd9\u4e2a\u51fd\u6570\u4f1a\u8fd4\u56de\u8f93\u5165\u6587\u4ef6\u7684\u8def\u5f84\uff0c<\/span><span style=\"color: rgb(64, 64, 64);letter-spacing: 0pt;\">[wildcards<\/span><span style=\"color: rgb(102, 102, 102);letter-spacing: 0pt;\">.<\/span><span style=\"color: rgb(64, 64, 64);letter-spacing: 0pt;\">sample]\u901a\u8fc7\u8fd9\u4e2a\u547d\u4ee4\u53ef\u4ee5\u8fd4\u56de\u6587\u4ef6<\/span><\/span><\/p>\n<p style=\"white-space: normal;\"><br  \/><\/p>\n<p style=\"text-align: center;white-space: normal;\"><strong><em><span style=\"font-size: 20px;\">4. \u8bbe\u7f6e\u89c4\u5219\u7684\u53c2\u6570<\/span><\/em><\/strong><\/p>\n<p style=\"text-align: center;white-space: normal;font-size: 16px;\"><o:p><\/o:p><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;color: rgb(51, 51, 51);letter-spacing: 0pt;\">\u6709\u65f6\uff0cshell\u547d\u4ee4\u4e0d\u4ec5\u4ec5\u7531\u8f93\u5165\u548c\u8f93\u51fa\u6587\u4ef6\u4ee5\u53ca\u4e00\u4e9b\u9759\u6001\u6807\u5fd7\u7ec4\u6210\u3002\u6709\u65f6\u5019\u53ef\u80fd\u9700\u8981\u6839\u636e\u4f5c\u4e1a\u7684\u901a\u914d\u7b26\u503c\u8bbe\u7f6e\u5176\u4ed6\u53c2\u6570\u3002Snakemake\u5141\u8bb8\u4f7f\u7528\u6307\u4ee4params\u4e3a\u89c4\u5219\u5b9a\u4e49\u4efb\u610f\u53c2\u6570\u3002\u4f8b\u5982<\/span><span style=\"font-family: \u5b8b\u4f53;color: rgb(51, 51, 51);letter-spacing: 0pt;font-size: 7.5pt;\"><o:p><\/o:p><\/span><\/p>\n<p><span style=\"mso-spacerun:&quot;yes&quot;;font-family:&quot;Open Sans&quot;;mso-fareast-font-family:\u5b8b\u4f53;color:rgb(51,51,51);font-size:12.0000pt;mso-font-kerning:0.0000pt;\"><o:p><\/o:p><\/span><\/p>\n<\/section>\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"python\"><code><span class=\"code-snippet_outer\">rule bwa_map:<\/span><\/code><code><span class=\"code-snippet_outer\">    input:<\/span><\/code><code><span class=\"code-snippet_outer\">        \"data\/genome.fa\",<\/span><\/code><code><span class=\"code-snippet_outer\">        get_bwa_map_input_fastqs<\/span><\/code><code><span class=\"code-snippet_outer\">    output:<\/span><\/code><code><span class=\"code-snippet_outer\">        \"mapped_reads\/{sample}.bam\"<\/span><\/code><code><span class=\"code-snippet_outer\">    params:<\/span><\/code><code><span class=\"code-snippet_outer\">        rg=r\"@RGtID:{sample}tSM:{sample}\"<\/span><\/code><code><span class=\"code-snippet_outer\">    threads: 8<\/span><\/code><code><span class=\"code-snippet_outer\">    shell:<\/span><\/code><code><span class=\"code-snippet_outer\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\"bwa&nbsp;mem&nbsp;-R&nbsp;'{params.rg}'&nbsp;-t&nbsp;{threads}&nbsp;{input}&nbsp;|&nbsp;samtools&nbsp;view&nbsp;-Sb&nbsp;-&nbsp;&gt;&nbsp;{output}\"<\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/p>\n<\/section>\n<p><span style=\"font-size: 14px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(51, 51, 51);letter-spacing: 0pt;\">\u7a81\u53d8\u5206\u6790\u4f1a\u8003\u8651\u5f88\u591a\u53c2\u6570\u3002\u4e00\u4e2a\u7279\u522b\u91cd\u8981\u7684\u662f\u5148\u524d\u7684\u7a81\u53d8\u7387\uff08\u9ed8\u8ba4\u4e3a1e-3\uff09\u3002<\/span><span style=\"color: rgb(51, 51, 51);letter-spacing: 0pt;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><o:p><\/o:p><\/span><\/span><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;color: rgb(51, 51, 51);letter-spacing: 0pt;font-size: 14px;\">\u6211\u4eec\u53ef\u4ee5\u5411\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4e00\u4e2akey\u5e76\u4f7f\u7528\u89c4\u5219\u4e2d\u7684\u6307\u4ee4,\u5c06\u5176\u8c03\u7528\u5230shell\u547d\u4ee4\u6765\u914d\u7f6e\u8fd9\u4e2akey\u3002<\/span><span style=\"font-family: \u5b8b\u4f53;color: rgb(51, 51, 51);letter-spacing: 0pt;font-size: 7.5pt;\"><o:p><\/o:p><\/span><\/p>\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p style=\"text-align: center;\"><br  \/><\/p>\n<p style=\"text-align: center;white-space: normal;\"><strong><em><span style=\"font-size: 20px;\">5.\u65e5\u5fd7<\/span><\/em><\/strong><\/p>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><span style=\"color: rgb(51, 51, 51);letter-spacing: 0pt;\">\u5728\u6267\u884c\u4e00\u4e2a\u5927\u578b\u5de5\u4f5c\u6d41\u65f6\uff0c\u901a\u5e38\u9700\u8981\u5c06\u6bcf\u4e2a\u4f5c\u4e1a\u7684\u65e5\u5fd7\u8bb0\u5f55\u8f93\u51fa\u5b58\u50a8\u5230\u4e00\u4e2a\u5355\u72ec\u7684\u6587\u4ef6\u4e2d\uff0c\u800c\u4e0d\u662f\u5728\u591a\u4e2a\u4f5c\u4e1a\u5e76\u884c\u8fd0\u884c\u65f6\u5c06\u6240\u6709\u65e5\u5fd7\u8bb0\u5f55\u8f93\u51fa\u6253\u5370\u5230\u7ec8\u7aef\uff0c\u8fd9\u4f1a\u5bfc\u81f4\u8f93\u51fa\u6df7\u4e71\u3002\u4e3a\u6b64\uff0cSnakemake\u5141\u8bb8\u4e3a\u89c4\u5219\u6307\u5b9a\u65e5\u5fd7\u6587\u4ef6\u3002\u53ef\u4ee5\u901a\u8fc7\u6dfb\u52a0log\u547d\u4ee4\u6765\u5b8c\u6210<\/span>\u3002<\/span><span style=\"\"><o:p><\/o:p><\/span><\/p>\n<p><span style=\"mso-spacerun:&quot;yes&quot;;font-family:&quot;Open Sans&quot;;mso-fareast-font-family:\u5b8b\u4f53;color:rgb(51,51,51);font-size:12.0000pt;mso-font-kerning:0.0000pt;\"><o:p><\/o:p><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"python\"><code><span class=\"code-snippet_outer\">rule bwa_map:<\/span><\/code><code><span class=\"code-snippet_outer\">    input:<\/span><\/code><code><span class=\"code-snippet_outer\">        \"data\/genome.fa\",<\/span><\/code><code><span class=\"code-snippet_outer\">        get_bwa_map_input_fastqs<\/span><\/code><code><span class=\"code-snippet_outer\">    output:<\/span><\/code><code><span class=\"code-snippet_outer\">        \"mapped_reads\/{sample}.bam\"<\/span><\/code><code><span class=\"code-snippet_outer\">    params:<\/span><\/code><code><span class=\"code-snippet_outer\">        rg=r\"@RGtID:{sample}tSM:{sample}\"<\/span><\/code><code><span class=\"code-snippet_outer\">    log:<\/span><\/code><code><span class=\"code-snippet_outer\">        \"logs\/bwa_mem\/{sample}.log\"<\/span><\/code><code><span class=\"code-snippet_outer\">    threads: 8<\/span><\/code><code><span class=\"code-snippet_outer\">    shell:<\/span><\/code><code><span class=\"code-snippet_outer\">        \"(bwa mem -R '{params.rg}' -t {threads} {input} | \"<\/span><\/code><code><span class=\"code-snippet_outer\">        \"samtools view -Sb - &gt; {output}) 2&gt; {log}\"<\/span><\/code><\/pre>\n<\/section>\n<p><span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\">\u6267\u884cshell\u547d\u4ee4\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u7ba1\u9053\u4f20\u8f93\u5230\u65e5\u5fd7\u6587\u4ef6\u4e2d\u3002<o:p><\/o:p><\/span><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;white-space: normal;font-size: 16px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><strong><em><span style=\"font-size: 20px;\">6.\u4e34\u65f6\u6587\u4ef6\u548c\u4fdd\u62a4\u6587\u4ef6<\/span><\/em><\/strong><\/span><strong style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.034em;\"><em><span style=\"font-size: 20px;\">\u200d<\/span><\/em><\/strong><\/p>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">\u5f53\u6211\u4eec\u8fd0\u884c\u4e00\u4e2a\u5927\u578b\u5de5\u4f5c\u6d41\u65f6\uff0c\u4f1a\u4ea7\u751f\u8bb8\u591a\u4e2d\u95f4\u6587\u4ef6\uff0c\u8fd9\u4e9b\u6587\u4ef6\u4f1a\u5360\u7528\u5927\u91cf\u7684\u78c1\u76d8\u7a7a\u95f4\uff0c\u5e76\u4e14\u4e5f\u9700\u8981\u8017\u8d39\u8ba1\u7b97\u8d44\u6e90\u548c\u65f6\u95f4\u3002\u4e3a\u4e86\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\u53ef\u4ee5\u5c06\u8f93\u51fa\u6587\u4ef6\u8bbe\u7f6e\u4e3a\u4e34\u65f6\u6587\u4ef6\uff0c\u4e00\u65e6\u9700\u8981\u5b83\u7684\u4f5c\u4e1a\u6267\u884c\u5b8c\u6bd5\uff0c\u5c31\u4f1a\u5220\u9664\u8fd9\u4e2a\u4e34\u65f6\u6587\u4ef6\uff0c\u907f\u514d\u78c1\u76d8\u5360\u7528\u8fc7\u591a\u3002<\/span><span style=\"\"><o:p><\/o:p><\/span><\/p>\n<p><span style=\"color: rgb(51, 51, 51);font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><\/span><span style=\"mso-spacerun:&quot;yes&quot;;font-family:&quot;Open Sans&quot;;mso-fareast-font-family:\u5b8b\u4f53;color:rgb(51,51,51);font-size:12.0000pt;mso-font-kerning:0.0000pt;\"><o:p><\/o:p><\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"python\"><code><span class=\"code-snippet_outer\">rule bwa_map:<\/span><\/code><code><span class=\"code-snippet_outer\">    input:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"data\/genome.fa\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">        get_bwa_map_input_fastqs<\/span><\/code><code><span class=\"code-snippet_outer\">    output:<\/span><\/code><code><span class=\"code-snippet_outer\">        temp(<span class=\"code-snippet__string\">\"mapped_reads\/{sample}.bam\"<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\">    params:<\/span><\/code><code><span class=\"code-snippet_outer\">        rg=<span class=\"code-snippet__string\">r\"@RGtID:{sample}tSM:{sample}\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    log:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"logs\/bwa_mem\/{sample}.log\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    threads: <span class=\"code-snippet__number\">8<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    shell:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"(bwa mem -R '{params.rg}' -t {threads} {input} | \"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"samtools view -Sb - &gt; {output}) 2&gt; {log}\"<\/span><\/span><\/code><\/pre>\n<\/section>\n<p><span style=\"font-size: 14px;\">\u6709\u7684\u65f6\u5019\uff0c\u6211\u4eec\u5df2\u7ecf\u6267\u884c\u5b8c\u4e86\u5de5\u4f5c\u6d41\u7a0b\uff0c\u5f97\u5230\u4e86\u60f3\u8981\u7684\u7ed3\u679c\uff0c\u4e0d\u5e0c\u671b\u7ed3\u679c\u906d\u5230\u7be1\u6539\u3002\u6211\u4eec\u53ef\u4ee5\u5c06\u7ed3\u679c\u95ee\u4ef7\u4f60\u8bbe\u7f6e\u4e3a\u4fdd\u62a4\u6587\u4ef6\u3002Snakemake\u4f1a\u5bf9\u6587\u4ef6\u7cfb\u7edf\u4e2d\u7684\u8f93\u51fa\u6587\u4ef6\u8fdb\u884c\u5199\u4fdd\u62a4\uff0c\u8fd9\u6837\u5c31\u4e0d\u4f1a\u610f\u5916\u5730\u8986\u76d6\u6216\u5220\u9664\u5b83\u3002<span style=\"font-size: 14px;font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><o:p><\/o:p><\/span><\/span><\/p>\n<p><span style=\"font-size: 14px;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;white-space: normal;font-size: 16px;\"><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;\"><strong><em><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 20px;\">\u6d41\u7a0b\u603b\u7ed3<\/span><\/em><\/strong><\/span><\/p>\n<\/section>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">\u521b\u5efa\u914d\u7f6e\u6587\u4ef6<\/span><span style=\"\"><o:p><\/o:p><\/span><\/p>\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"http\"><code><span class=\"code-snippet_outer\">samples:    <\/span><\/code><code><span class=\"code-snippet_outer\">A: data\/samples\/A.fastq    <\/span><\/code><code><span class=\"code-snippet_outer\">B: data\/samples\/B.fastq<\/span><\/code><code><span class=\"code-snippet_outer\">prior_mutation_rate: 0.001<\/span><\/code><\/pre>\n<\/section>\n<p><span style=\"font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;\">Snakemake\u5de5\u4f5c\u6d41\u7a0b\u6587\u4ef6Snakefile<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"http\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attribute\">configfile<\/span>: \"config.yaml\" #\u6307\u5b9a\u914d\u7f6e\u6587\u4ef6<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">rule all:<\/span><\/code><code><span class=\"code-snippet_outer\">    input:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"plots\/quals.svg\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__function\"><span class=\"code-snippet__keyword\">def<\/span> <span class=\"code-snippet__title\">get_bwa_map_input_fastqs<\/span><span class=\"code-snippet__params\">(wildcards)<\/span>:<\/span> <span class=\"code-snippet__comment\">#\u5b9a\u4e49\u8f93\u5165\u51fd\u6570<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__keyword\">return<\/span> config[<span class=\"code-snippet__string\">\"samples\"<\/span>][wildcards.sample]<\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">rule bwa_map:<\/span><\/code><code><span class=\"code-snippet_outer\">    input:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"data\/genome.fa\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">        get_bwa_map_input_fastqs<\/span><\/code><code><span class=\"code-snippet_outer\">    output:<\/span><\/code><code><span class=\"code-snippet_outer\">        temp(<span class=\"code-snippet__string\">\"mapped_reads\/{sample}.bam\"<\/span>)<span class=\"code-snippet__comment\">#\u8bbe\u7f6e\u4e34\u65f6\u6587\u4ef6<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    params:<\/span><\/code><code><span class=\"code-snippet_outer\">        rg=<span class=\"code-snippet__string\">r\"@RGtID:{sample}tSM:{sample}\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    log:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"logs\/bwa_mem\/{sample}.log\"<\/span>  <span class=\"code-snippet__comment\">#\u8f93\u51fa\u65e5\u5fd7<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    threads: <span class=\"code-snippet__number\">8<\/span>  <span class=\"code-snippet__comment\">#\u8bbe\u5b9a\u7ebf\u7a0b<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    shell:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"(bwa mem -R '{params.rg}' -t {threads} {input} | \"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"samtools view -Sb - &gt; {output}) 2&gt; {log}\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">rule samtools_sort:<\/span><\/code><code><span class=\"code-snippet_outer\">    input:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"mapped_reads\/{sample}.bam\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    output:<\/span><\/code><code><span class=\"code-snippet_outer\">        protected(<span class=\"code-snippet__string\">\"sorted_reads\/{sample}.bam\"<\/span>)<\/span><\/code><code><span class=\"code-snippet_outer\">    shell:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"samtools sort -T sorted_reads\/{wildcards.sample} \"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"-O bam {input} &gt; {output}\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">rule samtools_index:<\/span><\/code><code><span class=\"code-snippet_outer\">    input:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"sorted_reads\/{sample}.bam\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    output:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"sorted_reads\/{sample}.bam.bai\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    shell:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"samtools index {input}\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">rule bcftools_call:<\/span><\/code><code><span class=\"code-snippet_outer\">    input:<\/span><\/code><code><span class=\"code-snippet_outer\">        fa=<span class=\"code-snippet__string\">\"data\/genome.fa\"<\/span>,<\/span><\/code><code><span class=\"code-snippet_outer\">        bam=expand(<span class=\"code-snippet__string\">\"sorted_reads\/{sample}.bam\"<\/span>, sample=config[<span class=\"code-snippet__string\">\"samples\"<\/span>]),<\/span><\/code><code><span class=\"code-snippet_outer\">        bai=expand(<span class=\"code-snippet__string\">\"sorted_reads\/{sample}.bam.bai\"<\/span>, sample=config[<span class=\"code-snippet__string\">\"samples\"<\/span>])<\/span><\/code><code><span class=\"code-snippet_outer\">    output:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"calls\/all.vcf\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    params:<\/span><\/code><code><span class=\"code-snippet_outer\">        rate=config[<span class=\"code-snippet__string\">\"prior_mutation_rate\"<\/span>]<\/span><\/code><code><span class=\"code-snippet_outer\">    log:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"logs\/bcftools_call\/all.log\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    shell:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"(bcftools mpileup -f {input.fa} {input.bam} | \"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"bcftools call -mv -P {params.rate} - &gt; {output}) 2&gt; {log}\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><code><span class=\"code-snippet_outer\">rule plot_quals:<\/span><\/code><code><span class=\"code-snippet_outer\">    input:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"calls\/all.vcf\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    output:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"plots\/quals.svg\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    script:<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">\"scripts\/plot-quals.py\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><br  \/><\/span><\/code><\/pre>\n<\/section>\n<p style=\"text-align: center;\"><br  \/><\/p>\n<p><strong><span style=\"font-family: \u5b8b\u4f53;\"><span style=\"font-family:\u5b8b\u4f53;\">\u597d\u4e86\u5c0f\u679c\u4eca\u5929\u7684\u8bb2\u89e3\u5c31\u5230\u8fd9\u91cc\u4e86\uff0c\u4e0b\u671f\u518d\u89c1<\/span><span style=\"font-family:Calibri;\">~<\/span><\/span><\/strong><strong><span style=\"font-family: \u5b8b\u4f53;\"><o:p><\/o:p><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><br  \/><\/p>\n<\/section>\n<section style=\"text-align: justify;\" powered-by=\"xiumi.us\">\n<p><br  \/><\/p>\n<p><span style=\"color: rgb(217, 33, 66);font-size: 10.5pt;font-family: \u5fae\u8f6f\u96c5\u9ed1;\">\u5176\u4ed6\u76f8\u5173\u5206\u6790\u5185\u5bb9\uff0c\u4f8b\u5982\u9884\u6d4b\u80bf\u7624\u6837\u672c\u836f\u7269\u654f\u611f\u6027\u5206\u6790(http:\/\/www.biocloudservice.com\/712\/712.php),\u9884\u6d4b\u67d0\u6837\u672c\u4e9a\u578b\u5bf9\u514d\u75ab\u6cbb\u7597\u7684\u53cd\u5e94(http:\/\/www.biocloudservice.com\/292\/292.php)\uff0c\u5355\u6837\u672c\u5bcc\u96c6\u7b97\u6cd5\u5206\u6790\u514d\u75ab\u6d78\u6da6\u4e30\u5ea6(http:\/\/www.biocloudservice.com\/106\/106.php)\uff0c\u8ba1\u7b9764\u79cd\u514d\u75ab\u7ec6\u80de\u76f8\u5bf9\u542b\u91cf(http:\/\/www.biocloudservice.com\/107\/107.php)\u7b49\u90fd\u53ef\u4ee5\u7528\u672c\u516c\u53f8\u65b0\u5f00\u53d1\u7684\u96f6\u4ee3\u7801\u4e91\u5e73\u53f0\u751f\u4fe1\u5206\u6790\u5c0f\u5de5\u5177\uff0c\u4e00\u952e\u5b8c\u6210\u8be5\u5206\u6790\u5965\uff0c\u611f\u5174\u8da3\u7684\u5c0f\u4f19\u4f34\u6b22\u8fce\u6765\u5c1d\u8bd5\u5965\uff0c\u7f51\u5740\uff1ahttp:\/\/www.biocloudservice.com\/home.html\u3002<\/span><span style=\"mso-spacerun:&quot;yes&quot;;font-family:\u5fae\u8f6f\u96c5\u9ed1;font-size:10.5000pt;mso-font-kerning:1.0000pt;\">\u4eca\u5929\u5c0f\u679c\u7684\u5206\u4eab\u5c31\u5230\u8fd9\u91cc\uff0c\u4e0b\u671f\u5728\u89c1\u5965\u3002<\/span><\/p>\n<p style=\"text-align: center;\"><br  \/><\/p>\n<p><span style=\"mso-spacerun:&quot;yes&quot;;font-family:\u5fae\u8f6f\u96c5\u9ed1;font-size:10.5000pt;mso-font-kerning:1.0000pt;\"><\/span><\/p>\n<p><span style=\"mso-spacerun:&quot;yes&quot;;font-family:\u5fae\u8f6f\u96c5\u9ed1;font-size:10.5000pt;mso-font-kerning:1.0000pt;\"><o:p><\/o:p><\/span><\/p>\n<section style=\"margin-bottom: 0px;letter-spacing: 0.578px;white-space: normal;caret-color: rgba(0, 0, 0, 0);font-size: 16px;\">\n<section>\n<section style=\"margin-top: 0.5em;\">\n<section style=\"padding: 0.5em;border-width: 1px;border-style: solid;box-shadow: rgb(226, 226, 226) 0px 16px 1px -13px;border-color: rgb(0, 150, 136);\">\n<section style=\"text-align: left;\">\n<section style=\"color: rgb(255, 129, 36);text-align: justify;\">\n<section style=\"margin-bottom: 8px;\">\n<p style=\"text-indent: 0em;line-height: 1.75em;\"><span style=\"letter-spacing: 0.5px;\">\u70b9\u51fb<strong><span style=\"color: rgb(0, 150, 136);\">\u201c\u9605\u8bfb\u539f\u6587\u201d<\/span><\/strong>\u7acb\u523b\u62e5\u6709<\/span><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"margin-bottom: 8px;font-size: 32px;color: rgb(0, 150, 136);\">\n<p style=\"text-indent: 0em;line-height: 1.75em;\"><span style=\"letter-spacing: 0.5px;\">\u2193\u2193\u2193&nbsp;<\/span><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<div class=\"msg_source_url\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=Mzg3OTg3MjQyNg==&#038;mid=2247490130&#038;idx=1&#038;sn=1578a7fab283ba24e1ce5cd6087e2d0d&#038;chksm=cf7c8a97f80b038111f1d3df359dbee67a49462b61b5bfed1060dd83c5d7b975f0db40f4626a#rd\" target=\"_blank\" rel=\"noopener\">\u9605\u8bfb\u539f\u6587<\/a><\/div>\n<p><\/content><\/p>\n<div class=\"msg_source_url\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=Mzg3OTg3MjQyNg==&#038;mid=2247490130&#038;idx=1&#038;sn=1578a7fab283ba24e1ce5cd6087e2d0d&#038;chksm=cf7c8a97f80b038111f1d3df359dbee67a49462b61b5bfed1060dd83c5d7b975f0db40f4626a#rd\" target=\"_blank\" rel=\"noopener\">\u9605\u8bfb\u539f\u6587<\/a><\/div>\n<\/div>\n<p><\/body><br \/>\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u642d\u5efa\u751f\u4fe1\u5206\u6790\u6d41\u6c34\u7ebf\uff0c\u5982\u5de5\u5382\u4e00\u683724\u5c0f\u65f6\u8fd0\u8f6cSnakemake\u2014\u2014\u8fdb\u9636\u547d\u4ee4 \u539f\u521b&nbsp;&nbsp;\u5c0f\u679c&#038;n [&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\/56018"}],"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=56018"}],"version-history":[{"count":1,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/56018\/revisions"}],"predecessor-version":[{"id":56021,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/56018\/revisions\/56021"}],"wp:attachment":[{"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=56018"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=56018"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.biocloudservice.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=56018"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}