mgnify-pipelines-toolkit 1.1.2__py3-none-any.whl → 1.2.0__py3-none-any.whl
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.
Potentially problematic release.
This version of mgnify-pipelines-toolkit might be problematic. Click here for more details.
- mgnify_pipelines_toolkit/analysis/assembly/antismash_gff_builder.py +24 -27
- {mgnify_pipelines_toolkit-1.1.2.dist-info → mgnify_pipelines_toolkit-1.2.0.dist-info}/METADATA +6 -6
- {mgnify_pipelines_toolkit-1.1.2.dist-info → mgnify_pipelines_toolkit-1.2.0.dist-info}/RECORD +7 -7
- {mgnify_pipelines_toolkit-1.1.2.dist-info → mgnify_pipelines_toolkit-1.2.0.dist-info}/WHEEL +1 -1
- {mgnify_pipelines_toolkit-1.1.2.dist-info → mgnify_pipelines_toolkit-1.2.0.dist-info}/entry_points.txt +0 -0
- {mgnify_pipelines_toolkit-1.1.2.dist-info → mgnify_pipelines_toolkit-1.2.0.dist-info}/licenses/LICENSE +0 -0
- {mgnify_pipelines_toolkit-1.1.2.dist-info → mgnify_pipelines_toolkit-1.2.0.dist-info}/top_level.txt +0 -0
|
@@ -22,7 +22,6 @@ import pandas as pd
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
def parse_args():
|
|
25
|
-
|
|
26
25
|
parser = argparse.ArgumentParser()
|
|
27
26
|
parser.add_argument(
|
|
28
27
|
"-i", "--input", required=True, type=str, help="Input JSON from antiSMASH"
|
|
@@ -64,7 +63,6 @@ def main():
|
|
|
64
63
|
region_name = None
|
|
65
64
|
|
|
66
65
|
for feature in record["features"]:
|
|
67
|
-
|
|
68
66
|
if feature["type"] == "region":
|
|
69
67
|
# Annotate region features
|
|
70
68
|
region_name = (
|
|
@@ -129,35 +127,34 @@ def main():
|
|
|
129
127
|
cds_by_protocluster = record["modules"][
|
|
130
128
|
"antismash.detection.hmm_detection"
|
|
131
129
|
]["rule_results"]["cds_by_protocluster"]
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
130
|
+
|
|
131
|
+
if not cds_by_protocluster:
|
|
132
|
+
continue
|
|
133
|
+
|
|
134
|
+
for feature in cds_by_protocluster[0][1]:
|
|
135
|
+
if locus_tag := feature.get("cds_name"):
|
|
136
|
+
as_clusters = ",".join(list(feature["definition_domains"].keys()))
|
|
137
|
+
if locus_tag in attributes_dict:
|
|
138
|
+
attributes_dict[locus_tag].update(
|
|
139
|
+
{"as_gene_clusters": as_clusters}
|
|
138
140
|
)
|
|
139
|
-
if locus_tag in attributes_dict.keys():
|
|
140
|
-
attributes_dict[locus_tag].update(
|
|
141
|
-
{"as_gene_clusters": as_clusters}
|
|
142
|
-
)
|
|
143
141
|
|
|
144
142
|
if "antismash.detection.genefunctions" in record["modules"].keys():
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
143
|
+
gene_function_tools = record["modules"][
|
|
144
|
+
"antismash.detection.genefunctions"
|
|
145
|
+
]["tools"]
|
|
146
|
+
if tool_data := gene_function_tools.get("smcogs"):
|
|
147
|
+
|
|
148
|
+
for locus_tag in tool_data["best_hits"]:
|
|
149
|
+
smcog_id = tool_data["best_hits"][locus_tag]["reference_id"]
|
|
150
|
+
smcog_description = tool_data["best_hits"][locus_tag]["description"]
|
|
151
|
+
|
|
152
|
+
score = tool_data["best_hits"][locus_tag]["bitscore"]
|
|
153
|
+
e_value = tool_data["best_hits"][locus_tag]["evalue"]
|
|
156
154
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
break
|
|
155
|
+
smcog_note = f"smCOG:{smcog_id}:{smcog_description.replace(' ', '_')}(Score:{score}%3BE-value:{e_value})"
|
|
156
|
+
if locus_tag in attributes_dict.keys():
|
|
157
|
+
attributes_dict[locus_tag].update({"as_notes": smcog_note})
|
|
161
158
|
|
|
162
159
|
attributes = [
|
|
163
160
|
";".join(f"{k}={v}" for k, v in attrib_data.items() if v)
|
{mgnify_pipelines_toolkit-1.1.2.dist-info → mgnify_pipelines_toolkit-1.2.0.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mgnify_pipelines_toolkit
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.2.0
|
|
4
4
|
Summary: Collection of scripts and tools for MGnify pipelines
|
|
5
5
|
Author-email: MGnify team <metagenomics-help@ebi.ac.uk>
|
|
6
6
|
License: Apache Software License 2.0
|
|
@@ -8,7 +8,7 @@ Keywords: bioinformatics,pipelines,metagenomics
|
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
9
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
|
-
Requires-Python: >=3.
|
|
11
|
+
Requires-Python: >=3.11
|
|
12
12
|
Description-Content-Type: text/markdown
|
|
13
13
|
License-File: LICENSE
|
|
14
14
|
Requires-Dist: biopython>=1.85
|
|
@@ -20,10 +20,10 @@ Requires-Dist: click<9,>=8.1.8
|
|
|
20
20
|
Requires-Dist: pandera<0.24,>=0.23.1
|
|
21
21
|
Requires-Dist: pyfastx<3,>=2.2.0
|
|
22
22
|
Requires-Dist: intervaltree<4,>=3.1.0
|
|
23
|
-
Provides-Extra:
|
|
24
|
-
Requires-Dist: pytest<9,>=8.3.5; extra == "
|
|
25
|
-
Requires-Dist: pytest-md>=0.2.0; extra == "
|
|
26
|
-
Requires-Dist: pytest-workflow==2.1.0; extra == "
|
|
23
|
+
Provides-Extra: test
|
|
24
|
+
Requires-Dist: pytest<9,>=8.3.5; extra == "test"
|
|
25
|
+
Requires-Dist: pytest-md>=0.2.0; extra == "test"
|
|
26
|
+
Requires-Dist: pytest-workflow==2.1.0; extra == "test"
|
|
27
27
|
Provides-Extra: dev
|
|
28
28
|
Requires-Dist: pre-commit>=4.2.0; extra == "dev"
|
|
29
29
|
Requires-Dist: black>=25.1.0; extra == "dev"
|
{mgnify_pipelines_toolkit-1.1.2.dist-info → mgnify_pipelines_toolkit-1.2.0.dist-info}/RECORD
RENAMED
|
@@ -14,7 +14,7 @@ mgnify_pipelines_toolkit/analysis/amplicon/rev_comp_se_primers.py,sha256=yLpzkRJ
|
|
|
14
14
|
mgnify_pipelines_toolkit/analysis/amplicon/standard_primer_matching.py,sha256=K6gniytuItq5WzHLi1BsaUCOdP4Zm0_ZzW2_ns7-BTI,11114
|
|
15
15
|
mgnify_pipelines_toolkit/analysis/amplicon/study_summary_generator.py,sha256=epVClL10QcllL8yu7YGjx0rXNVHL2GxHi-Ek0MOjsjo,13859
|
|
16
16
|
mgnify_pipelines_toolkit/analysis/assembly/add_rhea_chebi_annotation.py,sha256=NZSNY2bqs_TQyz8riDqiEFPLKcwTgzh1C7DeVHT6V8Q,4366
|
|
17
|
-
mgnify_pipelines_toolkit/analysis/assembly/antismash_gff_builder.py,sha256=
|
|
17
|
+
mgnify_pipelines_toolkit/analysis/assembly/antismash_gff_builder.py,sha256=vZdDIcG09hulgCp0FylwHXVSGSlwl2RsDU4_xvsrUC0,6732
|
|
18
18
|
mgnify_pipelines_toolkit/analysis/assembly/combined_gene_caller_merge.py,sha256=Pq-9RSt3RCxzDMQVW1VHlHF4NtpVwCWFbg2CMkvpZZc,19089
|
|
19
19
|
mgnify_pipelines_toolkit/analysis/assembly/generate_gaf.py,sha256=2T4T7aXMGPac-LZUXJF3lOUzZZF50dAKkKTSaO-4idQ,3587
|
|
20
20
|
mgnify_pipelines_toolkit/analysis/assembly/gff_annotation_utils.py,sha256=6gbCRlEX1eBqzFYjOt3og-961dZ--QsCJL-7l5nzg1k,33992
|
|
@@ -49,9 +49,9 @@ mgnify_pipelines_toolkit/schemas/schemas.py,sha256=pyDZvCuWbwccQF0D7c5BN1vv36wQd
|
|
|
49
49
|
mgnify_pipelines_toolkit/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
50
50
|
mgnify_pipelines_toolkit/utils/fasta_to_delimited.py,sha256=lgYIR1S4crURY7C7nFtgE6QMV4u4zCNsUrVkcRnsEEo,3996
|
|
51
51
|
mgnify_pipelines_toolkit/utils/get_mpt_version.py,sha256=aS9bWrC9CP7tpxoEVg6eEYt18-pmjG7fJl5Mchz4YOU,798
|
|
52
|
-
mgnify_pipelines_toolkit-1.
|
|
53
|
-
mgnify_pipelines_toolkit-1.
|
|
54
|
-
mgnify_pipelines_toolkit-1.
|
|
55
|
-
mgnify_pipelines_toolkit-1.
|
|
56
|
-
mgnify_pipelines_toolkit-1.
|
|
57
|
-
mgnify_pipelines_toolkit-1.
|
|
52
|
+
mgnify_pipelines_toolkit-1.2.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
53
|
+
mgnify_pipelines_toolkit-1.2.0.dist-info/METADATA,sha256=uTDvoF0oYy-1ApjeygcGbjipM9ZLt1tLArKA6xDNyl4,5807
|
|
54
|
+
mgnify_pipelines_toolkit-1.2.0.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
|
55
|
+
mgnify_pipelines_toolkit-1.2.0.dist-info/entry_points.txt,sha256=JSjuxAr71MTeSUPPpno22wmZYgVO-gbsXfDkgWKkF7A,3533
|
|
56
|
+
mgnify_pipelines_toolkit-1.2.0.dist-info/top_level.txt,sha256=xA_wC7C01V3VwuDnqwRM2QYeJJ45WtvF6LVav4tYxuE,25
|
|
57
|
+
mgnify_pipelines_toolkit-1.2.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{mgnify_pipelines_toolkit-1.1.2.dist-info → mgnify_pipelines_toolkit-1.2.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|