Mercurial > repos > bimib > cobraxy
comparison COBRAxy/metabolicModel2Tabular.py @ 495:e19083971cc3 draft
Uploaded
author | francesco_lapi |
---|---|
date | Tue, 30 Sep 2025 15:17:55 +0000 |
parents | 5397559097dc |
children | 6c973150937b |
comparison
equal
deleted
inserted
replaced
494:5397559097dc | 495:e19083971cc3 |
---|---|
186 # Load a custom model from file | 186 # Load a custom model from file |
187 model = load_custom_model( | 187 model = load_custom_model( |
188 utils.FilePath.fromStrPath(ARGS.input), utils.FilePath.fromStrPath(ARGS.name).ext) | 188 utils.FilePath.fromStrPath(ARGS.input), utils.FilePath.fromStrPath(ARGS.name).ext) |
189 else: | 189 else: |
190 # Load a built-in model | 190 # Load a built-in model |
191 if not ARGS.model: | |
192 raise utils.ArgsErr("model", "either --model or --input must be provided", "None") | |
191 | 193 |
192 try: | 194 try: |
193 model_enum = utils.Model[ARGS.model] # e.g., Model['ENGRO2'] | 195 model_enum = utils.Model[ARGS.model] # e.g., Model['ENGRO2'] |
194 except KeyError: | 196 except KeyError: |
195 raise utils.ArgsErr("model", "one of Recon/ENGRO2/HMRcore/Custom_model", ARGS.model) | 197 raise utils.ArgsErr("model", "one of Recon/ENGRO2/HMRcore/Custom_model", ARGS.model) |