Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • bwa mem: Get all possible alignments for multi-mapping reads

    When a read maps equally well to multiple locations in the genome, `bwa mem` seems to set the mapq to 0 and report one at random. So if there are two possible locations, I may end up with ~50% of my reads on chr1 and ~50% of my reads on chr2. However, I only care about the region on chr1, so I currently lose 50% of my reads because they end up getting placed on chr2.

    Is there any way I can get bwa to report multi-mapping reads in both locations, so that I get 100% of the reads on chr1 (as well as on chr2)?

    Or would I manually have to resolve the XA tag to generate these additional alignments? Has anybody done this before?

  • #2
    Not answering your question directly. This would be easy with bbmap.sh from BBMap suite. You would choose ambig=all option to get all possible alignments for multi-mappers.

    Comment


    • #3
      If you need to use bwa mem, you'll want to use the -h and/or the -a command-line options but I don't think that'll do exactly what you're after. A number of other aligners can report in the manner you have requested (eg bowtie2, novoalign).

      Be aware that some reads can have thousands of mapping locations so your raw output file can be over an order of magnitude larger than the standard output reporting only the best alignment.

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Recent Advances in Sequencing Analysis Tools
        by seqadmin


        The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
        05-06-2024, 07:48 AM
      • seqadmin
        Essential Discoveries and Tools in Epitranscriptomics
        by seqadmin




        The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
        04-22-2024, 07:01 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 05-14-2024, 07:03 AM
      0 responses
      25 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-10-2024, 06:35 AM
      0 responses
      44 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-09-2024, 02:46 PM
      0 responses
      59 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-07-2024, 06:57 AM
      0 responses
      45 views
      0 likes
      Last Post seqadmin  
      Working...
      X