Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • cbaudo
    Member
    • Jan 2013
    • 21

    BOWTIE2: How to randomly map a read to single alignment when read is multimapping?

    I want to keep only one alignment per read, so if a read maps equally well to several locations, one location should be chosen at random. Could you help me identify the option to use in Bowtie2 to execute this?

    Thank you,
    CB
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Code:
     -k <int>           report up to <int> alns per read; MAPQ not meaningful
    Does not explicit say that it would be a random location.

    With BBMap you can specify ambig=random.

    Comment

    • cbaudo
      Member
      • Jan 2013
      • 21

      #3
      Many thanks

      Comment

      • cbaudo
        Member
        • Jan 2013
        • 21

        #4
        @GenoMax

        Could you suggest a PacBio aligner that is capable of doing this as well?

        Comment

        • GenoMax
          Senior Member
          • Feb 2008
          • 7142

          #5
          You can use mapPacBio.sh from BBMap to align pacbio data (ambig=random should work there).

          PacBio has blasr for alignment. It probably has an option to do what you want.

          Comment

          • Roy
            Member
            • Oct 2009
            • 17

            #6
            -k 1 is not a good idea. From the manual: "Bowtie 2 does not "find" alignments in any specific order, so for reads that have more than N distinct, valid alignments, Bowtie 2 does not garantee that the N alignments reported are the best possible in terms of alignment score." So -k 1 will just report the first alignment it comes across, not the best one. This is almost certainly not what you want.

            Actually the requested behaviour is the default - Bowtie2 reports the best alignment it can find, and if multiple equally-good alignments are found it picks one at random, and sets a low mapq score (as the alignment is not unique).

            For blasr, you probably want the option -hitPolicy randombest.

            BWA mem can also map PacBio reads (use the option -x pacbio). Like Bowtie2, the desired behaviour is the default.

            Comment

            Latest Articles

            Collapse

            • SEQadmin2
              Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
              by SEQadmin2



              Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
              ...
              07-09-2026, 11:10 AM
            • SEQadmin2
              Cancer Drug Resistance: The Lingering Barrier to Rising Survival
              by SEQadmin2



              Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

              There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
              07-08-2026, 05:17 AM
            • GATTACAT
              Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
              by GATTACAT
              Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
              07-01-2026, 11:43 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 07-13-2026, 10:26 AM
            0 responses
            22 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-09-2026, 10:04 AM
            0 responses
            32 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-08-2026, 10:08 AM
            0 responses
            20 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-07-2026, 11:05 AM
            0 responses
            34 views
            0 reactions
            Last Post SEQadmin2  
            Working...