I don't find trimmomatic.jar file
1
1
Entering edit mode
2.3 years ago
Hayler Edu ▴ 40

Hello everyone.

I installed trimmomatic on my computer using conda. The problem is that when I try to execute trimmomatic I have an error because I don't have a file with the name "trimmomatic-036.jar"

This is the command that I'm trying to execute

java -jar /home/linuxngs/Escritorio/NGS/Trimmomatic-0.36/trimmomatic-0.36.jar PE -threads 20 -phred33 -trimlog logFile /home/linuxngs/Escritorio/Datos/SEC1_chr10.1.fastq
Trimmomatic • 2.7k views
ADD COMMENT
3
Entering edit mode

Try just trimmomatic/Trimmomatic after activating the conda environment.

ADD REPLY
1
Entering edit mode

What is the name of the conda environment that you used to create? Hopefully you used this command to install trimmomatic -> conda install -c bioconda trimmomatic Use command -> conda env list Lets assume the name is trimmomatic Then the command to activate the conda environment is -> conda activate trimmomatic

Then to run trimmomatic just use this command accordingly :

trimmomatic PE -threads 4 SRR_1056_1.fastq SRR_1056_2.fastq \ SRR_1056_1.trimmed.fastq SRR_1056_1un.trimmed.fastq \ SRR_1056_2.trimmed.fastq SRR_1056_2un.trimmed.fastq \ ILLUMINACLIP:adapters.fa SLIDINGWINDOW:4:20

trimmomatic SE -threads 4 SRR_1056.fastq \ SRR_1056.trimmed.fastq SRR_1056_un.trimmed.fastq \ ILLUMINACLIP:SRR_adapters.fa SLIDINGWINDOW:4:20

ADD REPLY
1
Entering edit mode

Helloooo thank you for the help to resolve the error

ADD REPLY
3
Entering edit mode
2.3 years ago
Prosad ▴ 30

Hi,

The problem is that you have installed trimmomatic from conda and you are trying to run it from a local file location (/home/linuxngs/Escritorio/NGS/Trimmomatic-0.36/trimmomatic-0.36.jar), probably it is not there because you have not downloaded as a jar file and this is the reason it is showing the error.

You have to run it within the conda environment.

First make sure you have trimmomatic installed in your current conda environment by typing:

conda list | grep "trimmomatic"

If it is installed then above command will show which version is installed.

Then it is pretty straightforward, you have to type

trimmomatic PE -threads 20 -phred33 -trimlog logFile /home/linuxngs/Escritorio/Datos/SEC1_chr10.1.fastq

and please make sure you're using paired end reads. You are using "PE" and using only a single input file.

hope it helps!

ADD COMMENT

Login before adding your answer.

Traffic: 1955 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6