Skip to content

Conversation

@whitwham
Copy link
Contributor

@whitwham whitwham commented Nov 6, 2025

Add a warning for incorrect Type in INFO and FORMAT in VCF header.

For issues #1937 and samtools/bcftools#2431.

Add a warning for incorrect Type in INFO and FORMAT in VCF header.

For issue samtools#1937
vcf.c Outdated
if (bcf_hdr_id2type(hdr, BCF_HL_INFO, id) != info_tags[i].type) {
hts_log_warning("%s should be declared as Type=%s",
info_tags[i].name, info_tags[i].type_str);
fmt_warned[i] = 1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be:

Suggested change
fmt_warned[i] = 1;
info_warned[i] = 1;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants