Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • shuoguo
    Member
    • Sep 2012
    • 23

    markduplicates strange results?

    i have a small bam for testing and found that before and after deduplication, the number reads does not seem to match.
    I used the most recent picard tool kit.

    before remove duplication, there are 178306 reported duplications
    after remove duplication, there are 0

    but, the total number of reads just dropped 1586 (453052 - 451466).

    can anyone give any insights?

    $ samtools flagstat 5.bam
    453052 + 0 in total (QC-passed reads + QC-failed reads)
    178306 + 0 duplicates
    447531 + 0 mapped (98.78%:-nan%)
    453052 + 0 paired in sequencing
    226526 + 0 read1
    226526 + 0 read2
    437506 + 0 properly paired (96.57%:-nan%)
    443874 + 0 with itself and mate mapped
    3657 + 0 singletons (0.81%:-nan%)
    5006 + 0 with mate mapped to a different chr
    4378 + 0 with mate mapped to a different chr (mapQ>=5)

    $ samtools flagstat 5.dedup.bam
    451466 + 0 in total (QC-passed reads + QC-failed reads)
    0 + 0 duplicates
    445945 + 0 mapped (98.78%:-nan%)
    451466 + 0 paired in sequencing
    225684 + 0 read1
    225782 + 0 read2
    436046 + 0 properly paired (96.58%:-nan%)
    442404 + 0 with itself and mate mapped
    3541 + 0 singletons (0.78%:-nan%)
    5002 + 0 with mate mapped to a different chr
    4374 + 0 with mate mapped to a different chr (mapQ>=5)
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    The question then becomes exactly how you removed the duplicates.

    Comment

    • Brian Bushnell
      Super Moderator
      • Jan 2014
      • 2709

      #3
      I don't know the answer to your question, but it looks like after duplicate removal there is a different number of read1's than read2's. That's not good! If two reads are PCR duplicates, then obviously their mates will be as well. I don't know if that behavior is intentional or a bug (I don't use Picard), but I would not want to do that to my data.

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        @Brian: Note that there's a change in singletons as well.

        Comment

        • shuoguo
          Member
          • Sep 2012
          • 23

          #5
          Oh I missed that part. Does Picard actually remove reads?
          I set the remove reads to be true though.

          This bam is subsampling from a large one at .5% ratio using samtools.
          Could samtools not sampling the paired reads?

          Thanks and I will post my cmd once I have my computer...

          Originally posted by Brian Bushnell View Post
          I don't know the answer to your question, but it looks like after duplicate removal there is a different number of read1's than read2's. That's not good! If two reads are PCR duplicates, then obviously their mates will be as well. I don't know if that behavior is intentional or a bug (I don't use Picard), but I would not want to do that to my data.

          Comment

          • Wort John
            Junior Member
            • Nov 2016
            • 1

            #6
            Originally posted by dpryan View Post
            @Brian: Note that there's a change in singletons as well.
            What is the singleton sequence ? It means the single read ? Can you explain it in detail ? Thank you !

            Comment

            • Brian Bushnell
              Super Moderator
              • Jan 2014
              • 2709

              #7
              In this context, a singleton is a pair in which only one of the reads mapped.

              Comment

              • juanita
                Junior Member
                • Sep 2018
                • 2

                #8
                I have a similar issue because after removing duplicates with Picard, I ran ValidateSamFile and I got a substantial proportion of MATE_NOT_FOUND reads.

                Before removing duplicates (with ValidateSamFile):
                "No errors found"

                After removing duplicates:
                "ERROR:MATE_NOT_FOUND 1072882"

                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
                • seqadmin
                  Investigating the Gut Microbiome Through Diet and Spatial Biology
                  by seqadmin




                  The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...
                  02-24-2025, 06:31 AM

                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
                46 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
                191 views
                0 reactions
                Last Post seqadmin  
                Working...