There was an error while loading. Please reload this page.
1 parent a7d2f6f commit 3510c4fCopy full SHA for 3510c4f
falmeida_py/mges_function.py
@@ -14,13 +14,14 @@ def mges_stats(bacannot_summary):
14
15
# load dir of samples' results
16
results_dir = bacannot_summary[sample]['results_dir']
17
-
18
- # init MGE annotation dictionary
19
- bacannot_summary[sample]['MGE'] = {}
20
21
# integron_finder
22
if os.path.exists(f"{results_dir}/integron_finder/{sample}_integrons.gff") and os.stat(f"{results_dir}/integron_finder/{sample}_integrons.gff").st_size > 0:
23
+ # init MGE annotation dictionary
+ if 'MGE' not in bacannot_summary[sample]:
+ bacannot_summary[sample]['MGE'] = {}
24
+
25
# init integron_finder annotation dictionary
26
bacannot_summary[sample]['MGE']['integron_finder'] = {}
27
0 commit comments