Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • dmb
    Junior Member
    • Nov 2010
    • 6

    Picard - MakeDuplicates (remove pcr duplicates)

    There seems to be only a few options for removing PCR duplicates from Illumina fastq data and/or alignment data. I have use FASTX for (fastx_collapse) for removing duplicates in fastq files but this takes a long time when running against human data of ~10Gb per lane.
    The other option I have tried is SAMTOOLS (rmdup) but the documentation admits that it doesn't work well (or at all) with single end data. I have also noticed strange results when using this on my own data sets. (e.g. reads removed that were clearly not duplicates).
    The alternative posted on the SAMTOOLS site is to use PICARD. Implementation is straightforward and uses percompiled jar files with well documented options.
    I am unfortunately getting a strange Exception thrown when I run the MakeDuplicates jar file. It seems it is recognizing something in my data that wants to call it paired end data. However, my data are single end reads.
    Does anyone have any experience with using this command in picard? Here is my call and the error being thrown.

    Call:
    Code:
     java -jar /home/bornmand/tools/picard/MarkDuplicates.jar INPUT=101119_first4lanes_bwa.bam OUTPUT=101119_first4lanes_bwaNoD
    up.bam METRICS_FILE=101119_first4lanes_duplicateINFO.txt REMOVE_DUPLICATES=true ASSUME_SORTED=true
    Error:
    Code:
    INFO    2011-03-16 08:09:46     MarkDuplicates  Start of doWork freeMemory: 62375408; totalMemory: 63111168; maxMemory: 935854080
    INFO    2011-03-16 08:09:46     MarkDuplicates  Reading input file and constructing read end information.
    INFO    2011-03-16 08:09:46     MarkDuplicates  Will retain up to 3713706 data points before spilling to disk.
    INFO    2011-03-16 08:09:46     MarkDuplicates  Assuming input is coordinate sorted.
    [Wed Mar 16 08:09:46 EDT 2011] net.sf.picard.sam.MarkDuplicates done.
    Runtime.totalMemory()=92864512
    Exception in thread "main" java.lang.RuntimeException: SAM validation error: ERROR: Record 1, Read name 4:20:14143:2730:Y, MRNM should not be set for unpaired read.
            at net.sf.samtools.SAMUtils.processValidationErrors(SAMUtils.java:334)
            at net.sf.samtools.BAMFileReader$BAMFileIterator.advance(BAMFileReader.java:449)
            at net.sf.samtools.BAMFileReader$BAMFileIterator.<init>(BAMFileReader.java:413)
            at net.sf.samtools.BAMFileReader$BAMFileIterator.<init>(BAMFileReader.java:403)
            at net.sf.samtools.BAMFileReader.getIterator(BAMFileReader.java:206)
            at net.sf.samtools.SAMFileReader.iterator(SAMFileReader.java:288)
            at net.sf.samtools.SAMFileReader.iterator(SAMFileReader.java:37)
            at net.sf.picard.sam.MarkDuplicates.buildSortedReadEndLists(MarkDuplicates.java:271)
            at net.sf.picard.sam.MarkDuplicates.doWork(MarkDuplicates.java:113)
            at net.sf.picard.cmdline.CommandLineProgram.instanceMain(CommandLineProgram.java:156)
            at net.sf.picard.sam.MarkDuplicates.main(MarkDuplicates.java:97)
    It seems that it runs okay but then encounters a problem.
    Thanks.
    Dan
  • cormicp
    Junior Member
    • Jul 2009
    • 5

    #2
    Hi Dan

    Try adding "VALIDATION_STRINGENCY=LENIENT" to the end of your command line and see if this solves the problem.

    Often incorrect flags can be set in the output of an aligner which downstream tools can take exception to.

    Alternatively you can edit your BAM file to correct the record which is throwing up this error.

    Hope this helps.

    Comment

    • dmb
      Junior Member
      • Nov 2010
      • 6

      #3
      That looks like it is working! Thanks a lot.
      I did see that flag in the source code but I used "null" instead which was an invalid argument.
      My new BAM file is being written to disk now. I will check results and hopefully it makes sense this time.
      Thanks again.

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
        by SEQadmin2


        Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

        The systematic characterization of the human proteome has
        ...
        07-20-2026, 11:48 AM
      • SEQadmin2
        Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
        by SEQadmin2



        Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
        ...
        07-09-2026, 11:10 AM
      • SEQadmin2
        Cancer Drug Resistance: The Lingering Barrier to Rising Survival
        by SEQadmin2



        Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

        There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
        07-08-2026, 05:17 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, Today, 12:17 PM
      0 responses
      10 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, Yesterday, 11:41 AM
      0 responses
      11 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-20-2026, 11:10 AM
      0 responses
      23 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-13-2026, 10:26 AM
      0 responses
      37 views
      0 reactions
      Last Post SEQadmin2  
      Working...