# HG changeset patch # User luca_milaz # Date 1721594367 0 # Node ID 6c7354ba1461552d4ced9e98d307a2647d8a7e3f # Parent 6ac8a71fdf4318e9ed5a84c7e6fa96b3524c9eb5 Uploaded diff -r 6ac8a71fdf43 -r 6c7354ba1461 marea_2/ras_to_bounds.py --- 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