]> git.donarmstrong.com Git - samtools.git/blobdiff - bam2bcf.c
* samtools-0.1.10-4 (r834)
[samtools.git] / bam2bcf.c
index de414d7176903dd323ced99f3b8de39396667517..45a0ccc36592edbcd8647e731a6476900c4b2c31 100644 (file)
--- a/bam2bcf.c
+++ b/bam2bcf.c
@@ -215,7 +215,7 @@ int bcf_call2bcf(int tid, int pos, bcf_call_t *bc, bcf1_t *b, bcf_callret1_t *bc
                        if (bc->a[i] < 0) break;
                        if (i > 1) kputc(',', &s);
                        for (j = 0; j < bca->indelreg; ++j)
-                               kputc("ACGT"[bca->indel_types[i]>>2*i&3], &s);
+                               kputc("ACGT"[bca->indel_types[i]>>2*j&3], &s);
                }
                kputc('\0', &s);
        } else { // a SNP