Trimming with Trimmomatic

Trimming Exercise

Please copy the trimming directory from our shared folder

Although we have a shell script that we can simply submit using sbatch, we will perform this analysis in interactive mode. The script is useful as a reference for future use.

To start we must first enter the interactive session

In the above command, I have requested one cpu on one node for three hours and 4GB of memory.

Now I will load the Trimmomatic module. Remember, to check the version number, you can simply type module avail trimmomatic

Trimmomatic is a java application and for this reason, it needs to be executed with the commands java -jar followed by the actual application .jar file. Lucky for us, once we loaded the Trimmomatic module, a new variable was placed in our environment with the path the to .jar file. To find this path type the following:

The TRIMMOMATIC_JAR variable provides us with this path. Now to execute Trimmomatic let’s write out the entire line. Notice that since this is going to be an extremely long line, we can use a \ to tell bash interpreter that although I am not enterine a new line, do not interpret it asif I have pressed enter. YOU MUST MAKE SURE THERE IS NO SPACE AFTER THE \

You should now have 4 new files in your directory.