Mercurial > repos > bimib > cobraxy
comparison COBRAxy/ras_to_bounds.py @ 103:d1370b6bb4c5 draft
Uploaded
author | luca_milaz |
---|---|
date | Sun, 13 Oct 2024 13:39:00 +0000 |
parents | 182c710c1660 |
children | d4d84b2bce9b |
comparison
equal
deleted
inserted
replaced
102:182c710c1660 | 103:d1370b6bb4c5 |
---|---|
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 apply_ras_bounds(model_new, ras_row, rxns_ids) | 158 apply_ras_bounds(model_new, ras_row, rxns_ids) |
158 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"]) |
159 bounds.to_csv(output_folder + cellName + ".csv", sep='\t', index=True) | 160 bounds.to_csv(output_folder + cellName + ".csv", sep='\t', index=True) |
160 pass | 161 pass |
161 | 162 |