comparison COBRAxy/flux_simulation.py @ 170:79d6d5ca91fd draft

Uploaded
author luca_milaz
date Mon, 18 Nov 2024 17:42:46 +0000
parents b5a26d1c4fdc
children f6bedfd54055
comparison
equal deleted inserted replaced
169:d717f69d460e 170:79d6d5ca91fd
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.split('.')[0] 241 name = cell_name.rsplit('.', 1)[0]
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':