Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • fuad193
    Member
    • Feb 2012
    • 17

    Lane-SAM Files: Effect on @RG & Duplicates

    Hi

    I have one individual genome reads grouped into 17 lanes, each lane is divided into 10 fastq files. In other words, I have 17 folders each of them correspond to one lane and contain 10 fastq files, so I have in total 170 fastq files. I need to map each of the 170 fastq file to hg19 and merge all SAMs to one big SAM, but I am not sure if it is the right thing to do.

    1) For duplicates removal, should I merge the 10 SAMs that correspond to one lane, remove the duplicates from this merged SAM , do so for all lanes -merged-SAM (17 lane-merged-SAMs), and then merge them to one big ? OR should I remove duplicates after merging all SAMs (170 SAMs) to one big ? In other words, removing the duplicates is done for each lane alignment or it doesn't matter ?

    2) For @RG tag, and specifically the ID, is it going to be different for each of the 170 SAMs or should I give all SAMs that come from one lane (10 SAMs that are in one folder) the same ID ?

    3) After merging (either merging SAMs that comes from one specific lane or merging all 170 SAMs in one big SAM), how should I write the @RG header and ID ?

    Thanks
  • Alex Renwick
    Member
    • Jul 2011
    • 44

    #2
    PCR duplicates could appear in different lanes, and it's all one sample so it should all have the sample Read Group. I would do it in this order: map each fastq file, merge bam files, remove duplicates and add read group.

    Comment

    • fuad193
      Member
      • Feb 2012
      • 17

      #3
      Originally posted by Alex Renwick View Post
      PCR duplicates could appear in different lanes, and it's all one sample so it should all have the sample Read Group. I would do it in this order: map each fastq file, merge bam files, remove duplicates and add read group.
      and what about quality recalibration ? should I do it after merging all or before ?

      Comment

      • Alex Renwick
        Member
        • Jul 2011
        • 44

        #4
        If the experiment was done well, lanes should not affect the data. Pool the data before recalibrating.

        Comment

        • fuad193
          Member
          • Feb 2012
          • 17

          #5
          Originally posted by Alex Renwick View Post
          If the experiment was done well, lanes should not affect the data. Pool the data before recalibrating.
          Using 64 G RAM and 8 CPU is it possible to merge all Genome fastq files and align them to one SAM using BWA instead of align each separately ? And how long you think it will take ?

          Comment

          • Alex Renwick
            Member
            • Jul 2011
            • 44

            #6
            The time will depend on how many reads you have. Probably several hours. BWA can be multithreaded to use all 8 CPUs. Mapping will probably take a day or two.

            Comment

            Latest Articles

            Collapse

            • seqadmin
              Pathogen Surveillance with Advanced Genomic Tools
              by seqadmin




              The COVID-19 pandemic highlighted the need for proactive pathogen surveillance systems. As ongoing threats like avian influenza and newly emerging infections continue to pose risks, researchers are working to improve how quickly and accurately pathogens can be identified and tracked. In a recent SEQanswers webinar, two experts discussed how next-generation sequencing (NGS) and machine learning are shaping efforts to monitor viral variation and trace the origins of infectious...
              03-24-2025, 11:48 AM
            • seqadmin
              New Genomics Tools and Methods Shared at AGBT 2025
              by seqadmin


              This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

              The Headliner
              The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
              03-03-2025, 01:39 PM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, 03-20-2025, 05:03 AM
            0 responses
            41 views
            0 reactions
            Last Post seqadmin  
            Started by seqadmin, 03-19-2025, 07:27 AM
            0 responses
            49 views
            0 reactions
            Last Post seqadmin  
            Started by seqadmin, 03-18-2025, 12:50 PM
            0 responses
            36 views
            0 reactions
            Last Post seqadmin  
            Started by seqadmin, 03-03-2025, 01:15 PM
            0 responses
            192 views
            0 reactions
            Last Post seqadmin  
            Working...