Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KamilSJaron
    Junior Member
    • Apr 2016
    • 7

    #1

    bowtie2 bit 2 of the flag

    Hello,

    I am wondering what does mean "The second bit (2 in decimal, 0x2 in hexadecimal) is set if the read is part of a pair that aligned in a paired-end fashion."

    I have mate pair reads mapped with following entries in sam:

    Code:
    H8:C19M1ACXX:5:1101:6777:2322   97      Sc_hox  1694486 42      101M    =       1691781 -2806   AGCCGGGCTGGAGCTTACCTGGCTGACAGGAACTTCTCTGGCTAGCATATACGATTTTCGGTGCACCGTGTAGATCTGCTTGGAGATTACTAGTAAGTGTC   CCCFFFFFHHHHHJJJJJJHGHJJJIIIIJIIJIIJJJJIIJJJIJJJJJIIJGIIIJGHHHFFFEE>;A?CCDDDDCCDDDB:CCDCCACCCCBCB?ACD   AS:i:-10        XN:i:0  XM:i:2  XO:i:0  XG:i:0  NM:i:2  MD:Z:93G0G6     YS:i:0  YT:Z:DP
    H8:C19M1ACXX:5:1101:6777:2322   145     Sc_hox  1691781 42      101M    =       1694486 2806    TACTGCTGAAGGCAATATTAGTTCCCCTCACAATGCGAAACTAATGTTATAGATTATATTGAAAACTCATTGGTACTGTAAACTATATCATAAACATAGTA   CDDDDCDEEEEEEEFFFFFFHHHIIIJJJIHJJIJIIJJHJJIJJIIJIHHIJJJIJIIJJJIGHFJIIJJJJJGJJJJJJJJJJJJJHHHHHFFFFFCCC   AS:i:0  XN:i:0  XM:i:0  XO:i:0  XG:i:0  NM:i:0  MD:Z:101        YS:i:-10        YT:Z:DP
    Bitflags of those reads in binary formats are (from left to right 1 2 4 8 16 32 64 128)

    1 0 0 0 0 1 1 0
    1 0 0 0 1 0 0 1

    It seems that both reads are well aligned (full length), they are bout 3k from each other, they are on other strains...

    The only thing I can not understand is, why it has not bit 2 activated, because everything else looks fine to me...

    Cheers
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    Bit 2 denotes aligning as a "proper pair according to the aligner". Firstly, the alignments point away from each other. Secondly a 3kb fragment size is about 6-10x wider than expected. Are these mate-pair alignments? If so, you'll need to tell the aligner that.

    Comment

    • KamilSJaron
      Junior Member
      • Apr 2016
      • 7

      #3
      Originally posted by dpryan View Post
      Bit 2 denotes aligning as a "proper pair according to the aligner". Firstly, the alignments point away from each other. Secondly a 3kb fragment size is about 6-10x wider than expected. Are these mate-pair alignments? If so, you'll need to tell the aligner that.
      Cheers Ryan!

      Yes, these are mate-pairs (That is why I expected this insert size). Is it really important for mapper to know that the library is mate-pair library? It is already post-processed - therefore only difference to pair-end library is the insert size...

      I have not realized before, that they do not point to each other. If this is the reason, what is the interpretation of this observation? Because there are about half of pairs without flag 2 (I have to check if all of them are pointing away from each other)

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        For mate-pairs it's expected that alignments point away from each other and have long insert sizes. Just make sure not to filter these out during a down-stream analysis step.

        Comment

        • KamilSJaron
          Junior Member
          • Apr 2016
          • 7

          #5
          You are right. Twice.

          Mate-pair indeed should, be pointing out from each other, but this is not the problem. And here comes, why you were right twice - bowtie thought that I have pair-end reads, therefore he considered correct the fraction of reads close to each other pointing out to each other.

          So when I have plotted histogram of insert sizes, I found that all correct reads (with flag 2) have very small insert size and those, which have small insert size and still do not have flag 2, they are pointing out from each other (mate-pair orientation) https://plus.google.com/u/0/10778698...81109861311357

          So my ultimate explanation is, that I just have poorly prepossessed mate-pairs, because about half of them are in fact just pare-end reads (i.e. they probably just had trimmed adapter from one of the outer sides).

          Comment

          • Brian Bushnell
            Super Moderator
            • Jan 2014
            • 2709

            #6
            What kind of reads are these? Nextera LMP libraries, for example, are expected to produce a substantial fraction of short inserts, and those reads need to be specially processed first. If processed correctly, the long- and short-inserts will not end up in the same file.

            Comment

            • KamilSJaron
              Junior Member
              • Apr 2016
              • 7

              #7
              Brian, yes, I guess so, given the fraction of short insert sizes with convergent orientation. There reads were trimmed (and qc looked good), therefore I expected that the facrtion of short inserts is filtered already - apparently it is not.

              Mystery is solved, Thanks again Ryan.

              Comment

              Latest Articles

              Collapse

              • 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
              • SEQadmin2
                New Genomics Technologies Take Aim at Long-Standing Limits
                by SEQadmin2


                Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

                We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
                ...
                09-28-2026, 10:25 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 10-15-2026, 10:52 AM
              0 responses
              23 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-14-2026, 05:39 AM
              0 responses
              27 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-13-2026, 09:56 AM
              0 responses
              23 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-09-2026, 11:14 AM
              0 responses
              28 views
              0 reactions
              Last Post SEQadmin2  
              Working...