Mercurial > repos > bimib > cobraxy
changeset 218:8d1988935e1f draft
Uploaded
author | luca_milaz |
---|---|
date | Sat, 14 Dec 2024 18:50:08 +0000 |
parents | f9deb464e6a6 |
children | 264a10b57481 |
files | COBRAxy/ras_to_bounds.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/COBRAxy/ras_to_bounds.py Fri Dec 13 18:54:50 2024 +0000 +++ b/COBRAxy/ras_to_bounds.py Sat Dec 14 18:50:08 2024 +0000 @@ -158,6 +158,8 @@ """ bounds = pd.DataFrame([(rxn.lower_bound, rxn.upper_bound) for rxn in model.reactions], index=rxns_ids, columns=["lower_bound", "upper_bound"]) new_bounds = apply_ras_bounds(bounds, ras_row) + if new_bounds.isnull().values.any(): + warning(f"RAS values for {cellName} contain NaN values. Skipping this cell.") new_bounds.to_csv(output_folder + cellName + ".csv", sep='\t', index=True) pass