changeset 132:6c7354ba1461 draft

Uploaded
author luca_milaz
date Sun, 21 Jul 2024 20:39:27 +0000
parents 6ac8a71fdf43
children 9ecf736a1ce4
files marea_2/ras_to_bounds.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/marea_2/ras_to_bounds.py	Sun Jul 21 20:36:56 2024 +0000
+++ b/marea_2/ras_to_bounds.py	Sun Jul 21 20:39:27 2024 +0000
@@ -131,7 +131,7 @@
             bounds = pd.DataFrame(columns = ["lower_bound", "upper_bound"], index=rxns_ids)
             for reaction in model.reactions:
                 bounds.loc[reaction.id] = [reaction.lower_bound, reaction.upper_bound]
-            bounds.to_csv(ARGS.output_folder + cellName, sep = '\t', index = False)
+            bounds.to_csv(ARGS.output_folder + cellName + ".csv", sep = '\t', index = False)
     else:
         for reaction in rxns_ids:
             lower_bound=model_new.reactions.get_by_id(reaction).lower_bound
@@ -148,7 +148,7 @@
         bounds = pd.DataFrame(columns = ["lower_bound", "upper_bound"], index=rxns_ids)
         for reaction in model.reactions:
             bounds.loc[reaction.id] = [reaction.lower_bound, reaction.upper_bound]
-        bounds.to_csv(ARGS.output_folder + "bounds", sep = '\t', index = False)
+        bounds.to_csv(ARGS.output_folder + "bounds.csv", sep = '\t', index = False)
 
     
     pass