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
        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
      33 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 12-13-2024, 08:24 AM
      0 responses
      49 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 12-12-2024, 07:41 AM
      0 responses
      34 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 12-11-2024, 07:45 AM
      0 responses
      46 views
      0 likes
      Last Post seqadmin  
      Working...
      X