r462: SAM primary flag not properly set

This commit is contained in:
Heng Li 2017-10-04 13:11:29 -04:00
parent 2a1e738a94
commit 5babf41a38
2 changed files with 3 additions and 1 deletions

2
main.c
View File

@ -6,7 +6,7 @@
#include "mmpriv.h"
#include "getopt.h"
#define MM_VERSION "2.2-r461-dirty"
#define MM_VERSION "2.2-r462-dirty"
#ifdef __linux__
#include <sys/resource.h>

2
pe.c
View File

@ -143,6 +143,8 @@ void mm_pair(void *km, int max_gap_ref, int pe_bonus, int sub_diff, int match_sc
if (r[1]->mapq < 1) r[1]->mapq = 1;
}
}
mm_set_sam_pri(n_regs[0], regs[0]);
mm_set_sam_pri(n_regs[1], regs[1]);
kfree(km, a);
kfree(km, sc.a);