We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dac8f29 commit 7b65da3Copy full SHA for 7b65da3
htslib/vcf.h
@@ -1023,7 +1023,7 @@ set to one of BCF_ERR* codes and must be checked before calling bcf_write().
1023
#define bcf_gt_unphased(idx) (((idx)+1)<<1)
1024
#define bcf_gt_missing 0
1025
#define bcf_gt_is_missing(val) ((val)>>1 ? 0 : 1)
1026
- #define bcf_gt_is_phased(idx) ((idx)&1)
+ #define bcf_gt_is_phased(val) ((val)&1)
1027
#define bcf_gt_allele(val) (((val)>>1)-1)
1028
1029
/** Conversion between alleles indexes to Number=G genotype index (assuming diploid, all 0-based) */
0 commit comments