# HG changeset patch # User luca_milaz # Date 1734202613 0 # Node ID 264a10b574813967e7afe4c4df4b0529e4f250ec # Parent 8d1988935e1fa6fbbca25a31d38020bfdbd959be Uploaded diff -r 8d1988935e1f -r 264a10b57481 COBRAxy/ras_to_bounds.py --- a/COBRAxy/ras_to_bounds.py Sat Dec 14 18:50:08 2024 +0000 +++ b/COBRAxy/ras_to_bounds.py Sat Dec 14 18:56:53 2024 +0000 @@ -133,6 +133,8 @@ upper_bound=bounds.loc[reaction, "upper_bound"] valMax=float((upper_bound)*scaling_factor) valMin=float((lower_bound)*scaling_factor) + if(valMax is None or valMin is None): + warning(f"RAS values for {reaction}is None") if upper_bound!=0 and lower_bound==0: new_bounds.loc[reaction, "upper_bound"] = valMax if upper_bound==0 and lower_bound!=0: @@ -160,6 +162,7 @@ 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.") + return new_bounds.to_csv(output_folder + cellName + ".csv", sep='\t', index=True) pass