]> git.donarmstrong.com Git - samtools.git/blobdiff - bcftools/vcf.c
* automatically fix errors in GL
[samtools.git] / bcftools / vcf.c
index 6d3abaa495516014135e68f43225e7b97a7f5710..d8cb1e6d3efc56b8c119f677b25d292f696e3428 100644 (file)
@@ -224,7 +224,7 @@ int vcf_read(bcf_t *bp, bcf_hdr_t *h, bcf1_t *b)
                                        y = b->n_alleles * (b->n_alleles + 1) / 2;
                                        for (j = 0; j < y; ++j) {
                                                x = strtod(q, &q);
-                                               data[(k-9) * y + j] = x;
+                                               data[(k-9) * y + j] = x > 0? -x/10. : x;
                                                ++q;
                                        }
                                }