# HG changeset patch # User luca_milaz # Date 1722887515 0 # Node ID 7113cf797cfacc8611f7357bfc444747f4a135b3 # Parent 7557495e090c8434a30e8700b1f21902f68b1443 Uploaded diff -r 7557495e090c -r 7113cf797cfa marea_2/ras_generator.py --- a/marea_2/ras_generator.py Mon Aug 05 19:50:41 2024 +0000 +++ b/marea_2/ras_generator.py Mon Aug 05 19:51:55 2024 +0000 @@ -654,14 +654,6 @@ Returns: Dict[str, ruleUtils.OpList] : dict mapping reaction IDs to rules. """ - datFilePath = utils.FilePath.fromStrPath(ARGS.rule_list) # actual file, stored in galaxy as a .dat - - try: filenamePath = utils.FilePath.fromStrPath(ARGS.rules_name) # file's name in input, to determine its original ext - except utils.PathErr as err: - raise utils.PathErr(filenamePath, f"Please make sure your file's name is a valid file path, {err.msg}") - - - if filenamePath.ext is utils.FileFormat.PICKLE: return utils.readPickle(ARGS.rule_list) # csv rules need to be parsed, those in a pickle format are taken to be pre-parsed. return { line[0] : ruleUtils.parseRuleToNestedList(line[1]) for line in utils.readCsv(ARGS.rule_list) }