Mercurial > repos > bimib > cobraxy
changeset 25:80bfd8743ea6 draft
Uploaded
author | luca_milaz |
---|---|
date | Thu, 19 Sep 2024 08:06:59 +0000 |
parents | c5dbdbb64cef |
children | 4c9ade74c4d7 |
files | COBRAxy/custom_data_generator.py |
diffstat | 1 files changed, 4 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/COBRAxy/custom_data_generator.py Thu Sep 19 08:03:37 2024 +0000 +++ b/COBRAxy/custom_data_generator.py Thu Sep 19 08:06:59 2024 +0000 @@ -188,15 +188,11 @@ bounds = generate_bounds(model) medium = get_medium(model) - rulesPath = utils.FilePath("rules", "csv") - reactionsPath = utils.FilePath("reactions", "csv") - boundsPath = utils.FilePath("bounds", "csv") - mediumPath = utils.FilePath("medium", "csv") - save_as_csv(rules, rulesPath, ("ReactionID", "Rule")) - save_as_csv(reactions, reactionsPath, ("ReactionID", "Reaction")) - bounds.to_csv(boundsPath.show(), sep = '\t') - medium.to_csv(mediumPath.show(), sep = '\t') + save_as_csv(rules, ARGS.out_rules, ("ReactionID", "Rule")) + save_as_csv(reactions, ARGS.out_reactions, ("ReactionID", "Reaction")) + bounds.to_csv(ARGS.out_bounds, sep = '\t') + medium.to_csv(ARGS.out_medium, sep = '\t') # ^ Please if anyone works on this after updating python to 3.12 change the if/elif into a match statement!!