Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Tefina
    Member
    • Jun 2010
    • 13

    #1

    bwa: “XT:A:U” and MAPQ of 0 at the same time

    I map RNA-Seq Data with BWA to the genome. The output files from BWA in sam-format contain reads that have on the one hand the tag "XT:A:U" and, on the other hand, as well a mapping quality of 0.

    What does this mean? I thought that "XT:A:U" means uniquely best hit?! How does this then go together with a MAPQ of 0?

    As far as I understood, the MAPQ value is also 0 if there are other possible alignments - even with a lower score. So a read might have a "XT:A:U" score but at the same time a MAPQ of 0 - meaning that there are many other possible alignments with a slightly worse score.

    Any comments on this?

    best,
    tefina
  • cam.jack
    Member
    • Jun 2011
    • 11

    #2
    They are produced by different algorithms. Mapq is produced by Smith-Waterman Alignment while the XT flags come from Burrows-Wheeler Transform search.

    What I want to know, is which (if either) do I "trust"?

    -Cam

    Comment

    • morangal
      Junior Member
      • Nov 2010
      • 6

      #3
      another question regarding the MAPQ and teh XT:A flag

      hi All,
      i have a similar question, but on the complemetary situation:
      how come i haev reads that are flaged with XT:A:R (which means they have multiple possible allignments) and at the same time MAPQ >0 ?
      (their SAM flag indicates that they "mapped in correct orientation and within insert size" - i.e. flags 99, 147, 83,163)

      am i missing anything??
      i feel that i might misunderstood it completely..
      your help will be appreciated :-))

      Comment

      • cam.jack
        Member
        • Jun 2011
        • 11

        #4
        Hi Morangal,

        I suspect that in these cases the reads can also be mapped correctly to a second location. MAPQ = 0 if reads map perfectly in two places. This should be possible for short reads and multiple copies of a gene for example. Given that you can't actually tell which of the two locations produced the read you can't have any confidence in claiming it mapped to one location or the other.

        Hope this helps,
        Cam

        Comment

        • morangal
          Junior Member
          • Nov 2010
          • 6

          #5
          thanks Cam for your quick reply :-)
          but i still don't understand why those reads, that are marked as "multiple locations" (i.e. XT:A:R) can get MAPQ that is not 0 (some actually have a high MAPQ e.g. 36 and so).
          the way i understand it, is if there is more than one posiible allignment, then the mapping quality should be low or zero...

          anyone?

          Comment

          • cam.jack
            Member
            • Jun 2011
            • 11

            #6
            The XT:A:R flag is generated by a different alogrithm to the MAPQ score - so they can have different answers!

            The question is which algorithm do you believe? BW alignment creates the XT flag - so it detected two locations of high mapping probability - while Smith-Waterman only detected one good match - and so gave a high MAPQ score.

            So which do you trust?

            Cam

            Comment

            • phatjoe
              Member
              • Aug 2011
              • 13

              #7
              Mapq=0, xt:a:u, bwa

              Have any of your resolved this? or rather, have any suggestions on which value to follow, "XT:A:U" or the MAPQ. This is the example of my BAM file where I have ran

              samtools view -f 2 aln.bam |grep "XT:A:U" >tmp.bam
              I am looking for properly paired reads that are uniquely mapped but is having the same issue as described, please see below

              HTML Code:
              HWI700710:177:d0u1eacxx:6:2301:4126:92443       99      PM_map_6-1 113189  0       101M    =       113411  299     CGACTCCAGCTTCTCCGACGCAGGTGAATTTTTGCACCAACAGGATTGGCGCTAGAGGAAGGGGCTGTGTCTTCGCAGTACCCTTGTTCTTAAAGGAGCGC   CCCFFFFFHHHGFGIGJJJIIJJJBFHGIJIJJJIJJIGGJCHIIIIJJJBHHEFDE@AEEDDDC=?BDDDDDDD@BDDDDDCCDC@CDEDCADD=A?ADB   XT:A:U  NM:i:2  SM:i:0 AM:i:0   X0:i:1  X1:i:14 XM:i:2  XO:i:0  XG:i:0  MD:Z:14T70A15
              HWI700710:177:d0u1eacxx:6:2107:10916:192451     163     PM_map_6-1 142637  0       80M     =       143393  854     AGCTTCTCGGAGTTGGAACATGCATTTTGATAAGGTGATCAAAACGTATGGCTTCATTAAGAATGGAGCAGAGCCCTGCA        CCCFFFFFHHHHFHIIJIJIIIJJJJJJJIIJJIJCAGGGIJJIJGDHIHHIJGIIIE@GHJJJFJCD.=>AEDDEB>=;        XT:A:U  NM:i:1  SM:i:0  AM:i:0  X0:i:1  X1:i:1015      XM:i:1   XO:i:0  XG:i:0  MD:Z:68A11
              HWI700710:177:d0u1eacxx:6:2302:5626:184755      147     PM_map_6-1 145836  0       5M1I71M =       145311  -601    CCTGATTCAACCATCAAAGAAGGATCAGCGCAGTACTAGCATACTGTGCTGATTTTCTGAAGCAGGACTTCTGATCG   HFHE?7)HGDJIJJJJIIHHIJJIJIHJJJJIJIIJJIHGGGHIFJJIJJJJJJJJJJJJJJJIHHHHHFFFFFCC@   XT:A:U  NM:i:1  SM:i:0  AM:i:0  X0:i:1  X1:i:783        XM:i:0  XO:i:1 XG:i:1   MD:Z:76
              HWI700710:177:d0u1eacxx:6:1201:17643:176102     99      PM_map_6-1 195460  0       98M     =       195850  466     GACCCAATGGCATACTTGAAATTCTTGGCAAACTTTTCGCGGGCTCTTTTCTTTTTAACTTAAAGCCCGTTCATGAGACGACCCCTTCTTCTTCTTCG      @<@DDDDDAD?DDBHIG+<EGGIG@FFHGG@G;CGHIF6FFEIGGGIHHHAEHC>>?>BCDCCA>35=?@?<:@@>CA@?><0<B?<?CC>ACACC@<      XT:A:U  NM:i:3  SM:i:0 AM:i:0   X0:i:1  X1:i:8  XM:i:3  XO:i:0  XG:i:0  MD:Z:35C0C40C20
              HWI700710:177:d0u1eacxx:6:1201:17643:176102     147     PM_map_6-1 195850  0       76M     =       195460  -466    CCCAAAGATGAAACTTCCTCAAAGAAGAAAATCAGTCCGTGCGCTGGAAGAAGGCATCCGCAGAAAAAGGCAAGCT    ;;;DDA>53;EAAA9CB;>FHCHHE?CGCDDBIGHAIGIHGGHDEIGCGDJIIHDFEFFGBIIHDFFFFDFFFCC@    XT:A:U  NM:i:2  SM:i:0  AM:i:0  X0:i:1  X1:i:39 XM:i:2  XO:i:0  XG:i:0 MD:Z:15C45C14
              HWI700710:177:d0u1eacxx:6:1304:4645:131533      163     PM_map_6-1 199485  0       70M1I10M        =       199953  569     AGCTTTCAAGAAGCCTTTAATCCAAGCTCACCAACTCCTTAAGTGCACATTCAAGTCTCCATCCACCTTGTAGAAAATCCA       @CCFFFFFHHHHHJIJJJJJIGEIJJIIIJJIIGGGGGIJJIJIIIIJJJEDHIJGGGHIEGHIIGGGGG).=@EGIFEHH       XT:A:U  NM:i:2  SM:i:0  AM:i:0  X0:i:1  X1:i:26XM:i:1   XO:i:1  XG:i:1  MD:Z:39C40
              I am currently using BWA version 0.5.9rc1 (r1561)

              Any inputs will be appreciated.



              Cheers,
              Jo

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