From 647a117b42a03561c81e5513e038db162fc81393 Mon Sep 17 00:00:00 2001
From: Amandine PERRIN <amandine.perrin@pasteur.fr>
Date: Tue, 5 Oct 2021 11:15:46 +0200
Subject: [PATCH] gff headers with 1 space instead of 2

---
 PanACoTA/annotate_module/format_prodigal.py | 2 +-
 PanACoTA/annotate_module/format_prokka.py   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/PanACoTA/annotate_module/format_prodigal.py b/PanACoTA/annotate_module/format_prodigal.py
index 30679831..76d6b124 100644
--- a/PanACoTA/annotate_module/format_prodigal.py
+++ b/PanACoTA/annotate_module/format_prodigal.py
@@ -358,7 +358,7 @@ def create_gff(gpath, gff_file, res_gff_file, res_lst_file, contigs, sizes):
     # open lst file to read all information saved from prodigal results
     with open(gff_file, 'r') as gf, open(res_gff_file, "w") as rgf, open(res_lst_file, "r") as rlf:
         # Write headers of gff3 file
-        rgf.write("##gff-version  3\n")
+        rgf.write("##gff-version 3\n")
         for ori_name, new_name in contigs.items():
             # Write the list of contigs, with their size
             end = sizes[new_name]
diff --git a/PanACoTA/annotate_module/format_prokka.py b/PanACoTA/annotate_module/format_prokka.py
index ec9e4fd4..ba299738 100644
--- a/PanACoTA/annotate_module/format_prokka.py
+++ b/PanACoTA/annotate_module/format_prokka.py
@@ -411,7 +411,7 @@ def generate_gff(gpath, prokka_gff_file, res_gff_file, res_lst_file, sizes, cont
     with open(prokka_gff_file, "r") as prokf, open(res_lst_file, "r") as lstf, \
             open(res_gff_file, "w") as gfff:
         # Write headers of gff3 file
-        gfff.write("##gff-version  3\n")
+        gfff.write("##gff-version 3\n")
         # Write all sequences with their size. Order by name in gembase format
         for old, new in sorted(contigs.items(), key=lambda items:items[1]):
             end = sizes[new]
-- 
GitLab