mgnify-pipelines-toolkit 1.0.5__py3-none-any.whl → 1.0.6__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.

@@ -29,24 +29,27 @@ from mgnify_pipelines_toolkit.analysis.assembly.gff_file_utils import (
29
29
  )
30
30
 
31
31
 
32
- def main(
33
- gff,
34
- ipr_file,
35
- eggnog_file,
36
- sanntis_file,
37
- crispr_file,
38
- amr_file,
39
- antismash_file,
40
- gecco_file,
41
- dbcan_file,
42
- dbcan_cazys_file,
43
- defense_finder_file,
44
- pseudofinder_file,
45
- rfam_file,
46
- trnascan_file,
47
- outfile,
48
- pseudogene_report_file,
49
- ):
32
+ def main():
33
+
34
+ (
35
+ gff,
36
+ ipr_file,
37
+ eggnog_file,
38
+ sanntis_file,
39
+ crispr_file,
40
+ amr_file,
41
+ antismash_file,
42
+ gecco_file,
43
+ dbcan_file,
44
+ dbcan_cazys_file,
45
+ defense_finder_file,
46
+ pseudofinder_file,
47
+ rfam_file,
48
+ trnascan_file,
49
+ outfile,
50
+ pseudogene_report_file,
51
+ ) = parse_args()
52
+
50
53
  # load annotations and add them to existing CDS
51
54
  # here header contains leading GFF lines starting with "#",
52
55
  # main_gff_extended is a dictionary that contains GFF lines with added in additional annotations
@@ -163,12 +166,8 @@ def parse_args():
163
166
  "--pseudogene-report", help="Pseudogene report filename", required=False
164
167
  )
165
168
 
