Skip to content

Commit c6c1d19

Browse files
pd3daviesrob
authored andcommitted
Make it possible to test for VCF_REF as declared in the documentation
Currently bcf_has_variant_types always returns 0 when testing for the presence of VCF_REF, regardless of the actual type
1 parent 1f338eb commit c6c1d19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vcf.c

+1
Original file line numberDiff line numberDiff line change
@@ -5161,6 +5161,7 @@ int bcf_has_variant_types(bcf1_t *rec, uint32_t bitmask,
51615161
else return bitmask & type;
51625162
}
51635163
// mode == bcf_match_exact
5164+
if ( bitmask==VCF_REF ) return type==bitmask ? 1 : 0;
51645165
return type==bitmask ? type : 0;
51655166
}
51665167

0 commit comments

Comments
 (0)