comparison COBRAxy/flux_simulation.py @ 171:f6bedfd54055 draft

Uploaded
author luca_milaz
date Tue, 19 Nov 2024 19:07:59 +0000
parents 79d6d5ca91fd
children aa59a249ec07
comparison
equal deleted inserted replaced
170:79d6d5ca91fd 171:f6bedfd54055
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 = cell_name.rsplit('.', 1)[0] 241 name = cell_name
242 242
243 if ARGS.algorithm == 'OPTGP': 243 if ARGS.algorithm == 'OPTGP':
244 OPTGP_sampler(model_input, name, ARGS.n_samples, ARGS.thinning, ARGS.n_batches, ARGS.seed) 244 OPTGP_sampler(model_input, name, ARGS.n_samples, ARGS.thinning, ARGS.n_batches, ARGS.seed)
245 245
246 elif ARGS.algorithm == 'CBS': 246 elif ARGS.algorithm == 'CBS':