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
            Current Approaches to Protein Sequencing
            by seqadmin


            Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
            04-04-2024, 04:25 PM
          • seqadmin
            Strategies for Sequencing Challenging Samples
            by seqadmin


            Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
            03-22-2024, 06:39 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, 04-11-2024, 12:08 PM
          0 responses
          30 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 10:19 PM
          0 responses
          32 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 09:21 AM
          0 responses
          28 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-04-2024, 09:00 AM
          0 responses
          53 views
          0 likes
          Last Post seqadmin  
          Working...
          X