Skip to content

Commit 222082c

Browse files
committed
rename files, bump version
1 parent a43b2a8 commit 222082c

17 files changed

+29
-21
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Changelog
22

3-
## Version 0.8.0 - 0.8.1
3+
## Version 0.8.0 - 0.8.2
44

5-
- Rename module files to follow PEP guidelines
6-
- Rename `GenomicRangesList` to `CompressedGenomicRangesList` and now extends compressed-lists
5+
- Rename `GenomicRangesList` to `CompressedGenomicRangesList` and now extends compressed-lists.
76
- Classes extend `BiocObject` from biocutils, provides a default metadata attribute and helper functions.
87
- Rename `validate` to `_validate` for consistency with the rest of the packages and classes.
98
- Fix for empty compressed genomic ranges list.
9+
- Aliases `GRanges` and `CompressedGRangesList`.
1010

1111
## Version 0.7.0 - 0.7.3
1212

setup.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ python_requires = >=3.9
5050
install_requires =
5151
importlib-metadata; python_version<"3.8"
5252
biocframe>=0.7.1
53-
iranges>=0.7.0
54-
biocutils>=0.3.1
53+
iranges>=0.7.1
54+
biocutils>=0.3.3
55+
compressed_lists>=0.4.3
5556
numpy
56-
compressed_lists>=0.4.1
5757

5858
[options.packages.find]
5959
where = src
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3340,3 +3340,7 @@ def _combine_GenomicRanges(*x: GenomicRanges) -> GenomicRanges:
33403340
@ut.extract_row_names.register(GenomicRanges)
33413341
def _rownames_gr(x: GenomicRanges):
33423342
return x.get_names()
3343+
3344+
3345+
class GRanges(GenomicRanges):
3346+
pass

src/genomicranges/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
finally:
1616
del version, PackageNotFoundError
1717

18-
from .granges import GenomicRanges
19-
from .grangeslist import CompressedGenomicRangesList
18+
from .GenomicRanges import GenomicRanges, GRanges
19+
from .grangeslist import CompressedGenomicRangesList, CompressedGRangesList
2020
from .io.gtf import read_gtf
2121
from .io.ucsc import read_ucsc
2222
from .sequence_info import SeqInfo

src/genomicranges/grangeslist.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from compressed_lists.split_generic import _generic_register_helper, splitAsCompressedList
99
from iranges import CompressedIRangesList, IRanges
1010

11-
from .granges import GenomicRanges, _combine_GenomicRanges
11+
from .GenomicRanges import GenomicRanges, _combine_GenomicRanges
1212
from .sequence_info import SeqInfo
1313

1414
__author__ = "jkanche"
@@ -373,3 +373,7 @@ def _(
373373
return CompressedGenomicRangesList(
374374
unlist_data=partitioned_data, partitioning=groups_or_partitions, metadata=metadata
375375
)
376+
377+
378+
class CompressedGRangesList(CompressedGenomicRangesList):
379+
pass

src/genomicranges/io/gtf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,6 @@ def read_gtf(
128128
"""
129129
compressed = True if file.endswith("gz") else False
130130
data = parse_gtf(file, compressed=compressed, skiprows=skiprows, comment=comment)
131-
from ..granges import GenomicRanges
131+
from ..GenomicRanges import GenomicRanges
132132

133133
return GenomicRanges.from_pandas(data)

src/genomicranges/io/ucsc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ def read_ucsc(
5858
compressed = True
5959
data = parse_gtf(path, compressed=compressed)
6060

61-
from ..granges import GenomicRanges
61+
from ..GenomicRanges import GenomicRanges
6262

6363
return GenomicRanges.from_pandas(data)

tests/test_gr_comparisons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from biocframe import BiocFrame
55
from iranges import IRanges
66

7-
from genomicranges.granges import GenomicRanges
7+
from genomicranges.GenomicRanges import GenomicRanges
88

99
__author__ = "jkanche"
1010
__copyright__ = "jkanche"

tests/test_gr_coverage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from genomicranges.granges import GenomicRanges
1+
from genomicranges.GenomicRanges import GenomicRanges
22
from iranges import IRanges
33
from biocframe import BiocFrame
44
from random import random

tests/test_gr_flank.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from biocframe import BiocFrame
55
from iranges import IRanges
66

7-
from genomicranges.granges import GenomicRanges
7+
from genomicranges.GenomicRanges import GenomicRanges
88

99
__author__ = "jkanche"
1010
__copyright__ = "jkanche"

0 commit comments

Comments
 (0)