Skip to content

Commit 435cc53

Browse files
Merge pull request #118 from SamBryce-Smith/to-gtf-gff3-phase-frame-fix
fix (to_gtf, to_gff3): stop 'phase' (gtf) and 'frame' (to_gff3) being erroneously added to attributes field
2 parents 0618a01 + d22c7a2 commit 435cc53

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

CHANGELOG.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 1.1.8 (30.12.25)
2+
- to_gtf and to_gff3: fix bug where 'phase' (gtf) and 'frame' (gff3) are erroneously added to attributes field
3+
14
# 1.1.7 (16.12.25)
25
- window_ranges: fix sort order issue in when using by (#98 and #105)
36
- window_ranges: added argument add_window_id, updated documentation

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ available at https://pyranges1.readthedocs.io/
2222
## Recent Changelog
2323

2424
```
25+
# 1.1.8 (30.12.25)
26+
- to_gtf and to_gff3: fix bug where 'phase' (gtf) and 'frame' (gff3) are erroneously added to attributes field
27+
2528
# v1.1.7 (16.12.25)
2629
- window_ranges: fix sort order issue in when using by (#98 and #105)
2730
- window_ranges: added argument add_window_id, updated documentation

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "pyranges1"
7-
version = "1.1.7"
7+
version = "1.1.8"
88
description = "GenomicRanges for Python."
99
requires-python = ">=3.12.0"
1010
readme = "README.md"

pyranges/core/out.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,12 @@ def _pyranges_to_gtf_like(
240240
if out_format == "gtf":
241241
all_columns = _ordered_gtf_columns[:-1]
242242
# first: gff column to pyranges column
243-
rename_columns = GFF3_COLUMNS_TO_PYRANGES.copy()
243+
rename_columns = GTF_COLUMNS_TO_PYRANGES.copy()
244244
attribute_formatter = gtf_formatter
245245
elif out_format == "gff3":
246246
all_columns = _ordered_gff3_columns[:-1]
247247
# first: gff column to pyranges column
248-
rename_columns = GTF_COLUMNS_TO_PYRANGES.copy()
248+
rename_columns = GFF3_COLUMNS_TO_PYRANGES.copy()
249249
attribute_formatter = gff3_formatter
250250
else:
251251
msg = f"Invalid output format: {out_format}. Must be one of 'gtf' or 'gff3'."

0 commit comments

Comments
 (0)