bcf_calc_ac() - calculate the number of REF and ALT alleles @header: for access to BCF_DT_ID dictionary @line: VCF line obtained from vcf_parse1 @ac: array of length line->n_allele @which: determine if INFO/AN,AC and indv fields be used
bcf_ij2G() - common task: allele indexes to Number=G index (diploid) @i,j: allele indexes, 0-based, i<=j
bcf_remove_allele_set() - remove ALT alleles according to bitset @rm_set @header: for access to BCF_DT_ID dictionary @line: VCF line obtained from vcf_parse1 @rm_set: pointer to kbitset_t object with bits set for allele indexes to remove
bcf_remove_alleles() - remove ALT alleles according to bitmask @mask @header: for access to BCF_DT_ID dictionary @line: VCF line obtained from vcf_parse1 @mask: alleles to remove
bcf_trim_alleles() - remove ALT alleles unused in genotype fields @header: for access to BCF_DT_ID dictionary @line: VCF line obtain from vcf_parse1
bcf_gt_type() - determines type of the genotype @fmt_ptr: the GT format field as set for example by set_fmt_ptr @isample: sample index (starting from 0) @ial: index of the 1st non-reference allele (starting from 1) @jal: index of the 2nd non-reference allele (starting from 1)
@file htslib/vcfutils.h Allele-related utility functions.