Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Saeideh
    Member
    • Aug 2015
    • 25

    #1

    Trimmomatic error

    I have a file containing reads. It seems the adapters were removed previously. So I do not need to eliminate the adapters.

    When I use fastqc, I have overrepresented sequences in first 7 positions and I want to trim them. That's it.

    I wrote this command:

    java -jar /usr/local/bin/trimmomatic-0.33.jar SE -phred64 inputfile.fq.gz output.fq.gz HEADCROP:7

    Is it wrong?

    I get this error:

    Exception in thread "main" java.io.IOException: Not in GZIP format
    at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:154)
    at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:75)
    at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:85)
    at org.usadellab.trimmomatic.util.ConcatGZIPInputStream$GZIPHelperInputStream.<init>(ConcatGZIPInputStream.java:109)
    at org.usadellab.trimmomatic.util.ConcatGZIPInputStream$GZIPHelperInputStream.<init>(ConcatGZIPInputStream.java:105)
    at org.usadellab.trimmomatic.util.ConcatGZIPInputStream.nextGzipInputStream(ConcatGZIPInputStream.java:37)
    at org.usadellab.trimmomatic.util.ConcatGZIPInputStream.<init>(ConcatGZIPInputStream.java:16)
    at org.usadellab.trimmomatic.fastq.FastqParser.parse(FastqParser.java:132)
    at org.usadellab.trimmomatic.TrimmomaticSE.process(TrimmomaticSE.java:192)
    at org.usadellab.trimmomatic.TrimmomaticSE.run(TrimmomaticSE.java:285)
    at org.usadellab.trimmomatic.Trimmomatic.main(Trimmomatic.java:40)

    How can I do it correctly?

    Thanks in advance
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Error is indicating that your input sequence file is not in GZIP format. Are you also sure the input sequence is in phred+64 format?

    Comment

    • dpryan
      Devon Ryan
      • Jul 2011
      • 3478

      #3
      In addition to what Genomax wrote, there are some library types (e.g., RNAseq) that commonly show bias at the beginning of the reads. This shouldn't necessarily be trimmed off.

      Comment

      • Saeideh
        Member
        • Aug 2015
        • 25

        #4
        I want to scream of happiness.. Thank you guyssss.

        Last time, I just renamed the file from .fq to .fq.gz :| :| :| . When GenoMax told me the file is not in GZIP format I did: gzip inputfile.fq and then I got the result.

        I'm not sure my input file is in phred+64 format or not. How should I understand it?

        dpryan, I know it's ok to have some bias at the beginning of reads and it is because of adapters, but I looked for typical Illumina adapters in my reads files using grep and non of reads have those adapters. So I understood, the adapters might be trimmed before (someone else passed the files to me) and I thought abnormality should be due to contamination and I decided to remove the first 7 bases.

        Thank you agaaaaain

        Comment

        • dpryan
          Devon Ryan
          • Jul 2011
          • 3478

          #5
          The bias isn't due to primers, it's due to random hexamer priming being biased.

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #6
            Originally posted by Saeideh View Post
            I'm not sure my input file is in phred+64 format or not. How should I understand it?
            If your data is recent vintage it is unlikely that it is in phred+64 (solexa) format. That said you can test the quality score format of your data by using testformat.sh utility from BBMap suite like this:

            Code:
            $ testformat.sh in=seq.fq

            Comment

            • usad
              Member
              • Sep 2009
              • 53

              #7
              you can also just run trimmomatic without the phred switch and it will try to autodetect quality scores (since 0.32)

              Best Wishes
              björn

              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-15-2026, 10:52 AM
              0 responses
              31 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-14-2026, 05:39 AM
              0 responses
              38 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-13-2026, 09:56 AM
              0 responses
              31 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-09-2026, 11:14 AM
              0 responses
              29 views
              0 reactions
              Last Post SEQadmin2  
              Working...