{"id":2508,"date":"2019-03-01T10:59:02","date_gmt":"2019-03-01T10:59:02","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/?page_id=2508"},"modified":"2021-04-07T11:55:12","modified_gmt":"2021-04-07T10:55:12","slug":"canu","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/applications\/canu\/","title":{"rendered":"Canu"},"content":{"rendered":"<h2>Overview<\/h2>\n<p><a href=\"https:\/\/canu.readthedocs.io\/en\/latest\/\">Canu<\/a> is a fork of the Celera Assembler, designed for high-noise single-molecule sequencing (such as the PacBio RS II\/Sequel or Oxford Nanopore MinION).<\/p>\n<p>The application is written in C++ and can be used in batch or interactively (via the qrsh command).<\/p>\n<p>Version 2.0 and 1.8 are installed on the CSF.<\/li>\n<h2>Restrictions on use<\/h2>\n<p>There are no restrictions on using this software on the CSF. The application is released under the GPLv2 license.<\/p>\n<h2>Set up procedure<\/h2>\n<p>To access the software you must load ONE of the modulefiles:<\/p>\n<pre>\r\nmodule load apps\/binapps\/canu\/2.1.1\r\nmodule load apps\/binapps\/canu\/2.0\r\nmodule load apps\/canu\/1.8\r\n<\/pre>\n<p>We recommend that you load the modulefile in your jobscript &#8211; see examples below.<\/p>\n<h2>Running the application<\/h2>\n<p>Please do not run canu on the login node. Jobs should be submitted to the compute nodes via batch or run interactively via the qrsh command. Note that canu has the ability to submit batch jobs on your behalf. However this does not work correctly on the CSF (because canu will try to submit jobs from other jobs which is not supported on the CSF). So you must run it from a jobscript and submit the job to the batch system in the usual way.<\/p>\n<h3>Serial batch job submission<\/h3>\n<p>Example jobscript<\/p>\n<pre>\r\n#!\/bin\/bash --login\r\n#$ -cwd             # Job will run from the current directory\r\n\r\n# Load the software\r\n\r\nmodule load apps\/binapps\/canu\/2.0\r\n\r\n# $NSLOTS is automatically set to 1 in a serial job\r\n# You MUST set the maxThreads, mhapThreads and maxMemory options\r\n# to tell canu how much resource it can use. We assume 4GB per core.\r\n# The useGrid=false option is needed to run from a batch job.\r\n\r\ncanu -d run1 -p godzilla genomeSize=1g maxThreads=$NSLOTS mhapThreads=$NSLOTS maxMemory=$((4*NSLOTS)) \\\r\n    useGrid=false -nanopore-raw reads\/*.fasta.gz\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>Example jobscript<\/p>\n<pre>#!\/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 software\r\n\r\nmodule load apps\/binapps\/canu\/2.0\r\n\r\n# $NSLOTS is automatically set to the number given on the -pe line above.\r\n# You MUST set the maxThreads, mhapThreads and maxMemory options\r\n# to tell canu how much resource it can use. We assume 4GB per core.\r\n# The useGrid=false option is needed to run from a batch job.\r\n\r\ncanu -d run1 -p godzilla genomeSize=1g maxThreads=$NSLOTS mhapThreads=$NSLOTS maxMemory=$((4*NSLOTS)) \\        \r\n   useGrid=false -nanopore-raw reads\/*.fasta.gz            #                    #\r\n                                                           #                    # Ensure 4GB\/core \r\n                                                           #                    # is used    \r\n                                                           #\r\n                                                           # If your pipeline uses the MHAP algorithm\r\n                                                           # this ensures Java will use the correct \r\n                                                           # number of cores\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>Documentation is available on the <a href=\"https:\/\/canu.readthedocs.io\/en\/latest\/\">canu<\/a> website.<\/li>\n<\/ul>\n<h2>Updates<\/h2>\n<p>None.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview Canu is a fork of the Celera Assembler, designed for high-noise single-molecule sequencing (such as the PacBio RS II\/Sequel or Oxford Nanopore MinION). The application is written in C++ and can be used in batch or interactively (via the qrsh command). Version 2.0 and 1.8 are installed on the CSF. Restrictions on use There are no restrictions on using this software on the CSF. The application is released under the GPLv2 license. Set up.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/applications\/canu\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":86,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2508","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2508","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/comments?post=2508"}],"version-history":[{"count":16,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2508\/revisions"}],"predecessor-version":[{"id":5320,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/2508\/revisions\/5320"}],"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=2508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}