comparison COBRAxy/flux_simulation.py @ 139:74b383211ab5 draft

Uploaded
author luca_milaz
date Thu, 31 Oct 2024 18:52:16 +0000
parents 41f35c2f0c7b
children accda943dfb9
comparison
equal deleted inserted replaced
138:ea9175172935 139:74b383211ab5
231 bounds_df = read_dataset(bounds_path, "bounds dataset") 231 bounds_df = read_dataset(bounds_path, "bounds dataset")
232 for rxn_index, row in bounds_df.iterrows(): 232 for rxn_index, row in bounds_df.iterrows():
233 model_input.reactions.get_by_id(rxn_index).lower_bound = row.lower_bound 233 model_input.reactions.get_by_id(rxn_index).lower_bound = row.lower_bound
234 model_input.reactions.get_by_id(rxn_index).upper_bound = row.upper_bound 234 model_input.reactions.get_by_id(rxn_index).upper_bound = row.upper_bound
235 235
236 name = cell_name.split('.')[0] 236 name = cell_name.rsplit('.', 1)[0]
237 237
238 if ARGS.algorithm == 'OPTGP': 238 if ARGS.algorithm == 'OPTGP':
239 OPTGP_sampler(model_input, name, ARGS.n_samples, ARGS.thinning, ARGS.n_batches, ARGS.seed) 239 OPTGP_sampler(model_input, name, ARGS.n_samples, ARGS.thinning, ARGS.n_batches, ARGS.seed)
240 240
241 elif ARGS.algorithm == 'CBS': 241 elif ARGS.algorithm == 'CBS':