Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Does Picard tools Mark Duplicates consider read group?

    Hey all,

    I ask as I'm trying to set up a fully automated pipeline where I anticipate having to merge data files in the future. If we sequence the same library more then once, we want to merge and then remove duplicates. If we sequence the same samples in different libraries, we want to remove duplicates and then merge.

    But what if we sequence a sample once with one library, make a new library and remove duplicates before merging, and then sequence that second library again? Now, as the first two libraries are already mixed, it wouldn't be possible to just merge the second data set with the third and remove duplicates prior to merging with the first, unless all of the individual files are kept (of course if the sequence files are available it can be reanalyzed as such as well).

    If Mark Duplicates handled different read groups (or libraries) separately within one bam file, this wouldn't be an issue as long as each library was given a different read group (or library tag).

    So, that's where my question is coming from. Hopefully this situation won't arise but it'd be awesome if I could magically anticipate and build in code to handle every possible situation.

  • #2
    Any results

    Hey Heisman,

    Have you ever found out if MarkDuplicates was handling read groups properly?

    Comment


    • #3
      Hello,

      having the same problem, I found your thread and I actually have the answer: MarkDuplicates handles read groups properly, based on the "LB" field of the "@RG" parameter, and not on the "ID" field, as one could imagine.
      I just used it and it works perfectly, even outputing duplicates by read groups. So if you want to merge different bams and eliminate only duplicates of each bam (justified, since a read appearing in different runs is significant), be sure to indicate different "LB" fields in the "@RG" lines of your headers. Hope it'll help!

      Comment

      Latest Articles

      Collapse

      • 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...
        12-02-2024, 01:49 PM
      • seqadmin
        Genetic Variation in Immunogenetics and Antibody Diversity
        by seqadmin



        The field of immunogenetics explores how genetic variations influence immune responses and susceptibility to disease. In a recent SEQanswers webinar, Oscar Rodriguez, Ph.D., Postdoctoral Researcher at the University of Louisville, and Ruben Martínez Barricarte, Ph.D., Assistant Professor of Medicine at Vanderbilt University, shared recent advancements in immunogenetics. This article discusses their research on genetic variation in antibody loci, antibody production processes,...
        11-06-2024, 07:24 PM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 12-02-2024, 09:29 AM
      0 responses
      146 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 12-02-2024, 09:06 AM
      0 responses
      51 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 12-02-2024, 08:03 AM
      0 responses
      42 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 11-22-2024, 07:36 AM
      0 responses
      73 views
      0 likes
      Last Post seqadmin  
      Working...
      X