Mercurial > repos > bimib > cobraxy
comparison COBRAxy/flux_simulation.py @ 172:aa59a249ec07 draft
Uploaded
author | luca_milaz |
---|---|
date | Tue, 19 Nov 2024 19:16:57 +0000 |
parents | f6bedfd54055 |
children | c2aa3034aac2 |
comparison
equal
deleted
inserted
replaced
171:f6bedfd54055 | 172:aa59a249ec07 |
---|---|
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 | 241 name = '.'.join(cell_name.rsplit('.', 1)[:-1]) |
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': |