Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • 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)

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

    Comment


    • #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


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

        Comment


        • #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


          • #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


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

              Comment


              • #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
                  Recent Developments in Metagenomics
                  by seqadmin





                  Metagenomics has improved the way researchers study microorganisms across diverse environments. Historically, studying microorganisms relied on culturing them in the lab, a method that limits the investigation of many species since most are unculturable1. Metagenomics overcomes these issues by allowing the study of microorganisms regardless of their ability to be cultured or the environments they inhabit. Over time, the field has evolved, especially with the advent...
                  09-23-2024, 06:35 AM
                • seqadmin
                  Understanding Genetic Influence on Infectious Disease
                  by seqadmin




                  During the COVID-19 pandemic, scientists observed that while some individuals experienced severe illness when infected with SARS-CoV-2, others were barely affected. These disparities left researchers and clinicians wondering what causes the wide variations in response to viral infections and what role genetics plays.

                  Jean-Laurent Casanova, M.D., Ph.D., Professor at Rockefeller University, is a leading expert in this crossover between genetics and infectious...
                  09-09-2024, 10:59 AM

                ad_right_rmr

                Collapse

                News

                Collapse

                Topics Statistics Last Post
                Started by seqadmin, 10-02-2024, 04:51 AM
                0 responses
                13 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 10-01-2024, 07:10 AM
                0 responses
                20 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 09-30-2024, 08:33 AM
                0 responses
                25 views
                0 likes
                Last Post seqadmin  
                Started by seqadmin, 09-26-2024, 12:57 PM
                0 responses
                18 views
                0 likes
                Last Post seqadmin  
                Working...
                X