Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kevlim83
    Junior Member
    • Jan 2010
    • 9

    #1

    BWA pe alignment, sampe, proper pair

    Hi,

    I am trying to align a set of paired-end reads using bwa. I understand that the flags tell us whether a pair is mapped and proper. i.e. one on the forward strand and one on the reverse strand, and also within insert estimate.

    Now the problem is that most of my flags are 97,145,81,161.

    This really means one is mapped to forward and the other to reverse. I also manually checked insert size is within 5 stdev from the mean (according to the bwa output, the maximum inferred insert is 5.88 from mean, so i assume anything within 5.88 stdev is a concordant read). This means the pair should be proper? But why is the flag=2 not set? i.e. I expected to get flags 99,147,83,163 instead of 97,145,81,161.

    Here is an example of my alignment results:
    >test1 97 chr2 1941945 37 27M = 1940790 -1128 AAAAAAAAGCCCCGCCGACATTTCCAC ~~~~~~~~~~~~~~~~~~~~~~~~~~~ XT:A:U NM:i:1 SM:i:37 AM:i:37 X0:i:1 X1:i:0 XM:i:1 XO:i:0 XG:i:0 MD:Z:0G26
    >test1 145 chr2 1940790 37 27M = 1941945 1128 CTGCAGCAGCACGTTCTGCATTTCCTT ~~~~~~~~~~~~~~~~~~~~~~~~~~~ XT:A:U NM:i:0 SM:i:37 AM:i:37 X0:i:1 X1:i:0 XM:i:0 XO:i:0 XG:i:0 MD:Z:27

    The mean insert size is 1250 and stdev is 46, maximum inferred insert is 5.88 stdev from mean (as reported by bwa). So, 1128 should be within the range for concordant.

    Does anyone knows why an alignment like this is not considered proper? i.e. why is flag=2 not set?

    Regards,
    Kevin
  • kevlim83
    Junior Member
    • Jan 2010
    • 9

    #2
    Anyone with ideas? Please help. Thanks!

    Comment

    • valei
      Member
      • Sep 2010
      • 14

      #3
      You are right.
      I think the problem is the follow: If the first read (with flag 97) refers to forward strand, the second read must be downstream. It's not possible that the second read is at position -1128.

      Comment

      • swbarnes2
        Senior Member
        • May 2008
        • 910

        #4
        Your reads are running away from each other, bwa apparently only calls them proper if they run into each other, like normal paired-end reads do.

        bwa wants this:

        ---> <---

        Your mate-pair reads are doing this:

        <--- --->

        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-22-2026, 11:13 AM
        0 responses
        23 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-22-2026, 10:48 AM
        0 responses
        20 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-15-2026, 10:52 AM
        0 responses
        36 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-14-2026, 05:39 AM
        0 responses
        42 views
        0 reactions
        Last Post SEQadmin2  
        Working...