Mercurial > repos > bimib > cobraxy
changeset 395:64563ca68ace draft
Uploaded
| author | francesco_lapi |
|---|---|
| date | Fri, 05 Sep 2025 13:22:34 +0000 |
| parents | a0b53ccc73a8 |
| children | dab29c3a5281 |
| files | COBRAxy/custom_data_generator.py COBRAxy/custom_data_generator.xml |
| diffstat | 2 files changed, 8 insertions(+), 6 deletions(-) [+] |
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)
--- a/COBRAxy/custom_data_generator.xml Fri Sep 05 13:05:29 2025 +0000 +++ b/COBRAxy/custom_data_generator.xml Fri Sep 05 13:22:34 2025 +0000 @@ -15,7 +15,7 @@ <