]> git.donarmstrong.com Git - samtools.git/blobdiff - bcftools/prob1.c
* fixed a bug in bedidx: input BED not sorted
[samtools.git] / bcftools / prob1.c
index 667a2732555dae4df733f12859c646eea6d63488..fc9cb29911c1abc746e63b9001a23e853aaa58f5 100644 (file)
@@ -488,6 +488,7 @@ int bcf_p1_cal(const bcf1_t *b, int do_contrast, bcf_p1aux_t *ma, bcf_p1rst_t *r
                        break;
                }
        }
+       if (i == b->n_gi) return -1; // no PL
        if (b->n_alleles < 2) return -1; // FIXME: find a better solution
        // 
        rst->rank0 = cal_pdg(b, ma);