Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lala2013
    Junior Member
    • Oct 2013
    • 9

    #1

    fastq.gz VS fastq

    Hi, I have a question about fastq and fastq.gz files. I understand that fastq.gz is the compressed version of fastq file. Can I combine all the R1.fastq.gz files and R2.fastq.gz separately before feeding it to fastQC ? Thanks.
    Last edited by lala2013; 10-15-2013, 09:50 AM. Reason: Clarify question
  • ECO
    --Site Admin--
    • Oct 2007
    • 1360

    #2
    FastQC can use .gz.

    You probably want to run R1 and R2 separately for understanding the quality of your sequencing run/data, as they have distinctly different error profiles.

    Comment

    • lala2013
      Junior Member
      • Oct 2013
      • 9

      #3
      Sorry I didn't make it clear. Is it possible to do the following and feed R1.fastq.gz to fastQC?
      cat L001_R1.fastq.gz L002_R1.fastq.gz L003_R1.fastq.gz L004_R1.fastq.gz > R1.fastq.gz

      Comment

      • vivek_
        PhD Student
        • Jul 2012
        • 164

        #4
        yes you can but if you can distribute jobs on a cluster, you could do each file separately much faster.

        Comment

        • winsettz
          Member
          • Sep 2012
          • 91

          #5
          Looks like fastqc will use one thread per file. Reading the -help for fastqc it states --threads "Specifies the number of files which can be processed simultaneously". Perhaps upping --threads to equal the number of fastq you have, then giving it all the fastq as inputs is the way to go? Going divide-and-conquer is what you need to do.

          The problem with cat'ing all your fastq is that the statistics would be calculated as average of all reads: you might not catch an anomaly in one subset of reads, especially if it gets averaged out by the other three set of reads.
          Last edited by winsettz; 10-15-2013, 12:00 PM.

          Comment

          • fkrueger
            Senior Member
            • Sep 2009
            • 627

            #6
            Originally posted by lala2013 View Post
            Sorry I didn't make it clear. Is it possible to do the following and feed R1.fastq.gz to fastQC?
            cat L001_R1.fastq.gz L002_R1.fastq.gz L003_R1.fastq.gz L004_R1.fastq.gz > R1.fastq.gz
            I agree that you should probably not merge the files prior to feeding them to FastQC because you run the risk of masking any potential lane specific effects. Apart from that, using cat doesn't work for gzipped files, but you can use zcat to do the same thing. The command should something like this:

            Code:
            zcat L001_R1.fastq.gz L002_R1.fastq.gz L003_R1.fastq.gz L004_R1.fastq.gz | gzip -c - > R1.fastq.gz

            Comment

            • vivek_
              PhD Student
              • Jul 2012
              • 164

              #7
              I think cat does concatenate gzipped files. You don't need to gzip again either.

              Comment

              • fkrueger
                Senior Member
                • Sep 2009
                • 627

                #8
                Oh didn't know that, cheers for that!

                Comment

                • kmcarr
                  Senior Member
                  • May 2008
                  • 1181

                  #9
                  Originally posted by vivek_ View Post
                  I think cat does concatenate gzipped files. You don't need to gzip again either.
                  I recall that FastQC didn't properly process the resultant file when simply 'cat'ed the gzipped files. The file which you get by concatenating gzipped file still contains some sort of division between the original compressed parts and FastQC would stop when it reached the end of the first block of reads. This was in and earlier version of FastQC and Simon may have addressed this in a later release.

                  O.K. I just went to the FastQC site and under the Change Log:

                  3-5-12: Version 0.10.1 released
                  Added a workround to allow the analysis of concatenated gzipped files(emphasis mine)
                  Fixed a bug when FastQC was installed in a path containing characters needing to be escaped in a URL
                  Added an option to specify the location of the java interpreter on the command line
                  This was added in the last version (0.10.1) so make sure you're using that version if you are concatenating gzipped files.
                  Last edited by kmcarr; 10-15-2013, 01:33 PM. Reason: Should have read the release notes before posting

                  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, Yesterday, 11:13 AM
                  0 responses
                  16 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, Yesterday, 10:48 AM
                  0 responses
                  15 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-15-2026, 10:52 AM
                  0 responses
                  35 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 10-14-2026, 05:39 AM
                  0 responses
                  42 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...