changeset 259:91ad9bf5a734 draft

Uploaded
author francesco_lapi
date Tue, 04 Mar 2025 15:07:43 +0000
parents 466172709d68
children 70b2bff188dd
files COBRAxy/ras_generator.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/COBRAxy/ras_generator.py	Tue Mar 04 15:05:13 2025 +0000
+++ b/COBRAxy/ras_generator.py	Tue Mar 04 15:07:43 2025 +0000
@@ -221,7 +221,7 @@
                collections.Counter(gene[gene.columns[0]]).items() if count > 1]
     pat_dup = [item for item, count in 
                collections.Counter(list(gene.columns)).items() if count > 1]
-    gene_in_rule = None
+
     if gene_dup:
         if gene_custom == None:
             if args.rules_selector == 'HMRcore':
@@ -232,7 +232,9 @@
             
             elif args.rules_selector == 'ENGRO2':
                 gene_in_rule = pk.load(open(args.tool_dir + '/local/pickle files/ENGRO2_genes.p', 'rb'))
-            print(pk.load(open(args.tool_dir + '/local/pickle files/ENGRO2_genes.p', 'rb')))
+
+            gene_in_rule = pk.load(open(args.tool_dir + '/local/pickle files/ENGRO2_genes.p', 'rb'))
+
             print(gene_in_rule)
             print(f"{args.tool_dir}/local/pickle files/ENGRO2_genes.p")
             utils.logWarning(f"{args.tool_dir}'/local/pickle files/ENGRO2_genes.p'", ARGS.out_log)