We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bee0a6c commit 9af47f7Copy full SHA for 9af47f7
vcztools/vcf_writer.py
@@ -498,8 +498,17 @@ def _generate_header(
498
)
499
500
# [1.4.3 Filter field format]
501
- for filter in filters:
502
- print(f'##FILTER=<ID={filter},Description="">', file=output)
+ filter_descriptions = (
+ ds["filter_description"] if "filter_description" in ds else None
503
+ )
504
+ for i, filter in enumerate(filters):
505
+ filter_description = (
506
+ "" if filter_descriptions is None else filter_descriptions[i]
507
508
+ print(
509
+ f'##FILTER=<ID={filter},Description="{filter_description}">',
510
+ file=output,
511
512
513
# [1.4.4 Individual format field format]
514
for key in format_fields:
0 commit comments