{"id":1235,"date":"2014-01-20T10:37:37","date_gmt":"2014-01-20T10:37:37","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/?page_id=1235"},"modified":"2018-06-26T16:14:41","modified_gmt":"2018-06-26T16:14:41","slug":"bwa","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/software\/applications\/bwa\/","title":{"rendered":"BWA"},"content":{"rendered":"<h2>Overview<\/h2>\n<p><a href=\"http:\/\/bio-bwa.sourceforge.net\/\">BWA<\/a> (Burrows-Wheeler Aligner) is a software package for mapping low-divergent sequences against a large reference genome, such as the human genome. There are three algorithms implemented &#8211; BWA-backtrack, BWA-SW and BWA-MEM &#8211; see the <a href=\"http:\/\/bio-bwa.sourceforge.net\/\">BWA website<\/a> for advice on which to use.<\/p>\n<p>Versions 0.7.15, 0.7.5a and 0.7.17 are installed on the CSF. They were compiled with gcc 4.7.0.<\/p>\n<h2>Restrictions on use<\/h2>\n<p>There are no restrictions on accessing the software on the CSF. It is released under the GNU GPL v3 <a href=\"https:\/\/www.gnu.org\/licenses\/gpl.html\">license<\/a> and all usage must adhere to that license.<\/p>\n<p>Please cite your usage of this software as detailed on the <a href=\"http:\/\/bio-bwa.sourceforge.net\/\">BWA website<\/a>.<\/p>\n<h2>Set up procedure<\/h2>\n<p>To access the software you must first load <em>one<\/em> of the following the modulefiles:<\/p>\n<pre>\r\nmodule load apps\/gcc\/bwa\/0.7.17\r\nmodule load apps\/gcc\/bwa\/0.7.15\r\nmodule load apps\/gcc\/bwa\/0.7.5a\r\n<\/pre>\n<h2>Running the application<\/h2>\n<p>Please do not run BWA on the login node. Jobs should be submitted to the compute nodes via batch.<\/p>\n<p>A full description of all of the BWA commands and flags accepted by the application is beyond the scope of this web-page.<\/p>\n<p>However, you <em>may<\/em> run the following command on the login node to see a list of flag \/ args that the application will accept. These should be used in your jobscript:<\/p>\n<pre>\r\nman bwa\r\n\r\n(press 'space' to page down through the help text, q to quit)\r\n<\/pre>\n<p>You may also run the following command on the login node to see a summary of commands and flags accepted by the application:<\/p>\n<pre>\r\nbwa\r\n<\/pre>\n<p>To see the help text for a specific bwa <em>command<\/em>, run:<\/p>\n<pre>\r\nbwa <em>command<\/em>\r\n<\/pre>\n<p>For example:<\/p>\n<pre>\r\nbwa fastmap\r\n<\/pre>\n<p>You <strong>must check<\/strong> whether the command you are using accepts a flag to specify the number of threads (cores) to use. This should then be applied to the command-line in your jobscript.<\/p>\n<h3>Serial batch job submission<\/h3>\n<p>Make sure you have the modulefile loaded then create a batch submission script, for example:<\/p>\n<pre>\r\n#!\/bin\/bash\r\n#$ -cwd             # Job will run from the current directory\r\n#$ -V               # Job will inherit current environment settings\r\n\r\n# These commands will only use one core\r\nbwa index <em>args...<\/em>\r\nbwa samse <em>args...<\/em>\r\nbwa sampe <em>args...<\/em>\r\n\r\n<\/pre>\n<p>Submit the jobscript using: <\/p>\n<pre>qsub <em>scriptname<\/em><\/pre>\n<p>where <em>scriptname<\/em> is the name of your jobscript.<\/p>\n<h3>Parallel batch job submission<\/h3>\n<p>Make sure you have the modulefile loaded then create a batch submission script, for example:<\/p>\n<pre>\r\n#!\/bin\/bash\r\n#$ -cwd             # Job will run from the current directory\r\n#$ -V               # Job will inherit current environment settings\r\n#$ -pe smp.pe 8     # Number of cores to use (can be 2 -- 24)\r\n\r\n# $NSLOTS is automatically set to the number of cores specified above\r\n\r\n# These commands can be run using multiple cores\r\nbwa mem -t $NSLOTS <em>args...<\/em>\r\nbwa aln -t $NSLOTS <em>args...<\/em>\r\nbwa bwasw -t $NSLOTS <em>args...<\/em>\r\n<\/pre>\n<p>Submit the jobscript using: <\/p>\n<pre>qsub <em>scriptname<\/em><\/pre>\n<p>where <em>scriptname<\/em> is the name of your jobscript.<\/p>\n<h2>Further info<\/h2>\n<ul>\n<li><a href=\"http:\/\/bio-bwa.sourceforge.net\/\">BWA website<\/a><\/li>\n<\/ul>\n<h2>Updates<\/h2>\n<p>None.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview BWA (Burrows-Wheeler Aligner) is a software package for mapping low-divergent sequences against a large reference genome, such as the human genome. There are three algorithms implemented &#8211; BWA-backtrack, BWA-SW and BWA-MEM &#8211; see the BWA website for advice on which to use. Versions 0.7.15, 0.7.5a and 0.7.17 are installed on the CSF. They were compiled with gcc 4.7.0. Restrictions on use There are no restrictions on accessing the software on the CSF. It is.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/software\/applications\/bwa\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":31,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1235","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages\/1235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/comments?post=1235"}],"version-history":[{"count":11,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages\/1235\/revisions"}],"predecessor-version":[{"id":4754,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages\/1235\/revisions\/4754"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/pages\/31"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf-apps\/wp-json\/wp\/v2\/media?parent=1235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}