comparison COBRAxy/flux_simulation.py @ 158:30acaa01df61 draft

Uploaded
author francesco_lapi
date Tue, 12 Nov 2024 14:19:01 +0000
parents d02c0b55a47b
children 898f2641d3f7
comparison
equal deleted inserted replaced
157:d02c0b55a47b 158:30acaa01df61
89 help = 'output type analysis') 89 help = 'output type analysis')
90 90
91 parser.add_argument( 91 parser.add_argument(
92 '-idop', '--output_path', 92 '-idop', '--output_path',
93 type = str, 93 type = str,
94 default='result', 94 default='flux_simulation',
95 help = 'output path for maps') 95 help = 'output path for maps')
96 96
97 ARGS = parser.parse_args(args) 97 ARGS = parser.parse_args(args)
98 return ARGS 98 return ARGS
99 99
379 379
380 num_processors = cpu_count() 380 num_processors = cpu_count()
381 381
382 global ARGS 382 global ARGS
383 ARGS = process_args(args) 383 ARGS = process_args(args)
384
385 if not os.path.exists('flux_simulation/'):
386 os.makedirs('flux_simulation/')
384 387
385 388
386 model_type :utils.Model = ARGS.model_selector 389 model_type :utils.Model = ARGS.model_selector
387 if model_type is utils.Model.Custom: 390 if model_type is utils.Model.Custom:
388 model = model_type.getCOBRAmodel(customPath = utils.FilePath.fromStrPath(ARGS.model), customExtension = utils.FilePath.fromStrPath(ARGS.model_name).ext) 391 model = model_type.getCOBRAmodel(customPath = utils.FilePath.fromStrPath(ARGS.model), customExtension = utils.FilePath.fromStrPath(ARGS.model_name).ext)