Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • polsum
    Member
    • May 2009
    • 32

    #1

    FastQC Problem

    Hi while using FastQC, I am getting following error.

    uk.ac.bbsrc.babraham.FastQC.Sequence.SequenceFormatException: ID line didn't start with '@'
    at uk.ac.bbsrc.babraham.FastQC.Sequence.FastQFile.readNext(FastQFile.java:134)
    at uk.ac.bbsrc.babraham.FastQC.Sequence.FastQFile.<init>(FastQFile.java:73)
    at uk.ac.bbsrc.babraham.FastQC.Sequence.SequenceFactory.getSequenceFile(SequenceFactory.java:83)
    at uk.ac.bbsrc.babraham.FastQC.Analysis.OfflineRunner.processFile(OfflineRunner.java:113)
    at uk.ac.bbsrc.babraham.FastQC.Analysis.OfflineRunner.<init>(OfflineRunner.java:84)
    at uk.ac.bbsrc.babraham.FastQC.FastQCApplication.main(FastQCApplication.java:308)

    THe first line indeed contains some text like file name followed by 00/00/ etc. So I removed these first few lines and tried again. Now it runs fine until 95% analysis completed and gives the same error that the ID doesnt start with @.

    THis file is brand new (sequenced last week). But my last year's sequenced file runs just fine with no problems.

    Any help is appreciated.

    TIA
  • simonandrews
    Simon Andrews
    • May 2009
    • 870

    #2
    It certainly looks like your FastQ file has acquired some extra data it shouldn't have in it which is messing up the parsing. In an older thread I posted a script which you can run which does some sanity checks on FastQ files and writes out a cleaned version of the file which you should then be able to run through FastQC.

    Comment

    • polsum
      Member
      • May 2009
      • 32

      #3
      Originally posted by simonandrews View Post
      It certainly looks like your FastQ file has acquired some extra data it shouldn't have in it which is messing up the parsing. In an older thread I posted a script which you can run which does some sanity checks on FastQ files and writes out a cleaned version of the file which you should then be able to run through FastQC.
      Thank you very much. This script cleaned my file and now its running just fine.

      Comment

      • hartmaier
        Member
        • Dec 2012
        • 12

        #4
        Very awesome. The scripts seems to have properly fixed my files and fastqc is now able to run on them.

        Comment

        • simonandrews
          Simon Andrews
          • May 2009
          • 870

          #5
          Originally posted by hartmaier View Post
          Very awesome. The scripts seems to have properly fixed my files and fastqc is now able to run on them.
          That's great - but just be aware that something must have corrupted your files in the first place for this script to be needed. This means that you might have lost some unknown amount of data from your files somewhere along the way. If it's possible to go back to the original source of your data then it might be worth seeing if you can find an original un-corrupt version of your data.

          Comment

          • hartmaier
            Member
            • Dec 2012
            • 12

            #6
            Originally posted by simonandrews View Post
            That's great - but just be aware that something must have corrupted your files in the first place for this script to be needed. This means that you might have lost some unknown amount of data from your files somewhere along the way. If it's possible to go back to the original source of your data then it might be worth seeing if you can find an original un-corrupt version of your data.
            Yup, thanks. Data was generated elsewhere...will try, but at least I can use the rest of it for now.

            Comment

            • deepseq
              Junior Member
              • Apr 2011
              • 2

              #7
              same fastq error

              How do I run the script on my file on the command line ?? I seem to have a similar issue and would like to use your script....

              Comment

              • simonandrews
                Simon Andrews
                • May 2009
                • 870

                #8
                You probably shouldn't use that script any more. I wrote it back when Phred64 was being produced by Illumina. Not that everyone's on Phred32 it will give loads of false warnings about quality lines appearing to be headers since an @ symbol can legitimately occur in a quality string in Phred32 (which is why Phred64 was a better idea). It would be possible to make an updated version which was more specific about its checks and would work on Phred32 but I haven't seen one posted.

                I should also point out that this is only really a diagnostic to see why a file failed. If it's actually corrupted you've no idea how much data you've lost so this isn't a 'fix' for your data. FastQC also now has more debugging in it to try to tell you why your file failed so just looking at the output from that might be all you need to do.

                Comment

                • katka
                  Junior Member
                  • Nov 2016
                  • 1

                  #9
                  corrupted file

                  Hi,
                  I had the same problem. As it turned out I used wrong type of decompression of my data(I used bzip2 -dk filename). The file had suffix .bz2 but it was actually double compressed file. So I decompressed it again using tar -xjvf filename and it was no longer a problem.
                  Maybe, it might be the same case for you and this is the reason why was your fastq file corrupted.

                  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
                  23 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-14-2026, 05:39 AM
                  0 responses
                  27 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-13-2026, 09:56 AM
                  0 responses
                  25 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-09-2026, 11:14 AM
                  0 responses
                  28 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...