Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dariober
    Senior Member
    • May 2010
    • 311

    #1

    bwa: Read unmapped in proper pair

    Hello,

    I came across a bam file with one read having flag 103, which means:
    read paired
    read mapped in proper pair
    read unmapped
    mate reverse strand
    first in pair

    I think there is something weird as a read cannot be "mapped in proper pair" and "read unmapped" at the same time. It wasn't me doing the alignment, but as far as I know it was done with bwa 0.6.1 against hg19. Everything looks fine in the bam file (sort & indexed ok) apart from this read.

    This is the incriminated read pair:

    Code:
    1:488660:43	103	chr9_gl000201_random	36144	60	36M	chrM	267	0	CGATGGATCACAGGTCTATCACCCTATTAACCACTC	1:BDEFDHHHHABGH@>DHEEHJJJFHIFBFI>DD9	XT:A:U	NM:i:2	SM:i:25	AM:i:25	X0:i:1	X1:i:0	XM:i:2	XO:i:0	XG:i:0	MD:Z:0G3C31
    1:488660:43	147	chrM	267	60	36M	chr9_gl000201_random	36144	0	TCCACACAGACATCATAACAAAAAATTTCCACCAAA	HCD:<BDFGGE:?AAGFFIGHF>BFCA<A=2?B?@?	XT:A:U	NM:i:0	SM:i:37	AM:i:25	X0:i:1	X1:i:0	XM:i:0	XO:i:0	XG:i:0	MD:Z:36
    I think the problem comes from chr9_gl000201_random being 36148bp long and the read being aligned to the end of it (36144)?

    Am I missing something or is this a bug in bwa? Any thought appreciated!

    Dario
  • TobyH
    Junior Member
    • Aug 2012
    • 5

    #2
    I have seen these strange results from BWA mappings as well, so you are not alone!

    It is my understanding that this behaviour is a result of something that happens during the reference indexing step. When indexing a reference file containing multiple sequences (e.g. >1 chromosome), bwa index concatenates the sequences together and indexes this conjoined sequence. Unless I am mistaken (definitely possible!), the inconsistent SAM flags that you get out are when a read pair happened to be mapped in a proper pair on the concatenated reference sequence, but actually - after the reference sequences are split up again - this pairing is split across two references.

    It should be clear that this phenomenon is expected to occur only very rarely, so I assume that your single offending read pair is part of a much larger dataset?

    Comment

    • TobyH
      Junior Member
      • Aug 2012
      • 5

      #3
      In fact, looking more closely at your SAM, I see that your reads are mapped very close to the end of one chromosome and very close to the start of another.

      Comment

      • dariober
        Senior Member
        • May 2010
        • 311

        #4
        Originally posted by TobyH View Post
        In fact, looking more closely at your SAM, I see that your reads are mapped very close to the end of one chromosome and very close to the start of another.
        Thanks very much! Makes sense... Indeed this is the only read I found with flag 103 out of a few millions in this file.

        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
        70 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...