Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • BWA -n option

    I have been trying to use BWA to align my solid reads. In the manual it has been mentioned that you can use the -n option to limit the number of mismatches allowed between reference genome and the read. -n can be provided as an integer or float. In the latter case, the maximum edit distance will depend on the read length and equals to the float(n)* read length (I assume). My reads are 60 bp in length and somewhere I read that a minimum of 6-8 bp mismatches should be allowed for a solid read of length 60 bp.

    I ran two jobs first with -n 6 as an integer and for the the second one I provided -n 0.10. I assume the it means that 10% the bases in the read may have mismatches.

    1) Am I correct in assuming that -n 0.10 means that 10 % of bases in a read are allowed to mismatch(error or variants) with the reference genome?

    Assuming my understanding about this parameter is correct and using the BWA on same data(10,000,000 reads) on same machine (16 processors), here is the interesting thing I noticed:

    Case1: n = integer , running time = 7234 seconds, .sai (output file size) = 510 Mb
    aln -c -n 6 -d 15 -l 25 -k 2 -t 15

    Case2: n = float, running time = 1216 seconds, .sai (output file size) = 350 Mb
    aln -c -n 0.10 -d 15 -l 25 -k 2 -t 15

    2) Does anyone have any idea why there is so large difference in running time and why the second case produced more result? I repeated the comparison with many small datasets and found significant difference in running time and output.

    Thanks
    Last edited by seq_lover; 05-11-2012, 02:07 PM.

  • #2
    interesting! who knows the answer?

    Comment


    • #3
      -n 0.10 doesn't mean that 10% of the bases in the read may have mismatches. -n with a float is the expected fraction of alignments that will be missed, assuming an error rate during sequencing of 2%.

      In other words, -n 0.10 means you want the maximum number of mismatches set such that you will be able to map 90% of your reads successfully, assuming a 2% error rate.

      For 60bp reads, -n 0.10 is much more stringent than -n 6, and so you are only getting very close matches when you use this option. The fact that BWA does not have to search for alignments with many mismatches when you set -n 0.10 also explains why the running time is much shorter.

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Choosing Between NGS and qPCR
        by seqadmin



        Next-generation sequencing (NGS) and quantitative polymerase chain reaction (qPCR) are essential techniques for investigating the genome, transcriptome, and epigenome. In many cases, choosing the appropriate technique is straightforward, but in others, it can be more challenging to determine the most effective option. A simple distinction is that smaller, more focused projects are typically better suited for qPCR, while larger, more complex datasets benefit from NGS. However,...
        10-18-2024, 07:11 AM
      • seqadmin
        Non-Coding RNA Research and Technologies
        by seqadmin




        Non-coding RNAs (ncRNAs) do not code for proteins but play important roles in numerous cellular processes including gene silencing, developmental pathways, and more. There are numerous types including microRNA (miRNA), long ncRNA (lncRNA), circular RNA (circRNA), and more. In this article, we discuss innovative ncRNA research and explore recent technological advancements that improve the study of ncRNAs.

        Nobel Prize for MicroRNA Discovery
        This week,...
        10-07-2024, 08:07 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 11-01-2024, 06:09 AM
      0 responses
      17 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 10-30-2024, 05:31 AM
      0 responses
      17 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 10-24-2024, 06:58 AM
      0 responses
      24 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 10-23-2024, 08:43 AM
      0 responses
      53 views
      0 likes
      Last Post seqadmin  
      Working...
      X