diff COBRAxy/custom_data_generator.py @ 395:64563ca68ace draft

Uploaded
author francesco_lapi
date Fri, 05 Sep 2025 13:22:34 +0000
parents 52658ddcaa5d
children dab29c3a5281
line wrap: on
line diff
--- a/COBRAxy/custom_data_generator.py	Fri Sep 05 13:05:29 2025 +0000
+++ b/COBRAxy/custom_data_generator.py	Fri Sep 05 13:22:34 2025 +0000
@@ -229,7 +229,9 @@
     # Determine final model name: explicit --name overrides, otherwise use the model id
     
     model_name = ARGS.name if ARGS.name else ARGS.model
-    
+    print(ARGS.name)
+    print(model_name)
+    print(ARGS.medium_selector)
     
     if ARGS.name == "ENGRO2" and ARGS.medium_selector != "Default":
         df_mediums = pd.read_csv(ARGS.tool_dir + "/local/medium/medium.csv", index_col = 0)
@@ -247,7 +249,7 @@
                 model.reactions.get_by_id(reaction).lower_bound = -float(value)
 
     if ARGS.name == "ENGRO2" and ARGS.gene_format != "Default":
-        utils.convert_genes(model, ARGS.gene_format)
+        model = utils.convert_genes(model, ARGS.gene_format)
 
     # generate data
     rules = generate_rules(model, asParsed = False)