From e2bd6d5a53008742792966cb9ef7d8eff97c16b9 Mon Sep 17 00:00:00 2001 From: Heng Li Date: Sun, 1 Mar 2009 15:18:43 +0000 Subject: [PATCH] * wgsim-0.2.3 * fixed a bug in simulating indels --- misc/wgsim.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/wgsim.c b/misc/wgsim.c index 485dce1..1522eee 100644 --- a/misc/wgsim.c +++ b/misc/wgsim.c @@ -39,7 +39,7 @@ #include #include -#define PACKAGE_VERSION "0.2.2" +#define PACKAGE_VERSION "0.2.3" const uint8_t nst_nt4_table[256] = { 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, @@ -366,6 +366,7 @@ void wgsim_core(FILE *fpout1, FILE *fpout2, FILE *fp_fa, int is_hap, uint64_t N, } else { \ int n, ins; \ ++n_indel[x]; \ + tmp_seq[x][k++] = c & 0xf; \ for (n = mut_type>>12, ins = c>>4; n > 0 && k < s[x]; --n, ins >>= 2) \ tmp_seq[x][k++] = ins & 0x3; \ } \ -- 2.39.2