Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • merging two fastq files from exome sequencing

    Hi ,

    I have 50 samples,each having paired end reads,Do you know of using "cat" command of merging paired end reads for each sample in one command? for example merging the 2 files below in one command in this post using some regular expression?

    Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc



    Else I have to merge each sample one by one.

    Thanks,
    Rohan

  • #2
    If your file names follow some pattern then you can possibly use a shell script that can "cat" the files for the samples together using a loop. If you post representative example of the names then someone can help you.

    Now the question. Why do you want to do this? Most programs do not need the reads to be in a single file (in fact that may cause you problems down the road).

    Comment


    • #3
      Hi,

      Below are some of the samples.

      51772BL1_R1.fastq
      51772BL1_R2.fastq
      51805BL1_R1.fastq
      51805BL1_R2.fastq
      52451BL1_R1.fastq
      52451BL1_R2.fastq


      Since,I am new to this kind of analysis and have dealt with very few files till now to set up my workflow, I did the analysis after merging the files only.
      Can you elaborate on what kind of problems might come so I can think more on this?


      Thanks

      Comment


      • #4
        That example is not very helpful since looking at the file names, it appears that each Fwd/Rev fastq file appears to be from a different sample.

        You do not want to concatenate those prior to alignment and if you have a HPC cluster where you do the analysis, its much faster to do the alignments on multiple fastq files in parallel and then merge the alignments depending on your workflow.

        Comment


        • #5
          It is also wise to keep track of the different samples/replicates for later analysis (for example it could be one of these samples/replicates has problems). This is much harder if you start by merging everything (pooling the reads).

          Comment

          Latest Articles

          Collapse

          • seqadmin
            Advancing Precision Medicine for Rare Diseases in Children
            by seqadmin




            Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
            12-16-2024, 07:57 AM
          • seqadmin
            Recent Advances in Sequencing Technologies
            by seqadmin



            Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

            Long-Read Sequencing
            Long-read sequencing has seen remarkable advancements,...
            12-02-2024, 01:49 PM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, 12-17-2024, 10:28 AM
          0 responses
          22 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 12-13-2024, 08:24 AM
          0 responses
          42 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 12-12-2024, 07:41 AM
          0 responses
          28 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 12-11-2024, 07:45 AM
          0 responses
          42 views
          0 likes
          Last Post seqadmin  
          Working...
          X