changeset 181:8aefca7975d9 draft

Uploaded
author luca_milaz
date Tue, 30 Jul 2024 13:53:30 +0000
parents 0efb675b8dc9
children f3b0920fe6ce
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	Fri Jul 26 15:56:57 2024 +0000
+++ b/marea_2/ras_to_bounds.py	Tue Jul 30 13:53:30 2024 +0000
@@ -114,7 +114,7 @@
     model_new = model.copy()
     apply_ras_bounds(model_new, ras_row, rxns_ids)
     bounds = pd.DataFrame([(rxn.lower_bound, rxn.upper_bound) for rxn in model_new.reactions], index=rxns_ids, columns=["lower_bound", "upper_bound"])
-    bounds.to_csv(output_folder + cellName + ".csv", sep='\t', index=False)
+    bounds.to_csv(output_folder + cellName + ".csv", sep='\t', index=True)
 
 def generate_bounds(model: cobra.Model, medium: dict, ras=None, output_folder='output/') -> pd.DataFrame:
     rxns_ids = [rxn.id for rxn in model.reactions]
@@ -139,7 +139,7 @@
         model_new = model.copy()
         apply_ras_bounds(model_new, pd.Series([1]*len(rxns_ids), index=rxns_ids), rxns_ids)
         bounds = pd.DataFrame([(rxn.lower_bound, rxn.upper_bound) for rxn in model_new.reactions], index=rxns_ids, columns=["lower_bound", "upper_bound"])
-        bounds.to_csv(output_folder + "bounds.csv", sep='\t', index=False)
+        bounds.to_csv(output_folder + "bounds.csv", sep='\t', index=True)
 
 
 ############################# main ###########################################