Mercurial > repos > bimib > cobraxy
comparison COBRAxy/metabolicModel2Tabular.py @ 528:698802db290d draft
Uploaded
| author | luca_milaz |
|---|---|
| date | Tue, 21 Oct 2025 09:49:31 +0000 |
| parents | ca98c149ec61 |
| children |
comparison
equal
deleted
inserted
replaced
| 527:a9191eb88e69 | 528:698802db290d |
|---|---|
| 245 | 245 |
| 246 # Determine final model name: explicit --name overrides, otherwise use the model id | 246 # Determine final model name: explicit --name overrides, otherwise use the model id |
| 247 | 247 |
| 248 if ARGS.name == "ENGRO2" and ARGS.medium_selector != "Default": | 248 if ARGS.name == "ENGRO2" and ARGS.medium_selector != "Default": |
| 249 df_mediums = pd.read_csv(ARGS.tool_dir + "/local/medium/medium.csv", index_col = 0) | 249 df_mediums = pd.read_csv(ARGS.tool_dir + "/local/medium/medium.csv", index_col = 0) |
| 250 ARGS.medium_selector = ARGS.medium_selector.replace("_", " ") | 250 #ARGS.medium_selector = ARGS.medium_selector.replace("_", " ") medium.csv uses underscores now |
| 251 medium = df_mediums[[ARGS.medium_selector]] | 251 medium = df_mediums[[ARGS.medium_selector]] |
| 252 medium = medium[ARGS.medium_selector].to_dict() | 252 medium = medium[ARGS.medium_selector].to_dict() |
| 253 | 253 |
| 254 # Reset all medium reactions lower bound to zero | 254 # Reset all medium reactions lower bound to zero |
| 255 for rxn_id, _ in model.medium.items(): | 255 for rxn_id, _ in model.medium.items(): |
