Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • doc2r
    Junior Member
    • Aug 2010
    • 9

    #1

    CIGAR should have zero elements for unmapped read

    Hi Everyone

    I am running MarkDuplicates.jar on my paired end-bwa-mapped BAM file. However I get a weird error message, in fact there are 1000’s of these actually (0.5M so far).

    An example is

    Ignoring SAM validation error: ERROR: Record 68, Read name MachineName:1:2:15520:114537#0, CIGAR should have zero elements for unmapped read.

    Has anyone experienced this before?

    When I pull out the reads from the bam file above I see the read details as follows
    (read1)
    MachineName1:2:15520:114537#0 73 chr10 50281 0 69M31S = 50281 0 CTGTGCAATAACTGTGTACAAAAGCCCCAAAGCTTAAATTGTGCAGTTGAGCGCATGTTCTGTTGTTCAGCATTTATGTTGGTTTATAGTGGAAAAGATT
    ?5<3;2><<62@3A<<<7>@@=B7BCC=BB:,<+:9/)<+0;*'+-'271B@BB2BC@CC=B0B<>BA################################
    XC:i:69 XT:A:R NM:i:3 SM:i:0 AM:i:0 X0:i:2 X1:i:0 XM:i:3 XO:i:0 XG:i:0 MD:Z:8A24A3T31


    (Read2)
    MachineName:1:2:15520:114537#0 133 chr10 50281 0 88M12S = 50281 0 TTCATTGTTTGGCATAACAGTACTTCAGATTTGAATCATCTAATAACATTGTCATCATAGCATATTCTCCTGGAAGTAACACACAATAACTACTTCAAAA
    E/EBEDDFDFEFFF=?@CBA.=>.<.9.::EE=EE33?<7D>BCB-<5<>.:37:@<B/<.8986<:9;->A@A@BADBB@BB@AEE############# XC:i:88


    Oddly enough they map to the same position……Although the sequences are completely different. I BLAT’ed the sequences and found for read one and two respectively

    SCORE START END QSIZE IDENTITY CHRO STRAND START END SPAN
    88 1 100 100 94.0% 10 + 50281 50380 100
    86 1 100 100 93.0% 10 - 50520 50619 100


    So sequence two really maps to a different position on chromosome 10 at a distance that’s roughly the expected insert size….

    Could it be because the %Identity is low? that BWA mapped the pair incorrectly?
    Last edited by doc2r; 01-18-2011, 05:53 PM.
  • swbarnes2
    Senior Member
    • May 2008
    • 910

    #2
    Read two didn't map at all. bwa gives it the mapping coordinates of the read that did map. It's so that they will sort together by coordinate. You can tell from the flag: 133 = 128+4+1 = second read of pair + unmapped + paired read.

    The flag for read one is 73 = 64+8+1 = first read of a pair + mate didn't map + paired read

    I'm not quite sure what Picard does with that in markduplicates. If you use stringency Lenient, it won't yell at you about the CIGAR in unmapped read, but I don't know if it will mark duplicates properly.

    At the end, you can filter your .bam for read that don't have a 4 in the binary flag, that'll get rid of all the unmapped reads.

    Comment

    • doc2r
      Junior Member
      • Aug 2010
      • 9

      #3
      Thanks swbarnes2,
      Appreciate the response and the lesson.
      This was most helpful

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
        by SEQadmin2



        CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

        Despite this, “CRISPR helped turn genome editing from a specialized technique into
        ...
        07-31-2026, 11:01 AM
      • 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

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 07-31-2026, 02:55 AM
      0 responses
      19 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-24-2026, 12:17 PM
      0 responses
      16 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-23-2026, 11:41 AM
      0 responses
      16 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-20-2026, 11:10 AM
      0 responses
      26 views
      0 reactions
      Last Post SEQadmin2  
      Working...