{"id":3549,"date":"2019-06-28T12:28:58","date_gmt":"2019-06-28T11:28:58","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/?page_id=3549"},"modified":"2019-07-08T17:40:05","modified_gmt":"2019-07-08T16:40:05","slug":"spades","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/applications\/spades\/","title":{"rendered":"SPAdes"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>SPAdes &#8211; St. Petersburg genome assembler \u2013 is intended for both standard isolates and single-cell MDA bacteria assemblies.<\/p>\n<p>Versions 3.11.1, 3.10.1 and 3.5.0 are installed on the CSF.<\/p>\n<p>Note that other tools such as metaSPAdes are included in SPAdes. Run <code>spades.py -h<\/code> to see the command-line flags accepted by spades (for example <code>--meta<\/code>).<\/p>\n<h2>Restrictions on use<\/h2>\n<p>This software is open source and may be used by any CSF user. Please ensure that you cite your usage in any results or publications as per the <a href=\"http:\/\/spades.bioinf.spbau.ru\/release3.5.0\/manual.html#sec4\">developers documentation<\/a>.<\/p>\n<h2>Set up procedure<\/h2>\n<p>We now recommend loading modulefiles within your jobscript so that you have a full record of how the job was run. See the example jobscript below for how to do this. Alternatively, you may load modulefiles on the login node and let the job <abbr title=\"add '#$ -V' to your jobscript\">inherit these settings<\/abbr>.<\/p>\n<p>To access the software you must first load the modulefile:<\/p>\n<pre>\r\nmodule load apps\/binapps\/spades\/3.13.1\r\nmodule load apps\/binapps\/spades\/3.11.1\r\nmodule load apps\/binapps\/spades\/3.10.1\r\nmodule load apps\/binapps\/spades\/3.5.0\r\n<\/pre>\n<h2>Running the application<\/h2>\n<p>Please do not run SPAdes on the login node. Jobs should be submitted to the compute nodes via batch.<\/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 --login\r\n#$ -cwd             # Job will run from the current directory\r\n\r\n# Load the modulefile in the jobscript - choose your required version\r\nmodule load apps\/binapps\/spades\/3.11.1\r\n\r\n# $NSLOTS will be set automatically to 1 in a serial job\r\nspades.py --threads $NSLOTS -1 <em>file1.in<\/em> -2 <em>file2.in<\/em> -o <em>output_dir<\/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<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 --login\r\n#$ -cwd             # Job will run from the current directory\r\n#$ -pe smp.pe 8     # Number of cores (2--32 permitted)\r\n\r\n# Load the modulefile in the jobscript - choose your required version\r\nmodule load apps\/binapps\/spades\/3.11.1\r\n\r\n# $NSLOTS will be set automatically to the number of cores given above\r\nspades.py --threads $NSLOTS -1 <em>file1.in<\/em> -2 <em>file2.in<\/em> -o <em>output_dir<\/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<h3>High-memory batch job submission<\/h3>\n<p>Note that metaspades itself has a default memory limit of 250GB built-in. So even if your batch job has access to more memory (because you are running it on one of the high-memory nodes) you must instruct metaspades that it can use more memory using an extra <code>-m <em>NUM_GB<\/em><\/code> flag on the metaspades command line. For example, to inform metaspades that you are using a node with 512GB of RAM:<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#$ -cwd             # Job will run from the current directory\r\n#$ -pe smp.pe 16    # Number of cores (2--16 permitted on a mem512 node)\r\n#$ -l mem512        # Run on a 512GB node\r\n\r\n# Load the modulefile in the jobscript - choose your required version\r\nmodule load apps\/binapps\/spades\/3.11.1\r\n\r\n# $NSLOTS will be set automatically to the number of cores given above\r\nspades.py <strong>-m 512<\/strong> --threads $NSLOTS -1 <em>file1.in<\/em> -2 <em>file2.in<\/em> -o <em>output_dir<\/em>\r\n            #\r\n            # Extra flag to increase metaspade's in-built memory\r\n            # limit (from 250GB) to 512GB.\r\n<\/pre>\n<p>Note that your jobscript must request a high-memory node and sufficient number of cores to allow the job to use enough memory to allow metaspades to process your data. Simply adding the <code>-m<\/code> flag to the metaspades command is not enough &#8211; if the job tries to use more memory than the batch system allows for your job then the batch system will kill the job.<\/p>\n<h2>Further info<\/h2>\n<ul>\n<li><a href=\"http:\/\/cab.spbu.ru\/files\/release3.11.1\/manual.html\">SPAdes version 3.11.1 website<\/a><\/li>\n<li><a href=\"http:\/\/cab.spbu.ru\/files\/release3.10.1\/manual.html\">SPAdes version 3.10.1 website<\/a><\/li>\n<li><a href=\"http:\/\/spades.bioinf.spbau.ru\/release3.5.0\/manual.html\">SPAdes version 3.5.0 website<\/a><\/li>\n<\/ul>\n<h2>Updates<\/h2>\n<p>None.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview SPAdes &#8211; St. Petersburg genome assembler \u2013 is intended for both standard isolates and single-cell MDA bacteria assemblies. Versions 3.11.1, 3.10.1 and 3.5.0 are installed on the CSF. Note that other tools such as metaSPAdes are included in SPAdes. Run spades.py -h to see the command-line flags accepted by spades (for example &#8211;meta). Restrictions on use This software is open source and may be used by any CSF user. Please ensure that you cite.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/applications\/spades\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":86,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3549","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/3549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/comments?post=3549"}],"version-history":[{"count":6,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/3549\/revisions"}],"predecessor-version":[{"id":3596,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/3549\/revisions\/3596"}],"up":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/86"}],"wp:attachment":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/media?parent=3549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}