Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

r364: bug in mem pairing (no effect with -A=1)

Forgot to adjust for matching score. This bug has no effect when -A takes the
default value.
  • Loading branch information...
commit e5355fe3a055307aaf8f6868770573a6c6aef0b4 1 parent bdf34f6
Heng Li authored

Showing 2 changed files with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 2  bwamem_pair.c
  2. 2  main.c
2  bwamem_pair.c
@@ -201,7 +201,7 @@ int mem_pair(const mem_opt_t *opt, int64_t l_pac, const uint8_t *pac, const mem_
201 201
 				if (dist > pes[dir].high) break;
202 202
 				if (dist < pes[dir].low)  continue;
203 203
 				ns = (dist - pes[dir].avg) / pes[dir].std;
204  
-				q = (int)((v.a[i].y>>32) + (v.a[k].y>>32) + .721 * log(2. * erfc(fabs(ns) * M_SQRT1_2)) + .499); // .721 = 1/log(4)
  204
+				q = (int)((v.a[i].y>>32) + (v.a[k].y>>32) + .721 * log(2. * erfc(fabs(ns) * M_SQRT1_2)) * opt->a + .499); // .721 = 1/log(4)
205 205
 				if (q < 0) q = 0;
206 206
 				p = kv_pushp(pair64_t, u);
207 207
 				p->y = (uint64_t)k<<32 | i;
2  main.c
@@ -3,7 +3,7 @@
3 3
 #include "utils.h"
4 4
 
5 5
 #ifndef PACKAGE_VERSION
6  
-#define PACKAGE_VERSION "0.7.2-r363-beta"
  6
+#define PACKAGE_VERSION "0.7.2-r364-beta"
7 7
 #endif
8 8
 
9 9
 int bwa_fa2pac(int argc, char *argv[]);

0 notes on commit e5355fe

Please sign in to comment.
Something went wrong with that request. Please try again.