Skip to content

Commit

Permalink
Fix field name in regions output
Browse files Browse the repository at this point in the history
  • Loading branch information
jpjarnoux committed Jun 10, 2024
1 parent 3e1abe5 commit 5d2de99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ppanggolin/formats/writeFlatPangenome.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5d2de99

Please sign in to comment.