Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Batstaph
    Junior Member
    • Dec 2017
    • 5

    #1

    Trimmomatic adapter file error

    I am having a problem getting trimmomatic to find the adapter file. I have tried all the options I can think of for the path, and put the file in the trimmomatic folder but still get a file not found error message. I can't spot any syntax errors, so can anyone help me?

    error: java.io.FileNotFoundException: /adapters/Truseq3-PE-2.fa (No such file or directory)


    java -jar trimmomatic-0.36.jar PE -phred33 27_4_24_LC_R1.fq 27_4_24_LC_R2.fq 27_4_24_LC_forward_paired.fq 27_4_24_LC_forward_unpaired.fq 27_4_24_LC_reverse_paired.fq 27_4_24_LC_reverse_unpaired.fq ILLUMINACLIP:/adapters/Truseq3-PE-2.fa:2:30:10 LEADING:3 TRAILING:3 SLIDINGWINDOW:4:15 MINLEN:36

    Thanks
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Are you able to list the file by doing an ls with full path?

    Comment

    • neavemj
      Member
      • Feb 2014
      • 58

      #3
      I think it searches for that file from your current directory (not from the trimmomatic folder). You could put the adapter file in the same folder as your raw reads, then change that part of your command to the following:

      ILLUMINACLIP:Truseq3-PE-2.fa:2:30:10

      Cheers,

      Matt.

      Comment

      • Batstaph
        Junior Member
        • Dec 2017
        • 5

        #4
        Now unknown trimmer error

        Thanks to both for your responses. Before I had a chance to act I lost access to the computer and only now have new (permanent) machine.
        I now have a different issue which is that trimmomatic seems to be identifying my output files as the trimmer and is giving me an 'unknown trimmer' error.

        My command line is:
        ~/Documents/Batstaph/Trimmomatic-0.36$ java -jar trimmomatic-0.36.jar PE -phred33 ~/Documents/Batstaph/sequences/27_4_24_LC R1.fq.gz ~/Documents/Batstaph/sequences/27_4_24_LC R2.fq.gz output_test_FP.fq output_test_RP.fq output_test_FU.fq output_test_RU.fq ILLUMINACLIP:/home/kay/Documents/Batstaph/Trimmomatic-0.36/adapters/Truseq3-PE-2.fa:2:30:10 LEADING:3 TRAILING:3 SLIDINGWINDOW:4:15 MINLEN:36
        and the error message is: Exception in thread "main" java.lang.RuntimeException: Unknown trimmer: test_out_2.paired.fastq
        It doesn't seem to matter what I name the output file, trimmomatic is giving me this error at the same point in the command line
        Thanks for any tips you can give me.

        Comment

        • mastal
          Senior Member
          • Mar 2009
          • 666

          #5
          The error message suggests that you have too many parameters, and trimmomatic is expecting a trimming command at that position, it doesn't really care too much what you call your file. Do you have any unintentional spaces in the names of your files, maybe where the lines wrap in the terminal window, that might make it seem like you had more than just the names of 2 input files and 4 output files?

          Comment

          • Batstaph
            Junior Member
            • Dec 2017
            • 5

            #6
            Back to old problem

            OK, thanks, I removed the spaces in the file names and it has got past the trimmer error. Now I'm back to not finding the adapter file:

            java.io.FileNotFoundException: /home/kay/Documents/Batstaph/Trimmomatic-0.36/adapters/Truseq3-PE.fa (No such file or directory)

            kay@kay-ThinkPad-X1-Carbon-5th:~/Documents/Batstaph/Trimmomatic-0.36/adapters$ ls
            NexteraPE-PE.fa TruSeq2-PE.fa TruSeq2-SE.fa TruSeq3-PE-2.fa TruSeq3-PE.fa TruSeq3-SE.fa

            Here is the error and the ls for the path. I can't spot any errors.

            Thanks again

            Comment

            • mastal
              Senior Member
              • Mar 2009
              • 666

              #7
              What does the ~ expand to on your computer?

              If it's something like /users/kay/ instead of /home/kay/
              that might explain why you get the directory/file not found error.

              Comment

              • Batstaph
                Junior Member
                • Dec 2017
                • 5

                #8
                Pwd gives:

                /home/kay/Documents/Batstaph/Trimmomatic-0.36/adapters

                Comment

                • kmcarr
                  Senior Member
                  • May 2008
                  • 1181

                  #9
                  Originally posted by Batstaph View Post
                  OK, thanks, I removed the spaces in the file names and it has got past the trimmer error. Now I'm back to not finding the adapter file:

                  java.io.FileNotFoundException: /home/kay/Documents/Batstaph/Trimmomatic-0.36/adapters/Truseq3-PE.fa (No such file or directory)

                  kay@kay-ThinkPad-X1-Carbon-5th:~/Documents/Batstaph/Trimmomatic-0.36/adapters$ ls
                  NexteraPE-PE.fa TruSeq2-PE.fa TruSeq2-SE.fa TruSeq3-PE-2.fa TruSeq3-PE.fa TruSeq3-SE.fa

                  Here is the error and the ls for the path. I can't spot any errors.

                  Thanks again
                  Make the 's' in Truseq uppercase (TruSeq)

                  Comment

                  • Batstaph
                    Junior Member
                    • Dec 2017
                    • 5

                    #10
                    Doh

                    Stupid error which has been there from the start.

                    Thank you so much, Trimmomatic worked!!

                    Comment

                    Latest Articles

                    Collapse

                    • SEQadmin2
                      Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                      by SEQadmin2



                      Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                      Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                      ...
                      10-14-2026, 09:55 AM
                    • SEQadmin2
                      New Genomics Technologies Take Aim at Long-Standing Limits
                      by SEQadmin2


                      Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                      We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                      ...
                      09-28-2026, 10:25 AM

                    ad_right_rmr

                    Collapse

                    News

                    Collapse

                    Topics Statistics Last Post
                    Started by SEQadmin2, 10-22-2026, 11:13 AM
                    0 responses
                    27 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-22-2026, 10:48 AM
                    0 responses
                    20 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-15-2026, 10:52 AM
                    0 responses
                    36 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, 10-14-2026, 05:39 AM
                    0 responses
                    43 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...