bcf_gt_allele

Macros for setting genotypes correctly, for use with bcf_update_genotypes only; idx corresponds to VCF's GT (1-based index to ALT or 0 for the reference allele) and val is the opposite, obtained from bcf_get_genotypes() below.

  1. auto bcf_gt_phased(int idx)
  2. auto bcf_gt_unphased(int idx)
  3. auto bcf_gt_is_missing(int val)
  4. auto bcf_gt_is_phased(int idx)
  5. auto bcf_gt_allele(int val)
    @system extern (C) @nogc nothrow pragma(inline, true)
    bcf_gt_allele
    (
    int val
    )
  6. enum int bcf_gt_missing;

Meta