Skip to content

Commit

Permalink
Only override VCF type and number for GT fields if they are FORMAT fi…
Browse files Browse the repository at this point in the history
…elds
  • Loading branch information
tomwhite authored and jeromekelleher committed Jul 1, 2024
1 parent 621131c commit 69ee0e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bio2zarr/vcf2zarr/icf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 69ee0e8

Please sign in to comment.