diff --git a/bio2zarr/vcf2zarr/icf.py b/bio2zarr/vcf2zarr/icf.py index db10f0d..e0e3ea6 100644 --- a/bio2zarr/vcf2zarr/icf.py +++ b/bio2zarr/vcf2zarr/icf.py @@ -240,7 +240,7 @@ def scan_vcf(path, target_num_partitions): for h in vcf.header_iter(): if h["HeaderType"] in ["INFO", "FORMAT"]: field = VcfField.from_header(h) - if field.name == "GT": + if h["HeaderType"] == "FORMAT" and field.name == "GT": field.vcf_type = "Integer" field.vcf_number = "." fields.append(field)