Skip to content

Commit 3c4ee79

Browse files
committed
uses macro to check missing allele
1 parent e4a21b8 commit 3c4ee79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/mendelian2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,12 +566,12 @@ static int parse_gt(int32_t *gt, int ngt, uint64_t *a, uint64_t *b)
566566
{
567567
*a = *b = 0;
568568

569-
if ( gt[0]==bcf_gt_missing || gt[0]==bcf_int32_vector_end ) return 0;
569+
if ( bcf_gt_is_missing(gt[0]) || gt[0]==bcf_int32_vector_end ) return 0;
570570
*a |= 1<<bcf_gt_allele(gt[0]);
571571

572572
if ( ngt==1 || gt[1]==bcf_int32_vector_end ) return 1;
573573

574-
if ( gt[1]==bcf_gt_missing ) return 0;
574+
if ( bcf_gt_is_missing(gt[1]) ) return 0;
575575
*b |= 1<<bcf_gt_allele(gt[1]);
576576

577577
return 2;

0 commit comments

Comments
 (0)