comparison COBRAxy/src/flux_simulation.py @ 552:0b3e3678ea95 draft default tip

Uploaded
author francesco_lapi
date Thu, 11 Dec 2025 13:30:36 +0000
parents 4c5fdcefce8e
children
comparison
equal deleted inserted replaced
551:d45a37837ffa 552:0b3e3678ea95
118 required=False, 118 required=False,
119 help='output type analysis (optimization methods)') 119 help='output type analysis (optimization methods)')
120 120
121 parser.add_argument('-idop', '--output_path', 121 parser.add_argument('-idop', '--output_path',
122 type=str, 122 type=str,
123 default='flux_simulation/', 123 default='flux_simulation',
124 help = 'output path for fluxes') 124 help = 'output path for fluxes')
125 125
126 parser.add_argument('-otm', '--out_mean', 126 parser.add_argument('-otm', '--out_mean',
127 type = str, 127 type = str,
128 required=False, 128 required=False,
535 num_processors = max(1, cpu_count() - 1) 535 num_processors = max(1, cpu_count() - 1)
536 536
537 global ARGS 537 global ARGS
538 ARGS = process_args(args) 538 ARGS = process_args(args)
539 539
540 if not os.path.exists('flux_simulation'): 540 if not os.path.exists(ARGS.output_path):
541 os.makedirs('flux_simulation') 541 os.makedirs(ARGS.output_path)
542 542
543 # --- Read input files and names from the provided file paths --- 543 # --- Read input files and names from the provided file paths ---
544 with open(ARGS.input_file, 'r') as f: 544 with open(ARGS.input_file, 'r') as f:
545 ARGS.input_files = [line.strip() for line in f if line.strip()] 545 ARGS.input_files = [line.strip() for line in f if line.strip()]
546 546