gtfparse 2.3.0__tar.gz → 2.4.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. {gtfparse-2.3.0 → gtfparse-2.4.0}/PKG-INFO +1 -1
  2. {gtfparse-2.3.0 → gtfparse-2.4.0}/gtfparse/__init__.py +1 -1
  3. {gtfparse-2.3.0 → gtfparse-2.4.0}/gtfparse/read_gtf.py +1 -13
  4. {gtfparse-2.3.0 → gtfparse-2.4.0}/gtfparse.egg-info/PKG-INFO +1 -1
  5. {gtfparse-2.3.0 → gtfparse-2.4.0}/LICENSE +0 -0
  6. {gtfparse-2.3.0 → gtfparse-2.4.0}/README.md +0 -0
  7. {gtfparse-2.3.0 → gtfparse-2.4.0}/gtfparse/attribute_parsing.py +0 -0
  8. {gtfparse-2.3.0 → gtfparse-2.4.0}/gtfparse/create_missing_features.py +0 -0
  9. {gtfparse-2.3.0 → gtfparse-2.4.0}/gtfparse/parsing_error.py +0 -0
  10. {gtfparse-2.3.0 → gtfparse-2.4.0}/gtfparse.egg-info/SOURCES.txt +0 -0
  11. {gtfparse-2.3.0 → gtfparse-2.4.0}/gtfparse.egg-info/dependency_links.txt +0 -0
  12. {gtfparse-2.3.0 → gtfparse-2.4.0}/gtfparse.egg-info/requires.txt +0 -0
  13. {gtfparse-2.3.0 → gtfparse-2.4.0}/gtfparse.egg-info/top_level.txt +0 -0
  14. {gtfparse-2.3.0 → gtfparse-2.4.0}/pyproject.toml +0 -0
  15. {gtfparse-2.3.0 → gtfparse-2.4.0}/requirements.txt +0 -0
  16. {gtfparse-2.3.0 → gtfparse-2.4.0}/setup.cfg +0 -0
  17. {gtfparse-2.3.0 → gtfparse-2.4.0}/tests/test_create_missing_features.py +0 -0
  18. {gtfparse-2.3.0 → gtfparse-2.4.0}/tests/test_ensembl_gtf.py +0 -0
  19. {gtfparse-2.3.0 → gtfparse-2.4.0}/tests/test_expand_attributes.py +0 -0
  20. {gtfparse-2.3.0 → gtfparse-2.4.0}/tests/test_multiple_values_for_tag_attribute.py +0 -0
  21. {gtfparse-2.3.0 → gtfparse-2.4.0}/tests/test_parse_gtf_lines.py +0 -0
  22. {gtfparse-2.3.0 → gtfparse-2.4.0}/tests/test_read_stringtie_gtf.py +0 -0
  23. {gtfparse-2.3.0 → gtfparse-2.4.0}/tests/test_refseq_gtf.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gtfparse
3
- Version: 2.3.0
3
+ Version: 2.4.0
4
4
  Summary: Parsing library for extracting data frames of genomic features from GTF files
5
5
  Author-email: Alex Rubinsteyn <alex.rubinsteyn@unc.edu>
6
6
  Project-URL: Homepage, https://github.com/openvax/gtfparse
@@ -21,7 +21,7 @@ from .read_gtf import (
21
21
  REQUIRED_COLUMNS,
22
22
  )
23
23
 
24
- __version__ = "2.3.0"
24
+ __version__ = "2.4.0"
25
25
 
26
26
  __all__ = [
27
27
  "__version__",
@@ -105,22 +105,10 @@ def parse_with_polars_lazy(
105
105
  null_values=".",
106
106
  dtypes=DEFAULT_COLUMN_DTYPES)
107
107
  try:
108
- if type(filepath_or_buffer) is StringIO:
109
- df = polars.read_csv(
108
+ df = polars.read_csv(
110
109
  filepath_or_buffer,
111
110
  new_columns=REQUIRED_COLUMNS,
112
111
  **kwargs).lazy()
113
- elif filepath_or_buffer.endswith(".gz") or filepath_or_buffer.endswith(".gzip"):
114
- with gzip.open(filepath_or_buffer) as f:
115
- df = polars.read_csv(
116
- f,
117
- new_columns=REQUIRED_COLUMNS,
118
- **kwargs).lazy()
119
- else:
120
- df = polars.scan_csv(
121
- filepath_or_buffer,
122
- with_column_names=lambda cols: REQUIRED_COLUMNS,
123
- **kwargs).lazy()
124
112
  except polars.ShapeError:
125
113
  raise ParsingError("Wrong number of columns")
126
114
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gtfparse
3
- Version: 2.3.0
3
+ Version: 2.4.0
4
4
  Summary: Parsing library for extracting data frames of genomic features from GTF files
5
5
  Author-email: Alex Rubinsteyn <alex.rubinsteyn@unc.edu>
6
6
  Project-URL: Homepage, https://github.com/openvax/gtfparse
File without changes
File without changes
File without changes
File without changes
File without changes