gtfparse 3.0.4__tar.gz → 3.0.5__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.
- {gtfparse-3.0.4/gtfparse.egg-info → gtfparse-3.0.5}/PKG-INFO +5 -5
- {gtfparse-3.0.4 → gtfparse-3.0.5}/README.md +1 -1
- {gtfparse-3.0.4 → gtfparse-3.0.5}/benchmarks/compare_releases.py +2 -2
- {gtfparse-3.0.4 → gtfparse-3.0.5}/gtfparse/__init__.py +1 -1
- {gtfparse-3.0.4 → gtfparse-3.0.5}/gtfparse/write_gtf.py +2 -2
- {gtfparse-3.0.4 → gtfparse-3.0.5/gtfparse.egg-info}/PKG-INFO +5 -5
- {gtfparse-3.0.4 → gtfparse-3.0.5}/pyproject.toml +5 -5
- {gtfparse-3.0.4 → gtfparse-3.0.5}/LICENSE +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/MANIFEST.in +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/benchmarks/README.md +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/benchmarks/compare_readers.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/benchmarks/optimization-results.json +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/benchmarks/optimization.md +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/benchmarks/results.json +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/gtfparse/_polars.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/gtfparse/_read_csv.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/gtfparse/attribute_parsing.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/gtfparse/create_missing_features.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/gtfparse/parsing_error.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/gtfparse/read_gtf.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/gtfparse.egg-info/SOURCES.txt +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/gtfparse.egg-info/dependency_links.txt +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/gtfparse.egg-info/requires.txt +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/gtfparse.egg-info/top_level.txt +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/lint.sh +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/requirements.txt +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/setup.cfg +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/test.sh +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/__init__.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/data/B16.stringtie.head.gtf +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/data/ensembl_grch37.head.gtf +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/data/ensembl_grch37.head.gtf.gz +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/data/gencode.head.gtf +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/data/gencode.real.head.gtf +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/data/refseq.ucsc.small.gtf +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/data.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/test_attribute_optimization.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/test_attribute_values.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/test_create_missing_features.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/test_ensembl_gtf.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/test_expand_attribute_column_false.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/test_expand_attributes.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/test_gencode_gtf.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/test_multiple_values_for_tag_attribute.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/test_parse_gtf_lines.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/test_polars_compatibility.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/test_progress.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/test_read_stringtie_gtf.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/test_reader.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/test_refseq_gtf.py +0 -0
- {gtfparse-3.0.4 → gtfparse-3.0.5}/tests/test_write_gtf.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gtfparse
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.5
|
|
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
|
License-Expression: Apache-2.0
|
|
@@ -12,12 +12,12 @@ Classifier: Operating System :: OS Independent
|
|
|
12
12
|
Classifier: Intended Audience :: Science/Research
|
|
13
13
|
Classifier: Programming Language :: Python
|
|
14
14
|
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
17
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
16
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
19
19
|
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
20
|
-
Requires-Python: >=3.
|
|
20
|
+
Requires-Python: >=3.11
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
22
22
|
License-File: LICENSE
|
|
23
23
|
Requires-Dist: pyarrow>=18.0.0
|
|
@@ -49,7 +49,7 @@ into columns.
|
|
|
49
49
|
python -m pip install gtfparse
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
Python 3.
|
|
52
|
+
Python 3.11 or later is required. For optional Polars output, install
|
|
53
53
|
`gtfparse[polars]`.
|
|
54
54
|
|
|
55
55
|
## Read an annotation and find genes
|
|
@@ -16,7 +16,7 @@ into columns.
|
|
|
16
16
|
python -m pip install gtfparse
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
Python 3.
|
|
19
|
+
Python 3.11 or later is required. For optional Polars output, install
|
|
20
20
|
`gtfparse[polars]`.
|
|
21
21
|
|
|
22
22
|
## Read an annotation and find genes
|
|
@@ -11,7 +11,7 @@ import os
|
|
|
11
11
|
import statistics
|
|
12
12
|
import subprocess
|
|
13
13
|
import sys
|
|
14
|
-
from datetime import
|
|
14
|
+
from datetime import UTC, datetime
|
|
15
15
|
from pathlib import Path
|
|
16
16
|
|
|
17
17
|
|
|
@@ -120,7 +120,7 @@ def main():
|
|
|
120
120
|
)
|
|
121
121
|
result = {
|
|
122
122
|
"description": "Complete production readers; imports/checksums outside wall time; sequential fresh processes",
|
|
123
|
-
"date": datetime.now(
|
|
123
|
+
"date": datetime.now(UTC).isoformat(),
|
|
124
124
|
"threads": args.threads,
|
|
125
125
|
"inputs": {
|
|
126
126
|
path.name: {
|
|
@@ -16,7 +16,7 @@ import sys
|
|
|
16
16
|
from collections.abc import Iterable
|
|
17
17
|
from itertools import repeat
|
|
18
18
|
from pathlib import Path
|
|
19
|
-
from typing import TYPE_CHECKING,
|
|
19
|
+
from typing import TYPE_CHECKING, Union
|
|
20
20
|
|
|
21
21
|
import pandas as pd
|
|
22
22
|
|
|
@@ -74,7 +74,7 @@ def _lines(df):
|
|
|
74
74
|
def write_gtf(
|
|
75
75
|
df: Union[pd.DataFrame, "polars.DataFrame"],
|
|
76
76
|
path: Union[str, Path],
|
|
77
|
-
header_lines:
|
|
77
|
+
header_lines: Iterable[str] | None = None,
|
|
78
78
|
) -> None:
|
|
79
79
|
"""
|
|
80
80
|
Write a DataFrame of genomic features back out to a GTF file.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gtfparse
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.5
|
|
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
|
License-Expression: Apache-2.0
|
|
@@ -12,12 +12,12 @@ Classifier: Operating System :: OS Independent
|
|
|
12
12
|
Classifier: Intended Audience :: Science/Research
|
|
13
13
|
Classifier: Programming Language :: Python
|
|
14
14
|
Classifier: Programming Language :: Python :: 3
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
17
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
18
16
|
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
19
19
|
Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
|
|
20
|
-
Requires-Python: >=3.
|
|
20
|
+
Requires-Python: >=3.11
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
22
22
|
License-File: LICENSE
|
|
23
23
|
Requires-Dist: pyarrow>=18.0.0
|
|
@@ -49,7 +49,7 @@ into columns.
|
|
|
49
49
|
python -m pip install gtfparse
|
|
50
50
|
```
|
|
51
51
|
|
|
52
|
-
Python 3.
|
|
52
|
+
Python 3.11 or later is required. For optional Polars output, install
|
|
53
53
|
`gtfparse[polars]`.
|
|
54
54
|
|
|
55
55
|
## Read an annotation and find genes
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "gtfparse"
|
|
7
|
-
requires-python = ">=3.
|
|
7
|
+
requires-python = ">=3.11"
|
|
8
8
|
authors = [ {name="Alex Rubinsteyn", email="alex.rubinsteyn@unc.edu" } ]
|
|
9
9
|
description = "Parsing library for extracting data frames of genomic features from GTF files"
|
|
10
10
|
license = "Apache-2.0"
|
|
@@ -16,10 +16,10 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Science/Research",
|
|
17
17
|
"Programming Language :: Python",
|
|
18
18
|
"Programming Language :: Python :: 3",
|
|
19
|
-
"Programming Language :: Python :: 3.9",
|
|
20
|
-
"Programming Language :: Python :: 3.10",
|
|
21
19
|
"Programming Language :: Python :: 3.11",
|
|
22
20
|
"Programming Language :: Python :: 3.12",
|
|
21
|
+
"Programming Language :: Python :: 3.13",
|
|
22
|
+
"Programming Language :: Python :: 3.14",
|
|
23
23
|
"Topic :: Scientific/Engineering :: Bio-Informatics",
|
|
24
24
|
]
|
|
25
25
|
readme = "README.md"
|
|
@@ -46,7 +46,7 @@ dependencies = {file = ["requirements.txt"]}
|
|
|
46
46
|
packages = ["gtfparse"]
|
|
47
47
|
|
|
48
48
|
[tool.ruff]
|
|
49
|
-
target-version = "
|
|
49
|
+
target-version = "py311"
|
|
50
50
|
line-length = 100
|
|
51
51
|
src = ["gtfparse", "tests"]
|
|
52
52
|
exclude = [
|
|
@@ -78,7 +78,7 @@ ignore = [
|
|
|
78
78
|
"B008", # do not perform function calls in argument defaults
|
|
79
79
|
"B905", # zip() without explicit strict
|
|
80
80
|
"SIM108", # use ternary operator instead of if-else
|
|
81
|
-
"UP007", #
|
|
81
|
+
"UP007", # retain the established Union annotation style
|
|
82
82
|
"UP031", # %-format strings
|
|
83
83
|
]
|
|
84
84
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|