Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bpetersen
    Member
    • Mar 2010
    • 20

    #1

    Illumina mapping with bwa

    I've been searching the forum for an answer for this, but couldn't find exactly what I was looking for. If a thread answering my question already exists, I would be grateful if someone pointed me to it.
    So, I've been trying out bwa for mapping of 75bp mate-pair Illumina data. It works fine so far, but I was trying out various parameters in bwa aln to find out the best setting and I think I need a little help.
    I've been playing with the parameters -n -q -k and -l and what I basically wanted to achieve is to allow only one or two mismatches per read. I've tried to disable seeding by setting a very high value for -l and then setting -n 1 or 2, but in IGV I can still see some reads that have a lot more mismatches.
    The last I tried out was:
    -n 2 -k 1 -l 10 -q 15
    but still I see reads with more than 2 mismatches...
    I would be very interested in why there are still more mismatches in my reads than I thought I allowed and also if you have some examples of parameters that you use for bwa Illumina mapping. I know it depends on the project etc. (like using -q 15 only if many of your reads have bad quality towards the end) but it would be good to get an idea what other people use concerning seeding/no seeding/number of mismatches etc.
    Thanks in advance!
  • wwmm933
    Member
    • Jan 2010
    • 17

    #2
    I have the same problem. Hope someone can help us!

    Comment

    • n00c
      Member
      • Nov 2009
      • 12

      #3
      The reason you are seeing reads with more mismatches than specified is because you have paired-end reads, and with paired-end read resolution usually you have a situation where one end maps to some location within the mismatch threshold specified, and the other doesn't, so the other end is then aligned using Smith-Waterman algorithm to the region where one would expect to find it, sometimes producing a quite a few mismatches, indels, or even clipping.

      Some mappers allow a user to specify an option that only "independently-mapped" reads should be paired, which would prevent this. Perhaps there is some work-around with BWA, but I would just filter out reads with more mismatches than normal (note that if pair concordance is important to you, the correct approach is to just accept the fact that some reads will contain more mismatches/indels then specified).
      Last edited by n00c; 03-15-2011, 07:22 AM.

      Comment

      • jstjohn
        Member
        • Jun 2010
        • 35

        #4
        If you really want to disable the sensitive mate mapping feature you can do that in bwa sampe with the -s option. Then you could go back and filter your reads for only those where both mates are still mapped using the `-F 12` feature in samtools view (-F means ignore reads containing a flag and 12 = 0x4+0x8 which are the flags for read unmapped and mate-unmapped). I think that would result in only mapped mated reads with 2 mismatches if you set -n 2. I don't think you need to mess with seeding or anything else.

        Comment

        • nilshomer
          Nils Homer
          • Nov 2008
          • 1283

          #5
          BWA searches for mappings up to N+1 differences, where N is the # of differences you specified (or calculated by read length given no option). The (N+1) is to guarantee all N differences. You could map each end of the read independently ("bwa aln" then "bwa samse") to see if you still see more than N+1 differences, and report them here.

          Comment

          • bpetersen
            Member
            • Mar 2010
            • 20

            #6
            Thank you so much for all your answers! I guess given the reasons for more mismatches than specified, I will keep those alignments. It doesn't seem to affect too many reads (from what I see in IGV), so I think I can live with that.
            Does anyone also have an example of the parameters they use for mapping of 75 bp mate-pair Illumina reads? That would be very helpful!

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