Mercurial > repos > bimib > marea_2
changeset 332:7113cf797cfa draft
Uploaded
author | luca_milaz |
---|---|
date | Mon, 05 Aug 2024 19:51:55 +0000 |
parents | 7557495e090c |
children | 7056487831c4 |
files | marea_2/ras_generator.py |
diffstat | 1 files changed, 0 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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) }