Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tdoniger
    Member
    • Nov 2010
    • 13

    #1

    Picard MarkDuplicates - whole bam file marked as duplicates

    Hi,

    I ran an RNA-Seq data set using the RUM-pipeline to align the data. I tried to use the Picard's MarkDuplicates - and it tagged very single read in the bam files as a duplicate.
    I used the following parameters for MarkDuplicates:
    java -jar /private/software/packages/picard-tools-1.84/MarkDuplicates.jar I=RUM-sorted.bam O=RUM-sorted-dups_marked.bam METRICS_FILE=dups_metrics AS=true VALIDATION_STRINGENCY=SILENT

    (I had sorted the bam using samtools- but it was not recognized by MarkDuplicates that is why I used AS=true)

    In the dups_metrics file it lists the percent_duplication at 43%

    Any ideas?

    Thanks!
    Tirza
    --
    Tirza Doniger, Ph.D.
    Bioinformatics Unit
    The Mina and Everard Faculty of Life Sciences
    Bar Ilan University
  • whataBamBam
    Member
    • May 2013
    • 27

    #2
    Hey tdoniger

    Did you ever find the solution to your problem? I have the same problem and my metrics file only claims one percent!

    I'm currently running 3 different solutions to the problem and i'm waiting for the batches to finish..

    - use samtools rmdup instead
    - add VALIDATION_STRINGENCY=LENIENT to my command string for MarkDuplicates
    - don't bother to mark duplicates (I only did this becuase GATK requires it - my other pipeline will run happily without this step) and try to trick GATK into accepting my file by adding an @PG line into my header to say I ran MarkDuplicates (yeah I know this is probably not recommeneded I just thought I'd see what happened) i.e. use samtols reheader to take the header from the file that MarkDuplicates marked ever read as a duplicate in and put it onto the file I wuld of used as input.

    My command was

    java -Xmx2G -jar MarkDuplicates.jar INPUT=infile.sorted.bam OUTPUT=outfile.sorted.dedupe.bam METRICS_FILE=myMetricsFile

    I'd also previoulsy sorted the bam using samtools

    Comment

    • tdoniger
      Member
      • Nov 2010
      • 13

      #3
      I thought because every line contained: PG:Z:MarkDuplicates - that these were the reads marked as duplicates. This is not the case. It is the flag set in the second column that indicates whether it is a duplicate or not.

      try: samtools flagstat library_no_dups.bam
      You can find the flags that represent the duplicates. See- http://picard.sourceforge.net/explain-flags.html
      --
      Tirza Doniger, Ph.D.
      Bioinformatics Unit
      The Mina and Everard Faculty of Life Sciences
      Bar Ilan University

      Comment

      • whataBamBam
        Member
        • May 2013
        • 27

        #4
        I solved this and now I can't remember how. Really slack of me not to come back and post the solution but tommorow I'll check my pipelines and have a look

        Comment

        • tdoniger
          Member
          • Nov 2010
          • 13

          #5
          Hi,

          Thanks! But I was trying to explain that I managed to solve it. I had thought that every line marked by "PG:Z:MarkDuplicates" was a duplicate, but really this was not the case. The duplicates are marked in the flag in the second column of the same file.

          Best,
          Tirza
          --
          Tirza Doniger, Ph.D.
          Bioinformatics Unit
          The Mina and Everard Faculty of Life Sciences
          Bar Ilan University

          Comment

          • TonyBrooks
            Senior Member
            • Jun 2009
            • 303

            #6
            Going off piste here, but 43% duplication is pretty high.
            How much PCR did you do?

            Comment

            • tdoniger
              Member
              • Nov 2010
              • 13

              #7
              quite a bit. very little starting material
              --
              Tirza Doniger, Ph.D.
              Bioinformatics Unit
              The Mina and Everard Faculty of Life Sciences
              Bar Ilan University

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
                by SEQadmin2




                NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
                Today, 06:46 AM
              • SEQadmin2
                Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
                by SEQadmin2



                Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

                Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
                ...
                10-14-2026, 09:55 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 10-28-2026, 09:57 AM
              0 responses
              24 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-28-2026, 09:51 AM
              0 responses
              15 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-22-2026, 11:13 AM
              0 responses
              68 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-22-2026, 10:48 AM
              0 responses
              48 views
              0 reactions
              Last Post SEQadmin2  
              Working...