Mercurial > repos > bimib > cobraxy
diff COBRAxy/ras_to_bounds.py @ 223:c2ce7d75fceb draft
Uploaded
author | luca_milaz |
---|---|
date | Sat, 14 Dec 2024 19:11:31 +0000 |
parents | 4c0bb0186d38 |
children | 1e7a8da6c47a |
line wrap: on
line diff
--- a/COBRAxy/ras_to_bounds.py Sat Dec 14 19:07:05 2024 +0000 +++ b/COBRAxy/ras_to_bounds.py Sat Dec 14 19:11:31 2024 +0000 @@ -159,9 +159,6 @@ """ 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.") - return new_bounds.to_csv(output_folder + cellName + ".csv", sep='\t', index=True) pass