# HG changeset patch # User luca_milaz # Date 1722347610 0 # Node ID 8aefca7975d9c1b84023be13dd5ec24474ee4b8c # Parent 0efb675b8dc9e76429c7cfbba97de49246c9b0b8 Uploaded diff -r 0efb675b8dc9 -r 8aefca7975d9 marea_2/ras_to_bounds.py --- 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 ###########################################