From 5d2de99505ed4f243edfc13490cc74aef26d6edb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Arnoux?= Date: Mon, 10 Jun 2024 15:07:54 +0200 Subject: [PATCH] Fix field name in regions output --- ppanggolin/formats/writeFlatPangenome.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ppanggolin/formats/writeFlatPangenome.py b/ppanggolin/formats/writeFlatPangenome.py index 63f71e47..a7d29b6e 100644 --- a/ppanggolin/formats/writeFlatPangenome.py +++ b/ppanggolin/formats/writeFlatPangenome.py @@ -826,8 +826,8 @@ def write_rgp_table(regions: Set[Region], """ fname = output / "regions_of_genomic_plasticity.tsv" with write_compressed_or_not(fname, compress) as tab: - fieldnames = ["region", "genome", "contig", "start", - "stop", "genes", "contigBorder", "wholeContig"] + fieldnames = ["region", "genome", "contig", "genes", "first_gene", "last_gene", + "start", "stop", "length", "coordinates", "contigBorder", "wholeContig"] writer = csv.DictWriter(tab, fieldnames=fieldnames, delimiter='\t') writer.writeheader()