]> git.donarmstrong.com Git - samtools.git/blobdiff - bcftools/call1.c
support trio indels
[samtools.git] / bcftools / call1.c
index b2d7d4a197b112ea10c6caf3ad4a9a13d95b1298..b0baee2ea1b346e24eadd2d9bccea0ed6e886f6a 100644 (file)
@@ -8,6 +8,11 @@
 #include "kstring.h"
 #include "time.h"
 
+#ifdef _WIN32
+#define srand48(x) srand(x)
+#define lrand48() rand()
+#endif
+
 #include "kseq.h"
 KSTREAM_INIT(gzFile, gzread, 16384)
 
@@ -490,7 +495,7 @@ int bcfview(int argc, char *argv[])
                        if (!(l > begin && end > b->pos)) continue;
                }
                ++n_processed;
-               if (vc.flag & VC_QCNT) { // summarize the difference
+               if ((vc.flag & VC_QCNT) && !is_indel) { // summarize the difference
                        int x = bcf_min_diff(b);
                        if (x > 255) x = 255;
                        if (x >= 0) ++qcnt[x];