Skip to content

Commit 3811133

Browse files
jesper eisfeldtjesper eisfeldt
authored andcommitted
modified: svdb/merge_vcf_module.py
modified: svdb/merge_vcf_module_cython.py
1 parent a2ada3d commit 3811133

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

svdb/merge_vcf_module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def print_header(vcf_list, vcf_dictionary, args, command_line):
108108
for entry in sorted(subheader):
109109
print(subheader[entry].strip())
110110
if not args.notag:
111-
print("##INFO=<ID=VARID,Number=1,Type=String,Description=\"The variant ID of merged samples\">")
111+
print("##INFO=<ID=FOUNDBY,Number=1,Type=Integer,Description=\"The number of files containing the variant\">")
112112
print("##INFO=<ID=set,Number=1,Type=String,Description=\"Source VCF for the merged record in SVDB\">")
113113
print("##INFO=<ID=svdb_origin,Number=1,Type=String,Description=\"pipe separated list of the VCF for the merged record in SVDB\">")
114114

svdb/merge_vcf_module_cython.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ def merge(variants, samples, sample_order, sample_print_order, priority_order, a
331331
if not args.notag:
332332
set_tag = determine_set_tag(priority_order, files)
333333
line[7] += ";set={}".format(set_tag)
334+
line[7] += ";FOUNDBY={}".format( len(set(filters_tag.keys())) )
334335

335336
#add chrom information of all merged variants
336337
callers=[]

0 commit comments

Comments
 (0)