{"id":4408,"date":"2020-01-10T14:02:59","date_gmt":"2020-01-10T14:02:59","guid":{"rendered":"http:\/\/ri.itservices.manchester.ac.uk\/csf3\/?page_id=4408"},"modified":"2020-01-10T16:24:45","modified_gmt":"2020-01-10T16:24:45","slug":"trimmomatic","status":"publish","type":"page","link":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/applications\/trimmomatic\/","title":{"rendered":"Trimmomatic"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>Trimmomatic is a program to perform a variety of useful trimming tasks for Illumina paired-end and single ended data.<\/p>\n<p>Versions 0.32, 0.35, 0.36 and 0.39 are installed.<\/p>\n<h2>Restrictions on use<\/h2>\n<p>Trimmomatic is licensed under the GNU General Public License version 3; there are no restrictions on its use.<\/p>\n<p>All users may access and use Trimmomatic. The software is open source using the GPL3 license. Users should consult the following file for further information:<\/p>\n<pre>$TRIMMOMATIC_HOME\/doc\/LICENSE<\/pre>\n<p>For citation information see the <a href=\"http:\/\/www.usadellab.org\/cms\/index.php?page=trimmomatic\">Trimmomatic website<\/a>.<\/p>\n<h2>Set up procedure<\/h2>\n<p>The Trimmomatic adapter files can be found under the directory $TRIMMOMATICSHARE\/adapters\/<\/p>\n<h2>Environment variables<\/h2>\n<p>The modulefile defines a number of environment variables that can be used to access data files and modify the behaviour of the program:<\/p>\n<pre>$TRIMMOMATIC_JAVA_TMPDIR\r\n$TRIMMOMATICSHARE\r\n$TRIMMOMATIC_JAVA_MEM_MX<\/pre>\n<h2>Running the application<\/h2>\n<p>Please do not run trimmomatic commands on the login node. Computationally intense work should be done via the batch system.<\/p>\n<p>It can be run in single or paired end mode. A wrapper has been included you you don&#8217;t need to run the java command.<\/p>\n<h5>single<\/h5>\n<pre>java -jar $TRIMMOMATIC_JAVA\/trimmomatic.jar SE [-threads &lt;threads&gt;] [-phred33 | -phred64] [-trimlog &lt;logFile&gt;] &lt;input&gt; &lt;output&gt; &lt;step 1&gt; ...\u200b<\/pre>\n<h5>paired<\/h5>\n<pre>java -jar &lt;$TRIMMOMATIC_JAVA\/trimmomatic.jar&gt; PE [-threads &lt;threads] [-phred33 | -phred64] [-trimlog &lt;logFile&gt;] &lt;input 1&gt; &lt;input 2&gt; &lt;paired output 1&gt; &lt;unpaired output 1&gt; &lt;paired output 2&gt; &lt;unpaired output 2&gt; &lt;step 1&gt; ...<\/pre>\n<h3>Examples<\/h3>\n<h4>Serial batch submission<\/h4>\n<pre>#!\/bin\/bash\u00a0 --login\r\n#$ -S \/bin\/bash\r\n#$ -cwd # Job will run from the current directory\r\nmodule load apps\/binapps\/trimmomatic\/0.39\r\n\r\ntrimmomatic --threads $NSLOTS SE in.fq out.fq OPERATION [OPERATION...] &gt; out.log<\/pre>\n<p>Note that the\u00a0<code>$NSLOTS<\/code>\u00a0variable will be set automatically to\u00a0<code>1<\/code>\u00a0by the batch system. This ensure trimmomatic uses only a single core, matching the single core you\u2019ve reserved by using a serial jobscript.<\/p>\n<p>Submit the jobscript using:<\/p>\n<pre>qsub <em>scriptname<\/em><\/pre>\n<p>where\u00a0<em>scriptname<\/em>\u00a0is the name of your jobscript.<\/p>\n<h4>Parallel batch submission<\/h4>\n<pre>#!\/bin\/bash\u00a0 --login\r\n#$ -S \/bin\/bash\r\n#$ -cwd # Job will run from the current directory\r\n#$ -pe smp.pe 8 # Example: 8 cores. Can specify 2-32. Do NOT use 1\r\nmodule load apps\/binapps\/trimmomatic\/0.39\r\n\r\ntrimmomatic --threads $NSLOTS SE in.fq out.fq OPERATION [OPERATION...] &gt; out.log<\/pre>\n<p>Note that\u00a0<code>$NSLOTS<\/code>\u00a0will be set automatically to the number of cores requested on the\u00a0<code>#$ -pe<\/code>\u00a0line. This ensures the trimmomatic uses only the cores you have reserved in the batch system.<\/p>\n<p>Submit the jobscript using:<\/p>\n<pre>qsub <em>scriptname<\/em><\/pre>\n<p>where\u00a0<em>scriptname<\/em>\u00a0is the name of your jobscript.<\/p>\n<h2>Further info<\/h2>\n<ul>\n<li><a href=\"http:\/\/www.usadellab.org\/cms\/index.php?page=trimmomatic\">Trimmomatic website<\/a><\/li>\n<li><a href=\"http:\/\/www.usadellab.org\/cms\/uploads\/supplementary\/Trimmomatic\/TrimmomaticManual_V0.32.pdf\">Trimmomatic manual (pdf)<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Overview Trimmomatic is a program to perform a variety of useful trimming tasks for Illumina paired-end and single ended data. Versions 0.32, 0.35, 0.36 and 0.39 are installed. Restrictions on use Trimmomatic is licensed under the GNU General Public License version 3; there are no restrictions on its use. All users may access and use Trimmomatic. The software is open source using the GPL3 license. Users should consult the following file for further information: $TRIMMOMATIC_HOME\/doc\/LICENSE.. <a href=\"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/software\/applications\/trimmomatic\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"parent":86,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-4408","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/4408","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/comments?post=4408"}],"version-history":[{"count":8,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/4408\/revisions"}],"predecessor-version":[{"id":4428,"href":"https:\/\/ri.itservices.manchester.ac.uk\/csf3\/wp-json\/wp\/v2\/pages\/4408\/revisions\/4428"}],"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=4408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}