Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mingkunli
    Member
    • Jan 2009
    • 42

    #1

    what's in bwa's .sai file

    besides the content that shown in .sam file(alignment of the best match, and number of suboptimal/all hits), seems it also contains some information of the suboptimal hits, is it possible to look at the details of these hits.
    with the command "bwa samse -n INT", I can only get the position where they mapped and number of mismatch.

    For paired-end data, whether "bwa sampe" consider the suboptimal hits? i.e., best-best match violate the distance constrain, but suboptimal-suboptimal or suboptimal-best may be in the rational distance.
  • henry
    Member
    • Sep 2009
    • 36

    #2
    Originally posted by mingkunli View Post
    besides the content that shown in .sam file(alignment of the best match, and number of suboptimal/all hits), seems it also contains some information of the suboptimal hits, is it possible to look at the details of these hits.
    with the command "bwa samse -n INT", I can only get the position where they mapped and number of mismatch.

    For paired-end data, whether "bwa sampe" consider the suboptimal hits? i.e., best-best match violate the distance constrain, but suboptimal-suboptimal or suboptimal-best may be in the rational distance.
    .sai file is the output of command aln. .sai file contain the suffix array coordinate of all short reads loaded in. For bwa, sequence alignment is equal to searching for suffix array interval of substring of chromosome that matches the short read. And if knowing the interval in the suffix array, we can get positions of the short read.
    If you wanna know very detailed how bwa algorithm works, you may read "fast and accurate short read alignment with burrows-wheeler transform' (Heng Li, et al), which has been published in bioinformatics.
    I took a couple of days to full track and understand MAQ, and BWA algorithms. ^ ^

    Best

    Jing

    Comment

    • henry
      Member
      • Sep 2009
      • 36

      #3
      Originally posted by mingkunli View Post
      besides the content that shown in .sam file(alignment of the best match, and number of suboptimal/all hits), seems it also contains some information of the suboptimal hits, is it possible to look at the details of these hits.
      with the command "bwa samse -n INT", I can only get the position where they mapped and number of mismatch.

      For paired-end data, whether "bwa sampe" consider the suboptimal hits? i.e., best-best match violate the distance constrain, but suboptimal-suboptimal or suboptimal-best may be in the rational distance.
      I haven't used bwa to process paired-end reads. So I have no hand-on experiences yet.
      "BWA first finds the positions of all the good hits, sorts them according to the chromosomal coordinates and then does a linear scan through all the potential hits to pair the two ends." From the description of the BWA algorithm I listed above, when pairing two ends, the distance constraints have been considered, so the phenomena you mentioned will never happen.

      Comment

      • henry
        Member
        • Sep 2009
        • 36

        #4
        Originally posted by henry View Post
        I haven't used bwa to process paired-end reads. So I have no hand-on experiences yet.
        "BWA first finds the positions of all the good hits, sorts them according to the chromosomal coordinates and then does a linear scan through all the potential hits to pair the two ends." From the description of the BWA algorithm I listed above, when pairing two ends, the distance constraints have been considered, so the phenomena you mentioned will never happen.
        Sorry, I just misunderstood you. In MAQ, two best hits are kept in the queue for one end. if there are multiple consistent hit pairs, the mapping qualities are set much lower. so suboptimal hits are considered in MAQ. In BWA, there isn't description about the details how bwa pair two ends. It should also be considered.

        best

        Jing

        Comment

        • mingkunli
          Member
          • Jan 2009
          • 42

          #5
          hey Jing, thanks for your help.
          I also got the reply from the author, thanks to lh3
          1) Both optimal and suboptimal hits are stored in .sai files, but only
          approximate chromosomal positions are available. Detailed alignments are
          reconstructed by samse and sampe.
          2) Sampe considers suboptimal hits in pairing.

          However, there is no way to generate the detailed alignments for these suboptimal
          hits(in sam format) using samse, sampe.

          Comment

          • henry
            Member
            • Sep 2009
            • 36

            #6
            Originally posted by mingkunli View Post
            hey Jing, thanks for your help.
            I also got the reply from the author, thanks to lh3
            1) Both optimal and suboptimal hits are stored in .sai files, but only
            approximate chromosomal positions are available. Detailed alignments are
            reconstructed by samse and sampe.
            2) Sampe considers suboptimal hits in pairing.

            However, there is no way to generate the detailed alignments for these suboptimal
            hits(in sam format) using samse, sampe.
            hi mingkunli,

            Thank you for sharing this. ^ ^

            Best

            Jing

            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
            27 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
            43 views
            0 reactions
            Last Post SEQadmin2  
            Working...