comparison COBRAxy/flux_simulation.py @ 208:c2aa3034aac2 draft

Uploaded
author luca_milaz
date Thu, 28 Nov 2024 13:51:11 +0000
parents aa59a249ec07
children 3ca179b83574
comparison
equal deleted inserted replaced
207:8496aeba6351 208:c2aa3034aac2
236 bounds_df = read_dataset(bounds_path, "bounds dataset") 236 bounds_df = read_dataset(bounds_path, "bounds dataset")
237 for rxn_index, row in bounds_df.iterrows(): 237 for rxn_index, row in bounds_df.iterrows():
238 model_input.reactions.get_by_id(rxn_index).lower_bound = row.lower_bound 238 model_input.reactions.get_by_id(rxn_index).lower_bound = row.lower_bound
239 model_input.reactions.get_by_id(rxn_index).upper_bound = row.upper_bound 239 model_input.reactions.get_by_id(rxn_index).upper_bound = row.upper_bound
240 240
241 name = '.'.join(cell_name.rsplit('.', 1)[:-1]) 241 #name = '.'.join(cell_name.rsplit('.', 1)[:-1])
242 name = cell_name
242 243
243 if ARGS.algorithm == 'OPTGP': 244 if ARGS.algorithm == 'OPTGP':
244 OPTGP_sampler(model_input, name, ARGS.n_samples, ARGS.thinning, ARGS.n_batches, ARGS.seed) 245 OPTGP_sampler(model_input, name, ARGS.n_samples, ARGS.thinning, ARGS.n_batches, ARGS.seed)
245 246
246 elif ARGS.algorithm == 'CBS': 247 elif ARGS.algorithm == 'CBS':