166
- return parser.parse_args()
167
-
168
-
169
- if __name__ == "__main__":
170
- args = parse_args()
171
- main(
169
+ args = parser.parse_args()
170
+ return (
172
171
  args.gff_input,
173
172
  args.ips,
174
173
  args.eggnog,
@@ -186,3 +185,7 @@ if __name__ == "__main__":
186
185
  args.outfile,
187
186
  args.pseudogene_report,
188
187
  )
188
+
189
+
190
+ if __name__ == "__main__":
191
+ main()
@@ -24,7 +24,16 @@ import re
24
24
  logging.basicConfig(level=logging.INFO)
25
25
 
26
26
 
27
- def main(hmm_file, overview_file, genome_gff, outfile, dbcan_version):
27
+ def main():
28
+
29
+ args = parse_args()
30
+ hmm_file, overview_file, genome_gff, outfile, dbcan_ver = (
31
+ args.hmm_file,
32
+ args.overview_file,
33
+ args.genome_gff,
34
+ args.outfile,
35
+ args.dbcan_ver,
36
+ )
28
37
 
29
38
  hmm_path = Path(hmm_file)
30
39
  overview_path = Path(overview_file)
@@ -38,7 +47,7 @@ def main(hmm_file, overview_file, genome_gff, outfile, dbcan_version):
38
47
  substrates = load_substrates(hmm_path)
39
48
  genome_gff_lines = load_gff(genome_gff)
40
49
 
41
- print_gff(overview_file, outfile, dbcan_version, substrates, genome_gff_lines)
50
+ print_gff(overview_file, outfile, dbcan_ver, substrates, genome_gff_lines)
42
51
 
43
52
 
44
53
  def load_gff(gff):
@@ -205,7 +214,4 @@ def parse_args():
205
214
 
206
215
 
207
216
  if __name__ == "__main__":
208
- args = parse_args()
209
- main(
210
- args.hmm_file, args.overview_file, args.genome_gff, args.outfile, args.dbcan_ver
211
- )
217
+ main()
@@ -22,7 +22,15 @@ from pathlib import Path
22
22
  logging.basicConfig(level=logging.INFO)
23
23
 
24
24
 
25
- def main(standard_file, substrate_file, outfile, dbcan_version):
25
+ def main():
26
+
27
+ args = parse_args()
28
+ standard_file, substrate_file, outfile, dbcan_ver = (
29
+ args.standard_file,
30
+ args.substrate_file,
31
+ args.outfile,
32
+ args.dbcan_ver,
33
+ )
26
34
  standard_path = Path(standard_file)
27
35
  substrate_path = Path(substrate_file)
28
36
 
@@ -36,7 +44,7 @@ def main(standard_file, substrate_file, outfile, dbcan_version):
36
44
 
37
45
  substrates = load_substrates(substrate_path)
38
46
  cgc_locations = load_cgcs(standard_path)
39
- print_gff(standard_path, outfile, dbcan_version, substrates, cgc_locations)
47
+ print_gff(standard_path, outfile, dbcan_ver, substrates, cgc_locations)
40
48
 
41
49
 
42
50
  def load_cgcs(standard_path):
@@ -158,5 +166,4 @@ def parse_args():
158
166
 
159
167
 
160
168
  if __name__ == "__main__":
161
- args = parse_args()
162
- main(args.standard_file, args.substrate_file, args.outfile, args.dbcan_ver)
169
+ main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mgnify_pipelines_toolkit
3
- Version: 1.0.5
3
+ Version: 1.0.6
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
@@ -18,11 +18,11 @@ mgnify_pipelines_toolkit/analysis/assembly/combined_gene_caller_merge.py,sha256=
18
18
  mgnify_pipelines_toolkit/analysis/assembly/generate_gaf.py,sha256=2T4T7aXMGPac-LZUXJF3lOUzZZF50dAKkKTSaO-4idQ,3587
19
19
  mgnify_pipelines_toolkit/analysis/assembly/gff_annotation_utils.py,sha256=6gbCRlEX1eBqzFYjOt3og-961dZ--QsCJL-7l5nzg1k,33992
20
20
  mgnify_pipelines_toolkit/analysis/assembly/gff_file_utils.py,sha256=_4J31wAjK5B15p9lDzTG2wmZdyoZkOgmy7Kp_w8lTeE,3812
21
- mgnify_pipelines_toolkit/analysis/assembly/gff_toolkit.py,sha256=n2rbS8UHevF8OB4umo7QivS6v4avlgsCaRwrBbVmZ24,5398
21
+ mgnify_pipelines_toolkit/analysis/assembly/gff_toolkit.py,sha256=_iaTBvMKbQDi_02_QuSPqLJ_rC37ruxiPHv5lLQmI-w,5480
22
22
  mgnify_pipelines_toolkit/analysis/assembly/go_utils.py,sha256=eay9e3Xdc8XxnlC_4SHHjN89k-M9i_cFMc2lI_ZFxqY,5596
23
23
  mgnify_pipelines_toolkit/analysis/assembly/krona_txt_from_cat_classification.py,sha256=uex2T6GagtYFBIc39-Xm4SFHL06KAQ5v0_loOmY_eaw,4289
24
- mgnify_pipelines_toolkit/analysis/assembly/process_dbcan_result_cazys.py,sha256=dlsXfLPvm1qXRQplM0d5q0JMv9AuD9ytZn3utgYDYAM,7712
25
- mgnify_pipelines_toolkit/analysis/assembly/process_dbcan_result_clusters.py,sha256=61zVSuQ6Jw2hZU6QOa05lNcrr8Ylzpy2Tes-QaX8kFw,5888
24
+ mgnify_pipelines_toolkit/analysis/assembly/process_dbcan_result_cazys.py,sha256=5lbVSWRZoi61cKvuolzUJlhUBzpx8DgWMH0Vzw1HcHA,7748
25
+ mgnify_pipelines_toolkit/analysis/assembly/process_dbcan_result_clusters.py,sha256=i4uYdqY6y2ee72vl0sLkHeJvigHGKJMzdyR3HEIK1Mk,5930
26
26
  mgnify_pipelines_toolkit/analysis/assembly/summarise_antismash_bgcs.py,sha256=eRAQ0vFbqnWreiBdtFuwLKve9WwYwv9dYQtD1pumaZs,10776
27
27
  mgnify_pipelines_toolkit/analysis/assembly/summarise_goslims.py,sha256=TPaKlYkoy37_XgYNOskWCCoXtPNku_k5ygSeK4fT1VQ,6689
28
28
  mgnify_pipelines_toolkit/analysis/assembly/summarise_sanntis_bgcs.py,sha256=65szj-H8Hxy_eXy3TyTs48EhPJbJ2w1skHlVbH2YeVM,4538
@@ -48,9 +48,9 @@ mgnify_pipelines_toolkit/schemas/schemas.py,sha256=pnH8LUH8i2ACNvFNWyG-n-eIHZcI5
48
48
  mgnify_pipelines_toolkit/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
49
  mgnify_pipelines_toolkit/utils/fasta_to_delimited.py,sha256=lgYIR1S4crURY7C7nFtgE6QMV4u4zCNsUrVkcRnsEEo,3996
50
50
  mgnify_pipelines_toolkit/utils/get_mpt_version.py,sha256=aS9bWrC9CP7tpxoEVg6eEYt18-pmjG7fJl5Mchz4YOU,798
51
- mgnify_pipelines_toolkit-1.0.5.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
52
- mgnify_pipelines_toolkit-1.0.5.dist-info/METADATA,sha256=fp1mfamjDfteh42zghP_y8br_zRaEYGzAhbDB7O72mc,5810
53
- mgnify_pipelines_toolkit-1.0.5.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
54
- mgnify_pipelines_toolkit-1.0.5.dist-info/entry_points.txt,sha256=T8soGT2to8c_qafw-0itqCn4sjOnxlfaNWHIaHz4H54,3416
55
- mgnify_pipelines_toolkit-1.0.5.dist-info/top_level.txt,sha256=xA_wC7C01V3VwuDnqwRM2QYeJJ45WtvF6LVav4tYxuE,25
56
- mgnify_pipelines_toolkit-1.0.5.dist-info/RECORD,,
51
+ mgnify_pipelines_toolkit-1.0.6.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
52
+ mgnify_pipelines_toolkit-1.0.6.dist-info/METADATA,sha256=b9Hoo0e0xVvL4erImJgt_7gtbb-5Yx8TZNlf9KZcQIY,5810
53
+ mgnify_pipelines_toolkit-1.0.6.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
54
+ mgnify_pipelines_toolkit-1.0.6.dist-info/entry_points.txt,sha256=T8soGT2to8c_qafw-0itqCn4sjOnxlfaNWHIaHz4H54,3416
55
+ mgnify_pipelines_toolkit-1.0.6.dist-info/top_level.txt,sha256=xA_wC7C01V3VwuDnqwRM2QYeJJ45WtvF6LVav4tYxuE,25
56
+ mgnify_pipelines_toolkit-1.0.6.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: setuptools (79.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5