Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reset variant types after updating alleles
Variant type calls produced by bcf_set_variant_types() may be stale after updating alleles via bcf_update_alleles() or bcf_update_alleles_str(), so set d.var_type to -1 to force a recalculation. Fixes an out of bounds access in bcftools consensus that occurred when it added a new allele to a record.
- Loading branch information