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
        Understanding Genetic Influence on Infectious Disease
        by seqadmin




        During the COVID-19 pandemic, scientists observed that while some individuals experienced severe illness when infected with SARS-CoV-2, others were barely affected. These disparities left researchers and clinicians wondering what causes the wide variations in response to viral infections and what role genetics plays.

        Jean-Laurent Casanova, M.D., Ph.D., Professor at Rockefeller University, is a leading expert in this crossover between genetics and infectious...
        09-09-2024, 10:59 AM
      • seqadmin
        Addressing Off-Target Effects in CRISPR Technologies
        by seqadmin






        The first FDA-approved CRISPR-based therapy marked the transition of therapeutic gene editing from a dream to reality1. CRISPR technologies have streamlined gene editing, and CRISPR screens have become an important approach for identifying genes involved in disease processes2. This technique introduces targeted mutations across numerous genes, enabling large-scale identification of gene functions, interactions, and pathways3. Identifying the full range...
        08-27-2024, 04:44 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 09-11-2024, 02:44 PM
      0 responses
      11 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 09-06-2024, 08:02 AM
      0 responses
      145 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 09-03-2024, 08:30 AM
      0 responses
      152 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 08-27-2024, 04:40 AM
      0 responses
      161 views
      0 likes
      Last Post seqadmin  
      Working...
      X