Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mmmm
    Senior Member
    • Jul 2013
    • 131

    #1

    combining fastq files

    Hi all,
    we did a MiSeq run and we got low cluster density but got fastq files- then we repeated the run for the same samples and got better cluster density- Now how could I combine the fastq files/ sample so I can get better reads required for the analysis
    for example I have the following fastq files for sample x

    run1_X_read1.fastq
    run1_X_read2.fastq

    run2_X_read1.fastq
    run2_X_read2.fastq

    what is the command please used for this purpose?
  • JackieBadger
    Senior Member
    • Mar 2009
    • 385

    #2
    In unix

    cat run1_X_read1.fastq run2_X_read1.fastq > R1.run1.run2.fastq

    cat run2_X_read1.fastq run2_X_read1.fastq > R2.run1.run2.fastq

    Comment

    • mastal
      Senior Member
      • Mar 2009
      • 666

      #3
      should be:

      cat run1_X_read1.fastq run2_X_read1.fastq > R1.run1.run2.fastq

      cat run1_X_read2.fastq run2_X_read2.fastq > R2.run1.run2.fastq

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        You may have checked this already but in case you have not then check the quality profiles for the two runs independently. You want both runs to be of good quality for combined downstream analysis.

        Comment

        • JackieBadger
          Senior Member
          • Mar 2009
          • 385

          #5
          Originally posted by mastal View Post
          should be:

          cat run1_X_read1.fastq run2_X_read1.fastq > R1.run1.run2.fastq

          cat run1_X_read2.fastq run2_X_read2.fastq > R2.run1.run2.fastq
          thanks for correcting

          Comment

          • grakocevic
            Junior Member
            • Feb 2014
            • 4

            #6
            What is the analysis and the pipeline you plan on using? If it's anything that can make use of the read groups (like gatk bqsr) you might want to align separately and merge the bam files (if you even plan on aligning that is).

            Comment

            • mmmm
              Senior Member
              • Jul 2013
              • 131

              #7
              combining fastq files

              Originally posted by GenoMax View Post
              You may have checked this already but in case you have not then check the quality profiles for the two runs independently. You want both runs to be of good quality for combined downstream analysis.
              have checked the reads quality on fastqc (before trimming low qulaity bases) and they look reasonable- do you think it is better to trimm the low quality bases (<20) first before combining fastq files or shall I combine them firstly them carry out the trimming after?

              Comment

              • GenoMax
                Senior Member
                • Feb 2008
                • 7142

                #8
                Either should be ok. You are only appending the contents of one file to another by doing "cat". You are not changing any individual sequence reads in any way by that operation.

                Comment

                • mmmm
                  Senior Member
                  • Jul 2013
                  • 131

                  #9
                  combining fastq files

                  Originally posted by GenoMax View Post
                  Either should be ok. You are only appending the contents of one file to another by doing "cat". You are not changing any individual sequence reads in any way by that operation.
                  not sure if it is possible to combine a fastq file of 250bp read with a fastq file (of the same sample) but 300bp read??- is this applicable

                  Comment

                  • GenoMax
                    Senior Member
                    • Feb 2008
                    • 7142

                    #10
                    Originally posted by mmmm View Post
                    not sure if it is possible to combine a fastq file of 250bp read with a fastq file (of the same sample) but 300bp read??- is this applicable
                    That is what you will be doing. Using "cat" you are appending contents of file 2 at end of file 1 to produce file 3. That way you are going to end up with file 3 that has reads with 2 different lengths in it.

                    If you want to do any absolute length based trimming then you should do that *before* you "cat" the files together.

                    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
                    21 views
                    0 reactions
                    Last Post SEQadmin2  
                    Started by SEQadmin2, Yesterday, 10:48 AM
                    0 responses
                    18 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
                    42 views
                    0 reactions
                    Last Post SEQadmin2  
                    Working...