Skip to content

Commit 81e9589

Browse files
committed
Fix contig lengths
1 parent 3d4e9a1 commit 81e9589

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

vcztools/vcf_writer.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -393,9 +393,7 @@ def _generate_header(
393393
)
394394

395395
# [1.4.7 Contig field format]
396-
contig_lengths = (
397-
ds.attrs["contig_lengths"] if "contig_lengths" in ds.attrs else None
398-
)
396+
contig_lengths = ds["contig_length"] if "contig_length" in ds else None
399397
for i, contig in enumerate(contigs):
400398
if contig_lengths is None:
401399
print(f"##contig=<ID={contig}>", file=output)

0 commit comments

Comments
 (0)