Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hosseinv
    Junior Member
    • Aug 2012
    • 8

    #1

    Merge multiple fq read files

    I have multiple Illumina Hi-seq 2000 fastq.gz files for each individual as follows;

    sample1 lane1 read 1_001
    sample1 lane1 read 1_002
    sample1 lane1 read 2_001
    sample1 lane1 read 2_002

    sample1 lane2 read 1_001
    sample1 lane2 read 1_002
    sample1 lane2 read 2_001
    sample1 lane2 read 2_002

    sample1 lane3 read 1_001
    sample1 lane3 read 1_002
    sample1 lane3 read 2_001
    sample1 lane3 read 2_002

    they are all for a single individual. what script in Linux console would be best to merge all files in a final merged file? the idea is to do analysis in Galaxy.

    THank you all.
    Last edited by hosseinv; 01-27-2015, 10:18 PM. Reason: Typos
  • hosseinv
    Junior Member
    • Aug 2012
    • 8

    #2
    They are paired-end reads.
    Last edited by hosseinv; 01-27-2015, 10:20 PM. Reason: Wrong info

    Comment

    • maubp
      Peter (Biopython etc)
      • Jul 2009
      • 1544

      #3
      Galaxy can concatenate files together, and might actually be easier to upload each file one by one to Galaxy (gzip them first), since uploading a single large file is harder.

      If you do want to concatenate files at the command line, you can use the command 'cat', as in:

      cat fileA fileB fileC > combinedfileABC

      Comment

      • hosseinv
        Junior Member
        • Aug 2012
        • 8

        #4
        Thanks Peter for your answer
        the thing that I want to know is the order of putting files in my cat command. if you have a look on my example files you'll see I've got sequences of one individual (sample 1) in 3 lanes and different number of reads both for read 1s (001 and 002) and read 2s (001 nad 002) in each lane.
        plus I know how to merge two files in Galaxy, but don't know how to merge multiple files.

        Thanks again.
        Last edited by hosseinv; 01-27-2015, 10:22 PM.

        Comment

        • DFJ111
          Member
          • Aug 2012
          • 20

          #5
          Not sure why you have duplicates of sample1 lane1 read 1_002, sample1 lane2 read 1_002, and sample1 lane3 read 1_002. Typo from the sequencing lab? If all you want to do is QC (via FastQC for example) I don't think it matters what order they are in. Also, if you do want to do FastQC you should assess each lane separately. If you want to do something else to them, the order or merging (or whether to merge them at all) depends on what that "something else" is.

          Also, you can merge multiple files in GALAXY, use "concatenate head-to-tail". I just use cat, it's quicker.
          Last edited by DFJ111; 08-16-2012, 07:20 PM.

          Comment

          • hosseinv
            Junior Member
            • Aug 2012
            • 8

            #6
            Thanks DFJ111

            It's not a typo. The thing that I want to do is to map the sequences against the reference genes and find the polymorphism.

            Comment

            • maubp
              Peter (Biopython etc)
              • Jul 2009
              • 1544

              #7
              Which tool are you planning to use for the mapping, and does it require the paired reads in any specific order (e.g. interleaved in one file) or as separate files (forward and reverse reads)?

              Comment

              • hosseinv
                Junior Member
                • Aug 2012
                • 8

                #8
                Hi maubp

                I will be using BWA for mapping. and I think I'll hav to treat each of the reads individually and at some stage I can pool the BAM or SAM files together.

                Thanks for your attention .

                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
                17 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...