Skip to content

Commit

Permalink
Typo, change idx to val
Browse files Browse the repository at this point in the history
  • Loading branch information
yuw444 authored and pd3 committed Jan 16, 2025
1 parent dac8f29 commit 7b65da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htslib/vcf.h
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ set to one of BCF_ERR* codes and must be checked before calling bcf_write().
#define bcf_gt_unphased(idx) (((idx)+1)<<1)
#define bcf_gt_missing 0
#define bcf_gt_is_missing(val) ((val)>>1 ? 0 : 1)
#define bcf_gt_is_phased(idx) ((idx)&1)
#define bcf_gt_is_phased(val) ((val)&1)
#define bcf_gt_allele(val) (((val)>>1)-1)

/** Conversion between alleles indexes to Number=G genotype index (assuming diploid, all 0-based) */
Expand Down

0 comments on commit 7b65da3

Please sign in to comment.