Skip to content

Commit

Permalink
Make it possible to test for VCF_REF as declared in the documentation
Browse files Browse the repository at this point in the history
Currently bcf_has_variant_types always returns 0 when testing for
the presence of VCF_REF, regardless of the actual type
  • Loading branch information
pd3 authored and daviesrob committed Jan 27, 2025
1 parent 1f338eb commit c6c1d19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vcf.c
Original file line number Diff line number Diff line change
Expand Up @@ -5161,6 +5161,7 @@ int bcf_has_variant_types(bcf1_t *rec, uint32_t bitmask,
else return bitmask & type;
}
// mode == bcf_match_exact
if ( bitmask==VCF_REF ) return type==bitmask ? 1 : 0;
return type==bitmask ? type : 0;
}

Expand Down

0 comments on commit c6c1d19

Please sign in to comment.