bcf_update_info_*() - functions for updating INFO fields
@param hdr: the BCF header
@param line: VCF line to be edited
@param key: the INFO tag to be updated
@param values: pointer to the array of values. Pass NULL to remove the tag.
@param n: number of values in the array. When set to 0, the INFO tag is removed
@return 0 on success or negative value on error.
The @p string in bcf_update_info_flag() is optional,
@p n indicates whether the flag is set or removed.
Note that updating an END info tag will cause line->rlen to be
updated as a side-effect (removing the tag will set it to the
string length of the REF allele). If line->pos is being changed as
well, it is important that this is done before calling
bcf_update_info_int32() to update the END tag, otherwise rlen will be
set incorrectly. If the new END value is less than or equal to
line->pos, a warning will be printed and line->rlen will be set to
the length of the REF allele.
bcf_update_info_*() - functions for updating INFO fields @param hdr: the BCF header @param line: VCF line to be edited @param key: the INFO tag to be updated @param values: pointer to the array of values. Pass NULL to remove the tag. @param n: number of values in the array. When set to 0, the INFO tag is removed @return 0 on success or negative value on error.
The @p string in bcf_update_info_flag() is optional, @p n indicates whether the flag is set or removed.
Note that updating an END info tag will cause line->rlen to be updated as a side-effect (removing the tag will set it to the string length of the REF allele). If line->pos is being changed as well, it is important that this is done before calling bcf_update_info_int32() to update the END tag, otherwise rlen will be set incorrectly. If the new END value is less than or equal to line->pos, a warning will be printed and line->rlen will be set to the length of the REF allele.