Mercurial > repos > bimib > cobraxy
comparison COBRAxy/ras_to_bounds.py @ 104:d4d84b2bce9b draft
Uploaded
author | luca_milaz |
---|---|
date | Sun, 13 Oct 2024 13:42:22 +0000 |
parents | d1370b6bb4c5 |
children | e3b3958c0d88 |
comparison
equal
deleted
inserted
replaced
103:d1370b6bb4c5 | 104:d4d84b2bce9b |
---|---|
152 | 152 |
153 Returns: | 153 Returns: |
154 None | 154 None |
155 """ | 155 """ |
156 model_new = model.copy() | 156 model_new = model.copy() |
157 warning(ras_row.index) | 157 warning(str(ras_row.index)) |
158 apply_ras_bounds(model_new, ras_row, rxns_ids) | 158 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"]) | 159 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) | 160 bounds.to_csv(output_folder + cellName + ".csv", sep='\t', index=True) |
161 pass | 161 pass |
162 | 162 |