Mercurial > repos > bimib > cobraxy
comparison COBRAxy/ras_to_bounds.py @ 105:e3b3958c0d88 draft
Uploaded
author | luca_milaz |
---|---|
date | Sun, 13 Oct 2024 13:47:24 +0000 |
parents | d4d84b2bce9b |
children | 1629671d4ca6 |
comparison
equal
deleted
inserted
replaced
104:d4d84b2bce9b | 105:e3b3958c0d88 |
---|---|
152 | 152 |
153 Returns: | 153 Returns: |
154 None | 154 None |
155 """ | 155 """ |
156 model_new = model.copy() | 156 model_new = model.copy() |
157 warning(str(ras_row.index)) | |
158 apply_ras_bounds(model_new, ras_row, rxns_ids) | 157 apply_ras_bounds(model_new, ras_row, rxns_ids) |
159 bounds = pd.DataFrame([(rxn.lower_bound, rxn.upper_bound) for rxn in model_new.reactions], index=rxns_ids, columns=["lower_bound", "upper_bound"]) | 158 bounds = pd.DataFrame([(rxn.lower_bound, rxn.upper_bound) for rxn in model_new.reactions], index=rxns_ids, columns=["lower_bound", "upper_bound"]) |
160 bounds.to_csv(output_folder + cellName + ".csv", sep='\t', index=True) | 159 bounds.to_csv(output_folder + cellName + ".csv", sep='\t', index=True) |
161 pass | 160 pass |
162 | 161 |