trimmomatic unknown trimmer
0
0
Entering edit mode
2.8 years ago
Xiaoyun ▴ 10

Hi all:

I'm trying to trim some read data but i'm getting an error message. This is my input

java -jar /home/yun/Downloads/Trimmomatic-0.39/trimmomatic-0.39.jar PE -threads 2 -phred33 ly1_1.fq ly1_2.fq \ly1_paired_1.trim.fq.gz ly1_unpaired_1.trim.fq.gz ly1_paired_2.trim.fq.gz ly1_unpaired_2.trim.fq,gz \ HEADCROP:9

This is my error:

    TrimmomaticPE: Started with arguments:
 -threads 2 -phred33 ly1_1.fq ly1_2.fq ly1_paired_1.trim.fq.gz ly1_unpaired_1.trim.fq.gz ly1_paired_2.trim.fq.gz ly1_unpaired_2.trim.fq,gz  HEADCROP:9
Exception in thread "main" java.lang.RuntimeException: Unknown trimmer:  HEADCROP
    at org.usadellab.trimmomatic.trim.TrimmerFactory.makeTrimmer(TrimmerFactory.java:73)
    at org.usadellab.trimmomatic.Trimmomatic.createTrimmers(Trimmomatic.java:59)
    at org.usadellab.trimmomatic.TrimmomaticPE.run(TrimmomaticPE.java:552)
    at org.usadellab.trimmomatic.Trimmomatic.main(Trimmomatic.java:80)

Any help would be appreciated.

Trimmomatic • 1.2k views
ADD COMMENT
0
Entering edit mode

ly1_unpaired_2.trim.fq,gz

You have a comma in the last file name. Remove that and try again.

ADD REPLY
0
Entering edit mode

It didn't work.

java -jar /home/yun/Downloads/Trimmomatic-0.39/trimmomatic-0.39.jar PE -threads 2 -phred33 ly1_1.fq ly1_2.fq \ ly1_paired_1.trimmed.fq.gz ly1_unpaired_1.trimmed.fq.gz ly1_paired_2.trimmed.fq.gz ly1_unpaired_2.trimmed.fq.gz \ HEADCROP:9 

    TrimmomaticPE: Started with arguments:
 -threads 2 -phred33 ly1_1.fq ly1_2.fq  ly1_paired_1.trimmed.fq.gz ly1_unpaired_1.trimmed.fq.gz ly1_paired_2.trimmed.fq.gz ly1_unpaired_2.trimmed.fq.gz  HEADCROP:9
Exception in thread "main" java.lang.RuntimeException: Unknown trimmer:  HEADCROP
    at org.usadellab.trimmomatic.trim.TrimmerFactory.makeTrimmer(TrimmerFactory.java:73)
    at org.usadellab.trimmomatic.Trimmomatic.createTrimmers(Trimmomatic.java:59)
    at org.usadellab.trimmomatic.TrimmomaticPE.run(TrimmomaticPE.java:552)
    at org.usadellab.trimmomatic.Trimmomatic.main(Trimmomatic.java:80)
ADD REPLY
0
Entering edit mode

Can you try (use your own file names in correct spots)

java -jar /home/yun/Downloads/Trimmomatic-0.39/trimmomatic-0.39.jar PE file1.fq file2.fq -baseout basename_you_want HEADCROP:9
ADD REPLY
0
Entering edit mode

Thanks a lot! I think I have done it well.

java -jar /home/yun/Downloads/Trimmomatic-0.39/trimmomatic-0.39.jar PE ly1_1.fq ly1_2.fq -baseout sampleFiltered.fq.gz HEADCROP:9

I think maybe there is something wrong in output file name.

ADD REPLY
0
Entering edit mode

I think maybe there is something wrong in output file name.

You need to provide a basename which in this case should be just sampleFiltered.

ADD REPLY

Login before adding your answer.

Traffic: 1782 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