# HG changeset patch # User luca_milaz # Date 1734202208 0 # Node ID 8d1988935e1fa6fbbca25a31d38020bfdbd959be # Parent f9deb464e6a6823aa1a3584babe831fc5ecf253f Uploaded diff -r f9deb464e6a6 -r 8d1988935e1f COBRAxy/ras_to_bounds.py --- 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