Skip to content

Commit 3704e11

Browse files
committed
added sample names to the header
1 parent a506f88 commit 3704e11

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

convert_gvf_to_vcf/convertGVFtoVCF.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,9 @@ def generate_vcf_metainformation(lines_custom_unstructured, gvf_pragmas, gvf_non
583583
pragmas_to_add.append(non_essential_pragma_subject)
584584
elif non_essential_pragma.startswith("#sample"):
585585
sample_information = non_essential_pragma.split(": ")[1]
586+
non_essential_pragma_sample = generate_custom_unstructured_metainfomation_line("sample", sample_information,
587+
lines_custom_unstructured)
588+
pragmas_to_add.append(non_essential_pragma_sample)
586589
list_of_sample_information = sample_information.split(";")
587590
for sample_info in list_of_sample_information:
588591
if sample_info.startswith("sample_name"):

0 commit comments

Comments
 (0)