gtfparse 2.7.1__tar.gz → 2.7.2__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-2.7.1 → gtfparse-2.7.2}/PKG-INFO +1 -1
- {gtfparse-2.7.1 → gtfparse-2.7.2}/gtfparse/__init__.py +1 -1
- {gtfparse-2.7.1 → gtfparse-2.7.2}/gtfparse/attribute_parsing.py +1 -2
- {gtfparse-2.7.1 → gtfparse-2.7.2}/gtfparse/create_missing_features.py +2 -3
- {gtfparse-2.7.1 → gtfparse-2.7.2}/gtfparse/read_gtf.py +2 -3
- {gtfparse-2.7.1 → gtfparse-2.7.2}/gtfparse.egg-info/PKG-INFO +1 -1
- {gtfparse-2.7.1 → gtfparse-2.7.2}/LICENSE +0 -0
- {gtfparse-2.7.1 → gtfparse-2.7.2}/README.md +0 -0
- {gtfparse-2.7.1 → gtfparse-2.7.2}/gtfparse/parsing_error.py +0 -0
- {gtfparse-2.7.1 → gtfparse-2.7.2}/gtfparse.egg-info/SOURCES.txt +0 -0
- {gtfparse-2.7.1 → gtfparse-2.7.2}/gtfparse.egg-info/dependency_links.txt +0 -0
- {gtfparse-2.7.1 → gtfparse-2.7.2}/gtfparse.egg-info/requires.txt +0 -0
- {gtfparse-2.7.1 → gtfparse-2.7.2}/gtfparse.egg-info/top_level.txt +0 -0
- {gtfparse-2.7.1 → gtfparse-2.7.2}/pyproject.toml +0 -0
- {gtfparse-2.7.1 → gtfparse-2.7.2}/requirements.txt +0 -0
- {gtfparse-2.7.1 → gtfparse-2.7.2}/setup.cfg +0 -0
- {gtfparse-2.7.1 → gtfparse-2.7.2}/tests/test_create_missing_features.py +0 -0
- {gtfparse-2.7.1 → gtfparse-2.7.2}/tests/test_ensembl_gtf.py +0 -0
- {gtfparse-2.7.1 → gtfparse-2.7.2}/tests/test_expand_attribute_column_false.py +0 -0
- {gtfparse-2.7.1 → gtfparse-2.7.2}/tests/test_expand_attributes.py +0 -0
- {gtfparse-2.7.1 → gtfparse-2.7.2}/tests/test_gencode_gtf.py +0 -0
- {gtfparse-2.7.1 → gtfparse-2.7.2}/tests/test_multiple_values_for_tag_attribute.py +0 -0
- {gtfparse-2.7.1 → gtfparse-2.7.2}/tests/test_parse_gtf_lines.py +0 -0
- {gtfparse-2.7.1 → gtfparse-2.7.2}/tests/test_read_stringtie_gtf.py +0 -0
- {gtfparse-2.7.1 → gtfparse-2.7.2}/tests/test_refseq_gtf.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gtfparse
|
|
3
|
-
Version: 2.7.
|
|
3
|
+
Version: 2.7.2
|
|
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
|
|
@@ -14,7 +14,6 @@ import logging
|
|
|
14
14
|
from collections import OrderedDict
|
|
15
15
|
from sys import intern
|
|
16
16
|
|
|
17
|
-
logging.basicConfig(level=logging.INFO)
|
|
18
17
|
logger = logging.getLogger(__name__)
|
|
19
18
|
|
|
20
19
|
|
|
@@ -103,5 +102,5 @@ def expand_attribute_strings(attribute_strings, quote_char="'", missing_value=""
|
|
|
103
102
|
extra_columns[column_name] = column
|
|
104
103
|
column_order.append(column_name)
|
|
105
104
|
|
|
106
|
-
|
|
105
|
+
logger.info("Extracted GTF attributes: %s", column_order)
|
|
107
106
|
return OrderedDict((column_name, extra_columns[column_name]) for column_name in column_order)
|
|
@@ -15,7 +15,6 @@ from collections import OrderedDict
|
|
|
15
15
|
|
|
16
16
|
import pandas as pd
|
|
17
17
|
|
|
18
|
-
logging.basicConfig(level=logging.INFO)
|
|
19
18
|
logger = logging.getLogger(__name__)
|
|
20
19
|
|
|
21
20
|
|
|
@@ -58,9 +57,9 @@ def create_missing_features(dataframe, unique_keys={}, extra_columns={}, missing
|
|
|
58
57
|
|
|
59
58
|
for feature_name, groupby_key in unique_keys.items():
|
|
60
59
|
if feature_name in existing_features:
|
|
61
|
-
|
|
60
|
+
logger.info("Feature '%s' already exists in GTF data", feature_name)
|
|
62
61
|
continue
|
|
63
|
-
|
|
62
|
+
logger.info("Creating rows for missing feature '%s'", feature_name)
|
|
64
63
|
|
|
65
64
|
# don't include rows where the groupby key was missing
|
|
66
65
|
missing = pd.Series([x is None or x == "" for x in dataframe[groupby_key]])
|
|
@@ -19,7 +19,6 @@ import polars
|
|
|
19
19
|
from .attribute_parsing import expand_attribute_strings
|
|
20
20
|
from .parsing_error import ParsingError
|
|
21
21
|
|
|
22
|
-
logging.basicConfig(level=logging.INFO)
|
|
23
22
|
logger = logging.getLogger(__name__)
|
|
24
23
|
|
|
25
24
|
|
|
@@ -406,10 +405,10 @@ def read_gtf(
|
|
|
406
405
|
# the 2nd column is the transcript_biotype (otherwise, it's the
|
|
407
406
|
# gene_biotype)
|
|
408
407
|
if "gene_biotype" not in column_names:
|
|
409
|
-
|
|
408
|
+
logger.info("Using column 'source' to replace missing 'gene_biotype'")
|
|
410
409
|
result_df["gene_biotype"] = result_df["source"]
|
|
411
410
|
if "transcript_biotype" not in column_names:
|
|
412
|
-
|
|
411
|
+
logger.info("Using column 'source' to replace missing 'transcript_biotype'")
|
|
413
412
|
result_df["transcript_biotype"] = result_df["source"]
|
|
414
413
|
|
|
415
414
|
if usecols is not None:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: gtfparse
|
|
3
|
-
Version: 2.7.
|
|
3
|
+
Version: 2.7.2
|
|
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
|
|
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
|